diff --git a/app/src/main/java/com/lt2333/simplicitytools/hooks/rules/t/systemui/RemoveTheLeftSideOfTheLockScreenForT.kt b/app/src/main/java/com/lt2333/simplicitytools/hooks/rules/t/systemui/RemoveTheLeftSideOfTheLockScreenForT.kt new file mode 100644 index 00000000..074e700c --- /dev/null +++ b/app/src/main/java/com/lt2333/simplicitytools/hooks/rules/t/systemui/RemoveTheLeftSideOfTheLockScreenForT.kt @@ -0,0 +1,19 @@ +package com.lt2333.simplicitytools.hooks.rules.t.systemui + +import com.highcapable.yukihookapi.hook.entity.YukiBaseHooker +import com.lt2333.simplicitytools.utils.hasEnable + +object RemoveTheLeftSideOfTheLockScreenForT : YukiBaseHooker() { + override fun onHook() { + "com.android.keyguard.negative.MiuiKeyguardMoveLeftViewContainer".hook { + injectMember { + method { name = "inflateLeftView" } + beforeHook { + hasEnable("remove_the_left_side_of_the_lock_screen") { + resultNull() + } + } + } + } + } +} \ No newline at end of file