mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Don't sign out when panic button is triggered if configured not to.
This commit is contained in:
@@ -57,15 +57,19 @@ public class PanicResponderActivity extends BriarActivity {
|
|||||||
if (sharedPref.getBoolean(KEY_PURGE, false)) {
|
if (sharedPref.getBoolean(KEY_PURGE, false)) {
|
||||||
LOG.info("Purging all data...");
|
LOG.info("Purging all data...");
|
||||||
signOut(true, true);
|
signOut(true, true);
|
||||||
} else {
|
} else if (sharedPref.getBoolean(KEY_LOCK, true)) {
|
||||||
LOG.info("Signing out...");
|
LOG.info("Signing out...");
|
||||||
signOut(true, false);
|
signOut(true, false);
|
||||||
|
} else {
|
||||||
|
LOG.info("Configured not to purge or lock");
|
||||||
}
|
}
|
||||||
} else if (sharedPref.getBoolean(KEY_LOCK, true)) {
|
} else if (sharedPref.getBoolean(KEY_LOCK, true)) {
|
||||||
// non-destructive actions are allowed by non-connected
|
// non-destructive actions are allowed by non-connected
|
||||||
// trusted apps
|
// trusted apps
|
||||||
LOG.info("Signing out...");
|
LOG.info("Signing out...");
|
||||||
signOut(true, false);
|
signOut(true, false);
|
||||||
|
} else {
|
||||||
|
LOG.info("Configured not to lock");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user