]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java
observe background task count in the UI fragments
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / ui / transaction_list / TransactionListViewModel.java
index f1c6df01348e000947d75fb5f314ea60014de7c4..3693a1491fef4a27fd00411cd43fa02c69ba447f 100644 (file)
@@ -41,7 +41,6 @@ public class TransactionListViewModel extends ViewModel {
         String accFilter = hasFilter ? String.valueOf(
                 ((AutoCompleteTextView) act.findViewById(R.id.transaction_filter_account_name))
                         .getText()) : null;
-        updating.set(true);
         AsyncTask<String, Void, List<LedgerTransaction>> task = new UTT();
         task.execute(accFilter);
     }
@@ -59,18 +58,7 @@ public class TransactionListViewModel extends ViewModel {
         @Override
         protected void onPostExecute(List<LedgerTransaction> list) {
             super.onPostExecute(list);
-            updating.set(false);
             if (list != null) Data.transactions.set(list);
         }
-        @Override
-        protected void onCancelled(List<LedgerTransaction> ledgerTransactions) {
-            super.onCancelled(ledgerTransactions);
-            updating.set(false);
-        }
-        @Override
-        protected void onCancelled() {
-            super.onCancelled();
-            updating.set(false);
-        }
     }
 }