fullscreenintentexample icon indicating copy to clipboard operation
fullscreenintentexample copied to clipboard

Keyguard doesn't get locked after pressing back button when isn't secured with a password on at least API 29

Open user98392 opened this issue 1 year ago • 0 comments

After the LockScreenActivity is launched over the lockscreen and there's no password configured when pressing back button you will go back to the MainActivity instead of the lockscreen.

The fix is to add attributes android:showWhenLocked(true) and android:turnScreenOn(true) to the LockScreenActivity tag in the manifest. The code in the LockScreenActivity class and the attribute android:showOnLockScreen are useless (at least on Android 10). Fix it by yourself, I'm just too lazy to create a PR.

user98392 avatar Jan 09 '24 18:01 user98392