[BUG] Need to open app twice after locking when screen off or during 1 minute idle
Checks
- [X] I have read the FAQ section, searched the open issues, and still think this is a new bug.
Describe the bug you encountered:
On the Samsung Galaxy S10 and Samsung Galaxy S23 , if the app doesn't have battery optimisation disabled and the app runs in the background for more than 1 minute, or if lock when screen off is enabled and the screen is turned off, the next time the app is opened it will immediately close. Then the second time the app is opened it will bring up the unlock prompt. Also, with battery optimisation, after 1 minute the log recorded this and the Keepass2Android stopped: W ActivityManager: Stopping service due to app idle: u0a661 -2m14s225ms keepass2android.keepass2android/crc64dd09b2a2e58bb27d.OngoingNotificationsService
It looks like the same thing happens if I force close the Keepass2Android service.
Describe what you expected to happen:
I expected the unlock prompt to open the first time I re-opened the app not for the app to just close.
What version of Keepass2Android are you using?
1.09e-r7
Which version of Android are you on?
13