修复 截图无限裁切 功能导致的崩溃问题 (#172)

* 同时更新依赖
* 允许应用横屏
This commit is contained in:
YuKongA
2022-06-28 00:51:43 +08:00
committed by GitHub
parent 3cd3b87707
commit 4246e2910e
4 changed files with 6 additions and 7 deletions

View File

@@ -13,7 +13,6 @@
<activity
android:name=".activity.SettingsActivity"
android:exported="true"
android:screenOrientation="portrait"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@@ -10,7 +10,7 @@ object UnlockUnlimitedCropping : HookRegister() {
override fun init() {
//截图无限裁切
findMethod("com.miui.gallery.editor.photo.screen.crop.ScreenCropView\$b") {
name == "a"
name == "a" && parameterCount == 0 && returnType == Int::class.java
}.hookBefore {
hasEnable("unlock_unlimited_cropping") {
it.result = 0