From 1309bfe1eed0895670429150060172165759d0ef Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Mon, 26 Dec 2022 10:33:04 -0300 Subject: [PATCH] Its in the global user preferences now, still not in the settings page --- .../java/org/joinmastodon/android/GlobalUserPreferences.java | 3 +++ .../joinmastodon/android/fragments/BaseStatusListFragment.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/GlobalUserPreferences.java b/mastodon/src/main/java/org/joinmastodon/android/GlobalUserPreferences.java index 7bbe675e1..03089a593 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/GlobalUserPreferences.java +++ b/mastodon/src/main/java/org/joinmastodon/android/GlobalUserPreferences.java @@ -26,6 +26,7 @@ public class GlobalUserPreferences{ public static boolean alwaysExpandContentWarnings; public static boolean disableMarquee; public static boolean disableSwipe; + public static boolean disableDividers; public static boolean voteButtonForSingleChoice; public static boolean showDifferentiatedPushNoticationIcons; public static ThemePreference theme; @@ -57,6 +58,7 @@ public class GlobalUserPreferences{ alwaysExpandContentWarnings=prefs.getBoolean("alwaysExpandContentWarnings", false); disableMarquee=prefs.getBoolean("disableMarquee", false); disableSwipe=prefs.getBoolean("disableSwipe", false); + disableDividers=prefs.getBoolean("disableDividers", true); voteButtonForSingleChoice=prefs.getBoolean("voteButtonForSingleChoice", true); theme=ThemePreference.values()[prefs.getInt("theme", 0)]; recentLanguages=fromJson(prefs.getString("recentLanguages", "{}"), recentLanguagesType, new HashMap<>()); @@ -86,6 +88,7 @@ public class GlobalUserPreferences{ .putBoolean("alwaysExpandContentWarnings", alwaysExpandContentWarnings) .putBoolean("disableMarquee", disableMarquee) .putBoolean("disableSwipe", disableSwipe) + .putBoolean("disableDividers", disableDividers) .putBoolean("showDifferentiatedPushNoticationIcons", showDifferentiatedPushNoticationIcons) .putInt("theme", theme.ordinal()) .putString("color", color.name()) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java index 4a7435117..ea7e9c273 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java @@ -675,7 +675,7 @@ public abstract class BaseStatusListFragment exten private int currentMediaHiddenLayoutsWidth=0; { - dividerPaint.setColor(UiUtils.getThemeColor(getActivity(), R.attr.colorWindowBackground)); + dividerPaint.setColor(UiUtils.getThemeColor(getActivity(), GlobalUserPreferences.disableDividers ? R.attr.colorWindowBackground : R.attr.colorPollVoted)); dividerPaint.setStyle(Paint.Style.STROKE); dividerPaint.setStrokeWidth(V.dp(1)); }