Merge pull request #1343 from AlphaWallet/Fix-Token-Update

Fix update token issue
pull/1348/head
James Brown 5 years ago committed by GitHub
commit 0dc1ff0857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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