mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
Improve readability.
This commit is contained in:
@@ -208,10 +208,11 @@ public abstract class BriarActivity extends BaseActivity {
|
|||||||
if (briarController.accountSignedIn()) {
|
if (briarController.accountSignedIn()) {
|
||||||
// Don't use UiResultHandler because we want the result even if
|
// Don't use UiResultHandler because we want the result even if
|
||||||
// this activity has been destroyed
|
// this activity has been destroyed
|
||||||
briarController.signOut(result ->
|
briarController.signOut(result -> {
|
||||||
wakeLockManager.executeWakefully(() ->
|
Runnable exit = () -> exit(removeFromRecentApps);
|
||||||
exit(removeFromRecentApps),
|
wakeLockManager.executeWakefully(exit,
|
||||||
this::runOnUiThread, "SignOut"), deleteAccount);
|
this::runOnUiThread, "SignOut");
|
||||||
|
}, deleteAccount);
|
||||||
} else {
|
} else {
|
||||||
if (deleteAccount) briarController.deleteAccount();
|
if (deleteAccount) briarController.deleteAccount();
|
||||||
exit(removeFromRecentApps);
|
exit(removeFromRecentApps);
|
||||||
|
|||||||
Reference in New Issue
Block a user