From: Damyan Ivanov Date: Tue, 16 Apr 2019 18:26:12 +0000 (+0300) Subject: spare a transaction list reload upon changing of the account name filter from ""... X-Git-Tag: v0.10.0~96 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=32d10d16f6ba9174aa5c00e49c8351528dff2f4b;p=mobile-ledger.git spare a transaction list reload upon changing of the account name filter from "" to null --- 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); }