Skip to content

Commit

Permalink
Fix finding preferenceFragmentCompat for Brave
Browse files Browse the repository at this point in the history
Could be related to #188.
  • Loading branch information
JingMatrix committed Aug 17, 2024
1 parent b19055d commit 61465ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/org/matrix/chromext/proxy/Preference.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 61465ed

Please sign in to comment.