mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
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:
@@ -101,6 +101,8 @@ public class LockManagerImpl implements LockManager, Service, EventListener {
|
||||
|
||||
@Override
|
||||
public void stopService() {
|
||||
timeoutMinutes = timeoutNever;
|
||||
if (alarmSet) alarmManager.cancel(lockIntent);
|
||||
}
|
||||
|
||||
@UiThread
|
||||
|
||||
Reference in New Issue
Block a user