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;h=ad250f97fdb108d3c41389c7985fd226eeb0be73;hp=c3223cc929256c3e69d2eae41840a79aefabb4d5;hb=09e26d2279484b4dfe0de218b05f075362fff4b5;hpb=a2b00ecbcbe8b13df466c94aa11ba593f69869d8
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
index c3223cc9..ad250f97 100644
--- 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
@@ -1,23 +1,23 @@
/*
* Copyright © 2019 Damyan Ivanov.
- * This file is part of Mobile-Ledger.
- * Mobile-Ledger is free software: you can distribute it and/or modify it
+ * 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.
*
- * Mobile-Ledger is distributed in the hope that it will be useful,
+ * 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 Mobile-Ledger. If not, see .
+ * along with MoLe. If not, see .
*/
package net.ktnx.mobileledger.ui.account_summary;
-import android.arch.lifecycle.ViewModel;
+import androidx.lifecycle.ViewModel;
import android.content.Context;
import android.util.Log;
@@ -35,7 +35,9 @@ class AccountSummaryViewModel extends ViewModel {
task.execute(
new CommitAccountsTaskParams(Data.accounts.get(), Data.optShowOnlyStarred.get()));
}
- void scheduleAccountListReload() {
+ static void scheduleAccountListReload() {
+ if (Data.profile.get() == null) return;
+
UAT task = new UAT();
task.execute();