private ProfilesRecyclerViewAdapter mProfileListAdapter;
private int mCurrentPage;
private String mAccountFilter;
+ private boolean mBackMeansToAccountList = false;
@Override
protected void onStart() {
super.onStart();
// currentFragment = transactionListFragment;
}
public void showAccountTransactions(LedgerAccount account) {
+ mBackMeansToAccountList = true;
showTransactionsFragment(account);
}
@Override
drawer.closeDrawer(GravityCompat.START);
}
else {
- Log.d("fragments",
- String.format("manager stack: %d", fragmentManager.getBackStackEntryCount()));
+ if (mBackMeansToAccountList && (mViewPager.getCurrentItem() == 1)) {
+ TransactionListFragment.accountFilter.set(null);
+ showAccountSummaryFragment();
+ mBackMeansToAccountList = false;
+ }
+ else {
+ Log.d("fragments", String.format("manager stack: %d", fragmentManager.getBackStackEntryCount()));
- super.onBackPressed();
+ super.onBackPressed();
+ }
}
}
public void updateLastUpdateTextFromDB() {