public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
+ mActivity.markDrawerItemCurrent(R.id.nav_account_summary);
+
model = ViewModelProviders.of(this).get(AccountSummaryViewModel.class);
List<LedgerAccount> accounts = model.getAccounts(this.getContext());
modelAdapter = new AccountSummaryAdapter(accounts);
if (modelAdapter.isSelectionActive()) {
modelAdapter.selectItem(position);
}
+ else {
+ List<LedgerAccount> accounts = model.getAccounts(mActivity);
+ if (accounts != null) {
+ LedgerAccount account = accounts.get(position);
+
+ mActivity.showAccountTransactions(account);
+ }
+ }
}
@Override
}
}));
+ fab.show();
root.addOnScrollListener(new RecyclerView.OnScrollListener() {
@Override
public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {