fix RemoveSmallWindowRestrictions.kt

This commit is contained in:
QQ littleice
2022-03-10 23:21:27 +08:00
parent 8587984a88
commit 93ea0a5f2a

View File

@@ -18,13 +18,13 @@ class RemoveSmallWindowRestrictions : IXposedHookLoadPackage {
"android.util.MiuiMultiWindowAdapter".hookAfterMethod(lpparam.classLoader, "getFreeformBlackList") { "android.util.MiuiMultiWindowAdapter".hookAfterMethod(lpparam.classLoader, "getFreeformBlackList") {
hasEnable("remove_small_window_restrictions") { hasEnable("remove_small_window_restrictions") {
it.result = (it.result as MutableList<*>).clear() it.result = (it.result as MutableList<*>).apply { clear() }
} }
} }
"android.util.MiuiMultiWindowAdapter".hookAfterMethod(lpparam.classLoader, "getFreeformBlackListFromCloud") { "android.util.MiuiMultiWindowAdapter".hookAfterMethod(lpparam.classLoader, "getFreeformBlackListFromCloud") {
hasEnable("remove_small_window_restrictions") { hasEnable("remove_small_window_restrictions") {
it.result = (it.result as MutableList<*>).clear() it.result = (it.result as MutableList<*>).apply { clear() }
} }
} }