diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-07-01 10:55:12 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-07-01 10:55:12 +0300 |
commit | 8566634f56109baf392da56324072417321c2b18 (patch) | |
tree | 9b5ca0d8e1120ed2d7f5465203fd3df52f1673fa /app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher | |
parent | 7256159d1da03ea738b770daa001ad84c605d7a7 (diff) |
Make MainViewModel extending AndroidViewModel
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher/AccountSwitcherDialog.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher/AccountSwitcherDialog.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher/AccountSwitcherDialog.java index fd5172d6b..592f2e8cc 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher/AccountSwitcherDialog.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher/AccountSwitcherDialog.java @@ -61,7 +61,7 @@ public class AccountSwitcherDialog extends BrandedDialogFragment { binding.accountLayout.setOnClickListener((v) -> dismiss()); adapter = new AccountSwitcherAdapter((localAccount -> { - viewModel.setCurrentAccount(localAccount, localAccount.getServerDeckVersionAsObject().isSupported(requireContext())); + viewModel.setCurrentAccount(localAccount); dismiss(); })); |