diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-04-30 18:15:02 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2020-05-02 18:11:04 +0300 |
commit | 1005f1301756ec523562b5a98e87358ab6ed6afd (patch) | |
tree | 9c08e3a77ab989c0c460df663e6ffec470a85cae /app/src/main/java/it/niedermann/nextcloud/deck/ui/MainViewModel.java | |
parent | 0c8cd2806068347fbbb2e9b23007bdbc5e914bd8 (diff) |
Use Board in MainActivity
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/MainViewModel.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/MainViewModel.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/MainViewModel.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/MainViewModel.java index 34668af41..b3e6d7090 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/MainViewModel.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/MainViewModel.java @@ -7,7 +7,7 @@ import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; import it.niedermann.nextcloud.deck.model.Account; -import it.niedermann.nextcloud.deck.model.full.FullBoard; +import it.niedermann.nextcloud.deck.model.Board; import it.niedermann.nextcloud.deck.model.internal.FilterInformation; @SuppressWarnings("WeakerAccess") @@ -16,7 +16,7 @@ public class MainViewModel extends ViewModel { @NonNull private MutableLiveData<FilterInformation> filterInformation = new MutableLiveData<>(); private Account currentAccount; - private FullBoard currentBoard; + private Board currentBoard; public void postFilterInformation(@Nullable FilterInformation filterInformation) { this.filterInformation.postValue(filterInformation); @@ -35,7 +35,7 @@ public class MainViewModel extends ViewModel { this.currentAccount = currentAccount; } - public void setCurrentBoard(FullBoard currentBoard) { + public void setCurrentBoard(Board currentBoard) { this.currentBoard = currentBoard; } @@ -44,6 +44,6 @@ public class MainViewModel extends ViewModel { } public boolean currentBoardHasEditPermission() { - return this.currentBoard != null && this.currentBoard.getBoard() != null && this.currentBoard.getBoard().isPermissionEdit(); + return this.currentBoard != null && this.currentBoard.isPermissionEdit(); } } |