Commit 3b34df93 authored by wanglei's avatar wanglei

...

parent 89017184
...@@ -8,6 +8,7 @@ import android.content.IntentFilter; ...@@ -8,6 +8,7 @@ import android.content.IntentFilter;
import android.os.Build; import android.os.Build;
import com.base.pdfviewerscannerwhite.utils.AppPreferences; import com.base.pdfviewerscannerwhite.utils.AppPreferences;
import com.base.pdfviewerscannerwhite.utils.LogEx;
import java.util.Objects; import java.util.Objects;
...@@ -43,6 +44,7 @@ public class ScreenStatusReceiver extends BroadcastReceiver { ...@@ -43,6 +44,7 @@ public class ScreenStatusReceiver extends BroadcastReceiver {
setSecureLockActive(true); setSecureLockActive(true);
break; break;
case Intent.ACTION_USER_PRESENT: case Intent.ACTION_USER_PRESENT:
LogEx.INSTANCE.logDebug("ScreenStatusReceiver", "ACTION_USER_PRESENT", false);
setSecureLockActive(false); setSecureLockActive(false);
if (isDeviceInteractive() && !isSecureLockActive()) { if (isDeviceInteractive() && !isSecureLockActive()) {
int secureSetting = Integer.parseInt(AppPreferences.getInstance().getString("lockS", "1")); int secureSetting = Integer.parseInt(AppPreferences.getInstance().getString("lockS", "1"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment