新增解除不支持小窗应用限制

This commit is contained in:
乌堆小透明
2022-03-02 02:34:37 +08:00
parent 2475e469f4
commit f70607d7f6
3 changed files with 10 additions and 0 deletions

View File

@@ -338,6 +338,12 @@ class SettingsActivity : MIUIActivity() {
SwitchV("unlock_unlimited_cropping")
)
)
add(
TextWithSwitchV(
TextV(resId = R.string.remove_small_window_restrictions),
SwitchV("remove_small_window_restrictions")
)
)
add(
TextSummaryWithSwitchV(
TextSummaryV(

View File

@@ -1,6 +1,7 @@
package com.lt2333.simplicitytools.hook.app
import com.lt2333.simplicitytools.hook.app.miuihome.AlwaysDisplayTime
import com.lt2333.simplicitytools.hook.app.miuihome.RemoveSmallWindowRestrictions
import de.robv.android.xposed.IXposedHookLoadPackage
import de.robv.android.xposed.XposedBridge
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam
@@ -10,5 +11,7 @@ class MiuiHome : IXposedHookLoadPackage {
XposedBridge.log("成功Hook: " + javaClass.simpleName)
//时钟显示时钟
AlwaysDisplayTime().handleLoadPackage(lpparam)
//解除小窗限制
RemoveSmallWindowRestrictions().handleLoadPackage(lpparam)
}
}

View File

@@ -84,5 +84,6 @@
<string name="failed_after_restart">系统重启后仍会还原</string>
<string name="battery_optimization">电池优化</string>
<string name="battery_optimization_summary">快速打开被MIUI隐藏的电池优化功能</string>
<string name="remove_small_window_restrictions">解除不支持小窗应用限制</string>
</resources>