From 61465ed5cf2130a2d00848f4ae6e39749da4dbe0 Mon Sep 17 00:00:00 2001 From: JingMatrix Date: Sat, 17 Aug 2024 20:19:38 +0200 Subject: [PATCH] Fix finding preferenceFragmentCompat for Brave Could be related to #188. --- app/src/main/java/org/matrix/chromext/proxy/Preference.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/matrix/chromext/proxy/Preference.kt b/app/src/main/java/org/matrix/chromext/proxy/Preference.kt index e143867..9be90c6 100644 --- a/app/src/main/java/org/matrix/chromext/proxy/Preference.kt +++ b/app/src/main/java/org/matrix/chromext/proxy/Preference.kt @@ -47,7 +47,9 @@ object PreferenceProxy { private val preferenceFragmentCompat = loopOverSuperClass(developerSettings.superclass as Class<*>) { - !Chrome.isBrave || it.superclass.name.startsWith("androidx.fragment") + !Chrome.isBrave || + it.superclass.name.startsWith("androidx.fragment") || + it.superclass.superclass.name == "java.lang.Object" } val findPreference = findMethod(preferenceFragmentCompat) {