From fbdd63d98ceaf85f9b31c1dad60cd0b9e4d75b38 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Thu, 12 Sep 2024 20:43:46 +0200 Subject: [PATCH 01/11] change background of notification filter popupwindow --- .../components/notifications/NotificationsFragment.kt | 2 +- app/src/main/res/layout/notifications_filter.xml | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsFragment.kt b/app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsFragment.kt index c2001422d7..089f66b628 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsFragment.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsFragment.kt @@ -433,7 +433,7 @@ class NotificationsFragment : } val adapter = ArrayAdapter(requireContext(), android.R.layout.simple_list_item_multiple_choice, notificationTypeList) - val window = PopupWindow(requireContext()) + val window = PopupWindow(requireContext(), null, com.google.android.material.R.attr.listPopupWindowStyle) val menuBinding = NotificationsFilterBinding.inflate(LayoutInflater.from(requireContext()), binding.root as ViewGroup, false) menuBinding.buttonApply.setOnClickListener { diff --git a/app/src/main/res/layout/notifications_filter.xml b/app/src/main/res/layout/notifications_filter.xml index 20aa5f43b1..d9f182c626 100644 --- a/app/src/main/res/layout/notifications_filter.xml +++ b/app/src/main/res/layout/notifications_filter.xml @@ -1,13 +1,15 @@ + android:orientation="vertical"> + +