Fix update token issue

pull/1343/head
James Brown 5 years ago
parent e1484c5edb
commit c3679e5b3f
  1. 6
      app/src/main/java/com/alphawallet/app/ui/WalletFragment.java

@ -117,8 +117,6 @@ public class WalletFragment extends BaseFragment implements
isVisible = true;
setImportToken();
initList();
initTabLayout(view);
@ -127,6 +125,8 @@ public class WalletFragment extends BaseFragment implements
initNotificationView(view);
setImportToken();
return view;
}
@ -328,7 +328,7 @@ public class WalletFragment extends BaseFragment implements
{
ContractLocator importToken = viewModel.getAssetDefinitionService().getHoldingContract(importFileName);
if (importToken != null) Toast.makeText(getContext(), importToken.name, Toast.LENGTH_LONG).show();
if (importToken != null) adapter.setScrollToken(importToken);
if (importToken != null && adapter != null) adapter.setScrollToken(importToken);
importFileName = null;
}
}

Loading…
Cancel
Save