diff options
author | Stefan Niedermann <info@niedermann.it> | 2023-03-09 12:19:32 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2023-03-09 12:19:32 +0300 |
commit | c80b3bf036a0ce0699291868bf3aa2100d62383d (patch) | |
tree | 0c183ccfd14e07f5784f588f69197ab09c8cf481 /app/src/main/java/it/niedermann/nextcloud/deck/ui/card/LabelAutoCompleteAdapter.java | |
parent | 85457a44dc8f9533b770d586db99d1d8f185a41e (diff) |
refactor: Move packages to clarify architecture
https://developer.android.com/topic/architecture
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/card/LabelAutoCompleteAdapter.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/card/LabelAutoCompleteAdapter.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/LabelAutoCompleteAdapter.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/LabelAutoCompleteAdapter.java index decca0630..0af489781 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/LabelAutoCompleteAdapter.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/LabelAutoCompleteAdapter.java @@ -44,14 +44,14 @@ public class LabelAutoCompleteAdapter extends AutoCompleteAdapter<Label> { final String[] colors = activity.getResources().getStringArray(R.array.board_default_colors); createLabelColor = Color.parseColor(colors[new Random().nextInt(colors.length)]); - canManage$ = new ReactiveLiveData<>(syncManager.getFullBoardById(account.getId(), boardId)) + canManage$ = new ReactiveLiveData<>(syncRepository.getFullBoardById(account.getId(), boardId)) .map(FullBoard::getBoard) .map(Board::isPermissionManage); constraint$ .flatMap(constraint -> TextUtils.isEmpty(constraint) - ? syncManager.findProposalsForLabelsToAssign(account.getId(), boardId, cardId) - : syncManager.searchNotYetAssignedLabelsByTitle(account, boardId, cardId, constraint)) + ? syncRepository.findProposalsForLabelsToAssign(account.getId(), boardId, cardId) + : syncRepository.searchNotYetAssignedLabelsByTitle(account, boardId, cardId, constraint)) .map(this::filterExcluded) .flatMap(this::addCreateLabelIfNeeded) .distinctUntilChanged() |