diff options
author | stefan-niedermann <info@niedermann.it> | 2019-03-30 21:08:52 +0300 |
---|---|---|
committer | stefan-niedermann <info@niedermann.it> | 2019-03-30 21:08:52 +0300 |
commit | d8ae6afda45682eb8f51dc83ad5875b98544048d (patch) | |
tree | f556799ce08349a683d0c70ec88dba5a4f95ea76 /app/src/main/java/it/niedermann/nextcloud/deck/ui/card/LabelAutoCompleteAdapter.java | |
parent | 7ecfd5ad40f751909be459f6964e266134f757a9 (diff) |
FIXME: ### filter by board-ID too!
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, 4 insertions, 2 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 abb89d943..c7d03ba3c 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 @@ -30,12 +30,14 @@ public class LabelAutoCompleteAdapter extends BaseAdapter implements Filterable private List<Label> labelList = new ArrayList<>(); private SyncManager syncManager; private long accountId; + private long boardId; private LifecycleOwner owner; - public LabelAutoCompleteAdapter(@NonNull LifecycleOwner owner, Context context, long accountId) { + public LabelAutoCompleteAdapter(@NonNull LifecycleOwner owner, Context context, long accountId, long boardId) { this.owner = owner; this.context = context; this.accountId = accountId; + this.boardId = boardId; syncManager = new SyncManager(context, null); } @@ -88,7 +90,7 @@ public class LabelAutoCompleteAdapter extends BaseAdapter implements Filterable protected FilterResults performFiltering(CharSequence constraint) { if (constraint != null) { ((Fragment) owner).getActivity().runOnUiThread(() -> { - LiveData<List<Label>> labelLiveData = syncManager.searchLabelByTitle(accountId, constraint.toString()); + LiveData<List<Label>> labelLiveData = syncManager.searchLabelByTitle(accountId, boardId, constraint.toString()); Observer<List<Label>> observer = new Observer<List<Label>>() { @Override public void onChanged(List<Label> users) { |