コード例 #1
0
  @Override
  protected void initViews(View layout) {
    super.initViews(layout);

    Activity activity = getActivity();
    configureToolbar();

    RecyclerView.ItemDecoration itemDecoration =
        new FermatDividerItemDecoration(activity, R.drawable.cbw_divider_shape);
    recyclerView.addItemDecoration(itemDecoration);
    emptyListViewsContainer = layout.findViewById(R.id.empty);
    if (openNegotiationList.isEmpty()) {
      recyclerView.setVisibility(View.GONE);
      emptyListViewsContainer.setVisibility(View.VISIBLE);
    } else {
      emptyListViewsContainer.setVisibility(View.GONE);
      recyclerView.setVisibility(View.VISIBLE);
    }
  }
コード例 #2
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    try {
      moduleManager = ((CryptoBrokerWalletSession) appSession).getModuleManager();
      walletManager = moduleManager.getCryptoBrokerWallet(appSession.getAppPublicKey());
      errorManager = appSession.getErrorManager();
    } catch (Exception ex) {
      CommonLogger.exception(TAG, ex.getMessage(), ex);
      if (errorManager != null)
        errorManager.reportUnexpectedWalletException(
            Wallets.CBP_CRYPTO_BROKER_WALLET,
            UnexpectedWalletExceptionSeverity.DISABLES_THIS_FRAGMENT,
            ex);
    }

    openNegotiationList = getMoreDataAsync(FermatRefreshTypes.NEW, 0);
  }