diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 42082b467..33f49bd0e 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -18,8 +18,8 @@ # Stub -keep class com.topjohnwu.magisk.core.App { (java.lang.Object); } -keepclassmembers class androidx.appcompat.app.AppCompatDelegateImpl { - boolean mActivityHandlesUiModeChecked; - boolean mActivityHandlesUiMode; + boolean mActivityHandlesConfigFlagsChecked; + int mActivityHandlesConfigFlags; } # main diff --git a/app/src/main/java/com/topjohnwu/magisk/core/base/BaseActivity.kt b/app/src/main/java/com/topjohnwu/magisk/core/base/BaseActivity.kt index 9745eb5ed..6549e46d2 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/base/BaseActivity.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/base/BaseActivity.kt @@ -68,8 +68,8 @@ abstract class BaseActivity : AppCompatActivity() { // Overwrite private members to avoid nasty "false" stack traces being logged val delegate = delegate val clz = delegate.javaClass - clz.reflectField("mActivityHandlesUiModeChecked").set(delegate, true) - clz.reflectField("mActivityHandlesUiMode").set(delegate, false) + clz.reflectField("mActivityHandlesConfigFlagsChecked").set(delegate, true) + clz.reflectField("mActivityHandlesConfigFlags").set(delegate, 0) } contentCallback = savedInstanceState?.getParcelable(CONTENT_CALLBACK_KEY) super.onCreate(savedInstanceState)