From 50b6b2f92c8b0bff2f9081ea665122212fdcebe3 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Sat, 12 Jul 2025 21:15:07 -0400 Subject: [PATCH] Add some categories in gestures_and_buttons_preferences.xml --- .../CustomFontPreferenceCategory.java | 5 +- app/src/main/res/values/strings.xml | 3 +- .../xml/gestures_and_buttons_preferences.xml | 55 +++++++++++-------- 3 files changed, 36 insertions(+), 27 deletions(-) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/customviews/preference/CustomFontPreferenceCategory.java b/app/src/main/java/ml/docilealligator/infinityforreddit/customviews/preference/CustomFontPreferenceCategory.java index 2cbde4bc..174dfceb 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/customviews/preference/CustomFontPreferenceCategory.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/customviews/preference/CustomFontPreferenceCategory.java @@ -10,7 +10,6 @@ import androidx.preference.PreferenceCategory; import androidx.preference.PreferenceViewHolder; import ml.docilealligator.infinityforreddit.CustomFontReceiver; -import ml.docilealligator.infinityforreddit.R; import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper; import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapperReceiver; @@ -39,10 +38,10 @@ public class CustomFontPreferenceCategory extends PreferenceCategory implements super.onBindViewHolder(holder); View titleTextView = holder.findViewById(android.R.id.title); holder.setDividerAllowedAbove(false); - View iconView = holder.findViewById(R.id.icon_frame); + /*View iconView = holder.findViewById(R.id.icon_frame); if (iconView != null) { iconView.setVisibility(View.GONE); - } + }*/ if (customThemeWrapper != null) { if (titleTextView instanceof TextView) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7470aae9..43ca53f8 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -660,6 +660,7 @@ Hostname Port Hide Floating Action Button + Media Cannot get the link @@ -1543,7 +1544,7 @@ Jump to Parent Comment Long Press on Post (Non-Media Area) - Long Press on Media + Long Press on Post Media Show Post Options Preview in Fullscreen diff --git a/app/src/main/res/xml/gestures_and_buttons_preferences.xml b/app/src/main/res/xml/gestures_and_buttons_preferences.xml index a2d6ac07..fdfd8da1 100644 --- a/app/src/main/res/xml/gestures_and_buttons_preferences.xml +++ b/app/src/main/res/xml/gestures_and_buttons_preferences.xml @@ -8,11 +8,39 @@ app:title="@string/settings_swipe_to_go_back_title" app:summary="@string/settings_swipe_to_go_back_summary" /> + + + + + + + + + + + + - - - - - + - - + app:key="volume_keys_navigate_posts" + app:title="@string/settings_volume_keys_navigate_posts_title" />