From 84ba4ea9993876c16b99855a2ce532fa4b5c6ef5 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sat, 27 May 2023 08:46:04 -0300 Subject: [PATCH] feat: use correct background colors in settings --- .../android/fragments/settings/SettingsBaseFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsBaseFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsBaseFragment.java index 6ea492b41..78c5c544d 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsBaseFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsBaseFragment.java @@ -102,7 +102,7 @@ public abstract class SettingsBaseFragment extends MastodonToolbarFragment imple list=new UsableRecyclerView(getActivity()); list.setLayoutManager(new LinearLayoutManager(getActivity())); list.setAdapter(new SettingsAdapter()); - list.setBackgroundColor(UiUtils.getThemeColor(getActivity(), android.R.attr.colorBackground)); + list.setBackgroundColor(UiUtils.getThemeColor(getActivity(), android.R.attr.windowBackground)); list.setPadding(0, V.dp(16), 0, V.dp(12)); list.setClipToPadding(false); list.addItemDecoration(new RecyclerView.ItemDecoration(){ @@ -137,7 +137,7 @@ public abstract class SettingsBaseFragment extends MastodonToolbarFragment imple getToolbar().setElevation(0f); getToolbar().setTitle(""); TypedValue typedValue = new TypedValue(); - if (getActivity().getTheme().resolveAttribute(android.R.attr.colorBackground, typedValue, true)) { + if (getActivity().getTheme().resolveAttribute(android.R.attr.windowBackground, typedValue, true)) { getToolbar().setBackgroundColor(typedValue.data); } }