Skip to content
Snippets Groups Projects
Verified Commit 660ba16a authored by Torsten Grote's avatar Torsten Grote
Browse files

Fix app lock after sign-out bug

It some cases, it was observered how the app was locked after the user
had signed out.
This commit ensures that set alarms are canceled and that no new ones
will be set after the LockManager service has been stopped.

Fixes #1386
parent 81863b9d
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,8 @@ public class LockManagerImpl implements LockManager, Service, EventListener {
@Override
public void stopService() {
timeoutMinutes = timeoutNever;
if (alarmSet) alarmManager.cancel(lockIntent);
}
@UiThread
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment