From d9cb51bbeadd5a98ff1c4abe71a1d53288c20289 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 5 May 2019 22:56:13 +0300 Subject: [PATCH] move account name filter to the transaction list fragment it is not relevant to the account list and should not be visible there --- .../TransactionListFragment.java | 4 +- app/src/main/res/layout/activity_main.xml | 32 ------------- .../res/layout/transaction_list_fragment.xml | 45 +++++++++++++++---- 3 files changed, 40 insertions(+), 41 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java index 6340b3e2..8de45dce 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java @@ -168,7 +168,9 @@ public class TransactionListFragment extends MobileLedgerListFragment { menuTransactionListFilter = menu.findItem(R.id.menu_transaction_list_filter); if ((menuTransactionListFilter == null)) throw new AssertionError(); - if (Data.accountFilter.getValue() != null) { + if ((Data.accountFilter.getValue() != null) || + (vAccountFilter.getVisibility() == View.VISIBLE)) + { menuTransactionListFilter.setVisible(false); } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 625a3af2..820a2683 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -69,38 +69,6 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> - - - - - - - - - - . --> - + + + + + + + + + + + android:layout_height="match_parent"> - + -- 2.39.5