]> git.ktnx.net Git - mobile-ledger.git/commitdiff
spare a transaction list reload upon changing of the account name filter from ""...
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 16 Apr 2019 18:26:12 +0000 (21:26 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 16 Apr 2019 18:26:12 +0000 (21:26 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java

index 0b9e4e33f5fe0d0c4cbca58b5d3cd41bb25b1cf1..ecf98713834d6de5958af0ddef3e522aa177b531 100644 (file)
@@ -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);
         }