]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java
nice side-swipe switch between account summary and transaction list
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / ui / transaction_list / TransactionListFragment.java
index 79c34b8950ca8d8f86a6d19704de1d1a06a67c38..b9a3b838be08a64d894484ed2730ac839357f43e 100644 (file)
@@ -120,8 +120,6 @@ public class TransactionListFragment extends MobileLedgerListFragment {
         Log.d("flow", "TransactionListFragment.onActivityCreated called");
         super.onActivityCreated(savedInstanceState);
 
         Log.d("flow", "TransactionListFragment.onActivityCreated called");
         super.onActivityCreated(savedInstanceState);
 
-        mActivity.markDrawerItemCurrent(R.id.nav_latest_transactions);
-
         swiper = mActivity.findViewById(R.id.transaction_swipe);
         if (swiper == null) throw new RuntimeException("Can't get hold on the swipe layout");
         root = mActivity.findViewById(R.id.transaction_root);
         swiper = mActivity.findViewById(R.id.transaction_swipe);
         if (swiper == null) throw new RuntimeException("Can't get hold on the swipe layout");
         root = mActivity.findViewById(R.id.transaction_root);
@@ -131,12 +129,10 @@ public class TransactionListFragment extends MobileLedgerListFragment {
         modelAdapter = new TransactionListAdapter();
 
         modelAdapter.setBoldAccountName(mShowOnlyAccountName);
         modelAdapter = new TransactionListAdapter();
 
         modelAdapter.setBoldAccountName(mShowOnlyAccountName);
+        root.setAdapter(modelAdapter);
 
         FloatingActionButton fab = mActivity.findViewById(R.id.btn_add_transaction);
 
 
         FloatingActionButton fab = mActivity.findViewById(R.id.btn_add_transaction);
 
-        RecyclerView root = mActivity.findViewById(R.id.transaction_root);
-        root.setAdapter(modelAdapter);
-
         fab.show();
         root.addOnScrollListener(new RecyclerView.OnScrollListener() {
             @Override
         fab.show();
         root.addOnScrollListener(new RecyclerView.OnScrollListener() {
             @Override