Handle new intents sent to DashboardActivity in single top launch mode.

This commit is contained in:
akwizgran
2014-02-08 17:51:59 +00:00
parent 97fb9c8c3e
commit fc54bc2207

View File

@@ -53,7 +53,16 @@ public class DashboardActivity extends BriarActivity {
@Override
public void onCreate(Bundle 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);
long handle = i.getLongExtra("briar.LOCAL_AUTHOR_HANDLE", -1);
if(failed) {