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/archivedboards | |
parent | 7256159d1da03ea738b770daa001ad84c605d7a7 (diff) |
Make MainViewModel extending AndroidViewModel
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/archivedboards')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/archivedboards/ArchivedBoardsActvitiy.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/archivedboards/ArchivedBoardsActvitiy.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/archivedboards/ArchivedBoardsActvitiy.java index 8782bbd7e..7c3a2d23c 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/archivedboards/ArchivedBoardsActvitiy.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/archivedboards/ArchivedBoardsActvitiy.java @@ -53,7 +53,7 @@ public class ArchivedBoardsActvitiy extends BrandedActivity implements DeleteBoa setSupportActionBar(binding.toolbar); viewModel = new ViewModelProvider(this).get(MainViewModel.class); - viewModel.setCurrentAccount(account, account.getServerDeckVersionAsObject().isSupported(this)); + viewModel.setCurrentAccount(account); syncManager = new SyncManager(this); adapter = new ArchivedBoardsAdapter(viewModel.isCurrentAccountIsSupportedVersion(), getSupportFragmentManager(), (board) -> syncManager.dearchiveBoard(board)); |