From 58c3a5fc35fb27cc2174c091f6e644dec75a34e2 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 18 Nov 2022 16:05:31 +0100 Subject: [PATCH] Comment #467 #464 - apply theme on buttons --- .../java/app/fedilab/android/activities/FilterActivity.java | 1 + .../java/app/fedilab/android/ui/drawer/KeywordAdapter.java | 2 ++ app/src/main/res/layout/drawer_keyword.xml | 4 +++- app/src/main/res/layout/popup_add_filter.xml | 5 +++-- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/activities/FilterActivity.java b/app/src/main/java/app/fedilab/android/activities/FilterActivity.java index f1fd1d9a8..1aa7f8833 100644 --- a/app/src/main/java/app/fedilab/android/activities/FilterActivity.java +++ b/app/src/main/java/app/fedilab/android/activities/FilterActivity.java @@ -159,6 +159,7 @@ public class FilterActivity extends BaseActivity implements FilterAdapter.Delete KeywordAdapter keywordAdapter = new KeywordAdapter(filterParams.keywords); popupAddFilterBinding.lvKeywords.setAdapter(keywordAdapter); + popupAddFilterBinding.lvKeywords.setNestedScrollingEnabled(false); popupAddFilterBinding.lvKeywords.setLayoutManager(new LinearLayoutManager(context)); popupAddFilterBinding.addKeyword.setOnClickListener(v -> { diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/KeywordAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/KeywordAdapter.java index d0cb88143..9ecc08170 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/KeywordAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/KeywordAdapter.java @@ -29,6 +29,7 @@ import java.util.List; import app.fedilab.android.R; import app.fedilab.android.client.entities.api.Filter; import app.fedilab.android.databinding.DrawerKeywordBinding; +import app.fedilab.android.helper.ThemeHelper; public class KeywordAdapter extends RecyclerView.Adapter { private final List keywordsParamsList; @@ -86,6 +87,7 @@ public class KeywordAdapter extends RecyclerView.Adapter keywordsParams.whole_word = checked); holder.binding.wholeWord.setChecked(keywordsParams.whole_word != null && keywordsParams.whole_word); holder.binding.deleteKeyword.setOnClickListener(v -> { diff --git a/app/src/main/res/layout/drawer_keyword.xml b/app/src/main/res/layout/drawer_keyword.xml index 2ae95feac..50829c525 100644 --- a/app/src/main/res/layout/drawer_keyword.xml +++ b/app/src/main/res/layout/drawer_keyword.xml @@ -1,5 +1,6 @@ + android:layout_height="48dp" + app:buttonTint="@color/cyanea_accent_dark_reference" /> . --> - @@ -220,6 +220,7 @@ @@ -238,4 +239,4 @@ - \ No newline at end of file + \ No newline at end of file