From 32d10d16f6ba9174aa5c00e49c8351528dff2f4b Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Tue, 16 Apr 2019 21:26:12 +0300 Subject: [PATCH] spare a transaction list reload upon changing of the account name filter from "" to null --- .../ui/transaction_list/TransactionListFragment.java | 3 +++ 1 file changed, 3 insertions(+) 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 0b9e4e33..ecf98713 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 @@ -156,6 +156,9 @@ public class TransactionListFragment extends MobileLedgerListFragment { }); } private void onAccountNameFilterChanged(String accName) { + final String fieldText = accNameFilter.getText().toString(); + if ((accName == null) && (fieldText.equals(""))) return; + if (accNameFilter != null) { accNameFilter.setText(accName, false); } -- 2.39.5