diff options
author | desperateCoder <echotodevnull@gmail.com> | 2021-04-09 16:36:18 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2021-04-10 14:38:50 +0300 |
commit | e58becda69020ab84f01a00171b5e650adea7e75 (patch) | |
tree | b481b8ec55a6e8fe4bd84601bc63319c77edc48a /app/src/main | |
parent | d210ee9ff849224b2902937e3f08176b67183cc8 (diff) |
override for manual filter trigger
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DataBaseAdapter.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DataBaseAdapter.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DataBaseAdapter.java index 12d75703d..4070d9ddb 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DataBaseAdapter.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DataBaseAdapter.java @@ -6,6 +6,7 @@ import android.content.Intent; import androidx.annotation.AnyThread; import androidx.annotation.ColorInt; +import androidx.annotation.MainThread; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.UiThread; @@ -609,7 +610,7 @@ public class DataBaseAdapter { return db.getStackDao().getFullStacksForBoardDirectly(accountId, localBoardId); } - @AnyThread + @MainThread public LiveData<FullStack> getStack(long accountId, long localStackId) { return distinctUntilChanged(db.getStackDao().getFullStack(accountId, localStackId)); } @@ -1252,7 +1253,10 @@ public class DataBaseAdapter { } public List<FilterWidgetCard> getCardsForFilterWidget(Integer filterWidgetId) { - FilterWidget filterWidget = getFilterWidgetByIdDirectly(filterWidgetId); + return getCardsForFilterWidget(getFilterWidgetByIdDirectly(filterWidgetId)); + } + + public List<FilterWidgetCard> getCardsForFilterWidget(FilterWidget filterWidget) { FilterInformation filter = new FilterInformation(); Set<FullCard> cardsResult = new HashSet<>(); if (filterWidget.getDueType() != null) { |