From 830b69297d6c376e997e0026faa0c3aa30c48d9e Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Thu, 24 Oct 2024 13:18:01 -0400 Subject: [PATCH] fix typo --- .../main/java/app/revanced/integrations/shared/Utils.java | 5 ++--- .../settings/preference/AbstractPreferenceFragment.java | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/shared/Utils.java b/app/src/main/java/app/revanced/integrations/shared/Utils.java index d9ae8d0c76..e8250361d9 100644 --- a/app/src/main/java/app/revanced/integrations/shared/Utils.java +++ b/app/src/main/java/app/revanced/integrations/shared/Utils.java @@ -13,7 +13,6 @@ import android.os.Handler; import android.os.Looper; import android.preference.Preference; -import android.preference.PreferenceCategory; import android.preference.PreferenceGroup; import android.preference.PreferenceScreen; import android.view.View; @@ -746,8 +745,8 @@ public static void setPreferenceTitlesToMultiLineIfNeeded(PreferenceGroup group) Preference pref = group.getPreference(i); pref.setSingleLineTitle(false); - if (pref instanceof PreferenceCategory) { - setPreferenceTitlesToMultiLineIfNeeded((PreferenceCategory) pref); + if (pref instanceof PreferenceGroup) { + setPreferenceTitlesToMultiLineIfNeeded((PreferenceGroup) pref); } } } diff --git a/app/src/main/java/app/revanced/integrations/shared/settings/preference/AbstractPreferenceFragment.java b/app/src/main/java/app/revanced/integrations/shared/settings/preference/AbstractPreferenceFragment.java index 5845bfbea1..d50b13d960 100644 --- a/app/src/main/java/app/revanced/integrations/shared/settings/preference/AbstractPreferenceFragment.java +++ b/app/src/main/java/app/revanced/integrations/shared/settings/preference/AbstractPreferenceFragment.java @@ -17,7 +17,7 @@ import static app.revanced.integrations.shared.StringRef.str; -@SuppressWarnings({"unused", "deprecation"}) +@SuppressWarnings("deprecation") public abstract class AbstractPreferenceFragment extends PreferenceFragment { /** * Indicates that if a preference changes,