mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 22:29:53 +01:00
Handle new intents sent to DashboardActivity in single top launch mode.
This commit is contained in:
@@ -53,7 +53,16 @@ public class DashboardActivity extends BriarActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle state) {
|
public void onCreate(Bundle state) {
|
||||||
super.onCreate(state);
|
super.onCreate(state);
|
||||||
Intent i = getIntent();
|
handleIntent(getIntent());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onNewIntent(Intent i) {
|
||||||
|
super.onNewIntent(i);
|
||||||
|
handleIntent(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void handleIntent(Intent i) {
|
||||||
boolean failed = i.getBooleanExtra("briar.STARTUP_FAILED", false);
|
boolean failed = i.getBooleanExtra("briar.STARTUP_FAILED", false);
|
||||||
long handle = i.getLongExtra("briar.LOCAL_AUTHOR_HANDLE", -1);
|
long handle = i.getLongExtra("briar.LOCAL_AUTHOR_HANDLE", -1);
|
||||||
if(failed) {
|
if(failed) {
|
||||||
|
|||||||
Reference in New Issue
Block a user