Skip to content
Snippets Groups Projects
Commit e166d9dd authored by akwizgran's avatar akwizgran
Browse files

Merge branch '1327-setup-crash' into 'master'

Ensure that pressing back after setup will always return the user to home

Closes #1327

See merge request briar/briar!849
parents 135372eb da629df6
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ import javax.annotation.Nullable;
import javax.inject.Inject;
import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
import static android.content.Intent.FLAG_ACTIVITY_TASK_ON_HOME;
@MethodsNotNullByDefault
@ParametersNotNullByDefault
......@@ -94,7 +95,7 @@ public class SetupActivity extends BaseActivity
void showApp() {
Intent i = new Intent(this, OpenDatabaseActivity.class);
i.setFlags(FLAG_ACTIVITY_NEW_TASK);
i.setFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_TASK_ON_HOME);
startActivity(i);
supportFinishAfterTransition();
overridePendingTransition(R.anim.screen_new_in, R.anim.screen_old_out);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment