X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fui%2Faccount_summary%2FAccountSummaryViewModel.java;fp=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fui%2Faccount_summary%2FAccountSummaryViewModel.java;h=0000000000000000000000000000000000000000;hp=d7f4c616d75b9b65fe8756aa73c2003460fe6a8c;hb=d08ab8235d0fd152c772b2dd5ffa1ca5747f67b1;hpb=d58f8f4a9edd8b96005d1900c51b589471424165
diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryViewModel.java b/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryViewModel.java
deleted file mode 100644
index d7f4c616..00000000
--- a/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryViewModel.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright © 2019 Damyan Ivanov.
- * This file is part of MoLe.
- * MoLe is free software: you can distribute it and/or modify it
- * under the term of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your opinion), any later version.
- *
- * MoLe is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License terms for details.
- *
- * You should have received a copy of the GNU General Public License
- * along with MoLe. If not, see .
- */
-
-package net.ktnx.mobileledger.ui.account_summary;
-
-import android.os.AsyncTask;
-
-import androidx.lifecycle.ViewModel;
-
-import net.ktnx.mobileledger.async.UpdateAccountsTask;
-import net.ktnx.mobileledger.model.Data;
-import net.ktnx.mobileledger.model.LedgerAccount;
-
-import java.util.ArrayList;
-
-import static net.ktnx.mobileledger.utils.Logger.debug;
-
-public class AccountSummaryViewModel extends ViewModel {
- static public void scheduleAccountListReload() {
- if (Data.profile.getValue() == null) return;
-
- UAT task = new UAT();
- task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
-
- }
-
- private static class UAT extends UpdateAccountsTask {
- @Override
- protected void onPostExecute(ArrayList list) {
- super.onPostExecute(list);
- if (list != null) {
- debug("acc", "setting updated account list");
- Data.accounts.setList(list);
- }
- }
- }
-
-}
-