@Override public void onActivityCreated(Bundle savedInstanceState) { try { super.onActivityCreated(savedInstanceState); lst = new ArrayList<LossProtectedWalletTransaction>(); } catch (Exception e) { makeText(getActivity(), "Oooops! recovering from system error", Toast.LENGTH_SHORT).show(); referenceWalletSession .getErrorManager() .reportUnexpectedUIException(UISource.VIEW, UnexpectedUIExceptionSeverity.CRASH, e); } }
@Override public List<LossProtectedWalletTransaction> getMoreDataAsync( FermatRefreshTypes refreshType, int pos) { List<LossProtectedWalletTransaction> list = new ArrayList<LossProtectedWalletTransaction>(); try { // when refresh offset set 0 if (refreshType.equals(FermatRefreshTypes.NEW)) offset = 0; LossProtectedWalletIntraUserIdentity intraUserLoginIdentity = referenceWalletSession.getIntraUserModuleManager(); if (intraUserLoginIdentity != null) { String intraUserPk = intraUserLoginIdentity.getPublicKey(); lst = cryptoWallet.listLastActorTransactionsByTransactionType( BalanceType.AVAILABLE, TransactionType.CREDIT, referenceWalletSession.getAppPublicKey(), intraUserPk, blockchainNetworkType, MAX_TRANSACTIONS, 0); offset += MAX_TRANSACTIONS; } } catch (Exception e) { referenceWalletSession .getErrorManager() .reportUnexpectedSubAppException( SubApps.CWP_WALLET_STORE, UnexpectedSubAppExceptionSeverity.DISABLES_SOME_FUNCTIONALITY_WITHIN_THIS_FRAGMENT, e); e.printStackTrace(); } return lst; }