}
private void showAccountSummaryFragment() {
mViewPager.setCurrentItem(0, true);
+ TransactionListFragment.accountFilter.set(null);
// FragmentTransaction ft = fragmentManager.beginTransaction();
// accountSummaryFragment = new AccountSummaryFragment();
// ft.replace(R.id.root_frame, accountSummaryFragment);
// fragmentManager.popBackStack(0, FragmentManager.POP_BACK_STACK_INCLUSIVE);
}
private void showTransactionsFragment(LedgerAccount account) {
- TransactionListFragment.accountFilter.set(account.getName());
+ if (account != null) TransactionListFragment.accountFilter.set(account.getName());
mViewPager.setCurrentItem(1, true);
// FragmentTransaction ft = fragmentManager.beginTransaction();
// if (transactionListFragment == null) {
app:layout_constraintTop_toTopOf="parent">
<LinearLayout
- android:id="@+id/nav_actions"
+ android:id="@+id/nav_upper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
</LinearLayout>
- <TextView
- android:id="@+id/nav_account_summary"
- style="@style/nav_button"
- android:drawableStart="@drawable/ic_home_black_24dp"
- android:onClick="onAccountSummaryClicked"
- android:text="@string/account_summary_title" />
-
- <TextView
- android:id="@+id/nav_latest_transactions"
- style="@style/nav_button"
- android:drawableStart="@drawable/ic_event_note_black_24dp"
- android:onClick="onLatestTransactionsClicked"
- android:text="@string/nav_latest_transactions_title" />
-
- <TextView
- android:id="@+id/textView5"
- style="@style/nav_button"
- android:drawableStart="@drawable/ic_assignment_black_24dp"
- android:text="@string/nav_reports_title" />
+ <LinearLayout
+ android:id="@+id/nav_actions"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/nav_account_summary"
+ style="@style/nav_button"
+ android:drawableStart="@drawable/ic_home_black_24dp"
+ android:onClick="onAccountSummaryClicked"
+ android:text="@string/account_summary_title" />
+
+ <TextView
+ android:id="@+id/nav_latest_transactions"
+ style="@style/nav_button"
+ android:drawableStart="@drawable/ic_event_note_black_24dp"
+ android:onClick="onLatestTransactionsClicked"
+ android:text="@string/nav_latest_transactions_title" />
+
+ <TextView
+ android:id="@+id/textView5"
+ style="@style/nav_button"
+ android:drawableStart="@drawable/ic_assignment_black_24dp"
+ android:text="@string/nav_reports_title" />
+
+ </LinearLayout>
</LinearLayout>
</ScrollView>