From 99380b5f5868a79ad057bcd04ad4cfb8fcbba9a3 Mon Sep 17 00:00:00 2001 From: nxibjz <79512118+nxibjzC@users.noreply.github.com> Date: Tue, 16 Apr 2024 21:11:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=95=E5=AF=BC=E5=BC=8F?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E8=A7=A3=E9=99=A4=E5=9B=BA=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E9=94=81=E5=B1=8F=E4=B8=8D=E7=94=9F=E6=95=88=20(#544)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hyperceiler/module/hook/systemframework/SystemLockApp.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemframework/SystemLockApp.java b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemframework/SystemLockApp.java index e06c20185d..979bbe5373 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemframework/SystemLockApp.java +++ b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemframework/SystemLockApp.java @@ -78,6 +78,8 @@ public void onChange(boolean selfChange) { context.getContentResolver().registerContentObserver( Settings.Global.getUriFor("exit_lock_app_screen"), false, contentObserver1); + needLockScreen = getMyLockScreen(context) == 1; + isObserver = true; } } catch (Throwable e) {