@Override public void onErrorOccurred(Exception ex) { isRefreshing = false; if (isAttached) { swipeRefreshLayout.setRefreshing(false); CommonLogger.exception(TAG, ex.getMessage(), ex); } }
@Override public List<DigitalAsset> getMoreDataAsync(FermatRefreshTypes refreshType, int pos) { List<DigitalAsset> digitalAssets = new ArrayList<>(); if (moduleManager != null) { try { digitalAssets = Data.getAllDigitalAssets(moduleManager); } catch (Exception ex) { CommonLogger.exception(TAG, ex.getMessage(), ex); if (errorManager != null) errorManager.reportUnexpectedWalletException( Wallets.DAP_ASSET_ISSUER_WALLET, UnexpectedWalletExceptionSeverity.DISABLES_SOME_FUNCTIONALITY_WITHIN_THIS_FRAGMENT, ex); } } else { Toast.makeText( getActivity(), "Sorry, an error happened in BrokerListActivityFragment (Module == null)", Toast.LENGTH_SHORT) .show(); } return digitalAssets; }