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
This commit is contained in:
Torsten Grote
2018-09-19 16:06:13 -03:00
parent 81863b9db6
commit 660ba16a14

View File

@@ -101,6 +101,8 @@ public class LockManagerImpl implements LockManager, Service, EventListener {
@Override
public void stopService() {
timeoutMinutes = timeoutNever;
if (alarmSet) alarmManager.cancel(lockIntent);
}
@UiThread