-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
新增: 1.禁用无极缩放(平板) 2.小窗-记住状态 改为 记住状态及位置 (#709)
* feat: disable infinitymode gesture for pad * feat: freeform - Remember state function adds remember location * refactor: hide "disable infinitymode gesture" switch on phone
- Loading branch information
Showing
8 changed files
with
279 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...src/main/java/com/sevtinge/hyperceiler/module/hook/systemui/DisableInfinitymodeGesture.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.sevtinge.hyperceiler.module.hook.systemui | ||
|
||
import com.github.kyuubiran.ezxhelper.ClassUtils.loadClass | ||
import com.github.kyuubiran.ezxhelper.HookFactory.`-Static`.createHook | ||
import com.github.kyuubiran.ezxhelper.finders.MethodFinder.`-Static`.methodFinder | ||
import com.sevtinge.hyperceiler.module.base.* | ||
|
||
|
||
object DisableInfinitymodeGesture : BaseHook() { | ||
override fun init() { | ||
loadClass( | ||
"com.android.wm.shell.miuifreeform.MiuiInfinityModeSizesPolicy", | ||
).methodFinder().filterByName("isForbiddenWindow").single().createHook { | ||
returnConstant(true) | ||
} | ||
} | ||
} |
Oops, something went wrong.