]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryViewModel.java
a welcome screen directs to the new profile activity when there are no profiles defined
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / ui / account_summary / AccountSummaryViewModel.java
index c3223cc929256c3e69d2eae41840a79aefabb4d5..2234d3cd946c7cf3fbb158d20404086e927b7219 100644 (file)
@@ -36,6 +36,8 @@ class AccountSummaryViewModel extends ViewModel {
                 new CommitAccountsTaskParams(Data.accounts.get(), Data.optShowOnlyStarred.get()));
     }
     void scheduleAccountListReload() {
+        if (Data.profile.get() == null) return;
+
         UAT task = new UAT();
         task.execute();