Fixed sharing files doesn't return control after posting (#1062)

This commit is contained in:
Mihai Boisteanu 2019-02-19 21:56:13 +02:00 committed by Konrad Pozniak
parent 0bb9c0717f
commit d150cebcd0
1 changed files with 2 additions and 0 deletions

View File

@ -285,7 +285,9 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut
composeIntent.setAction(intent.getAction());
composeIntent.setType(intent.getType());
composeIntent.putExtras(intent);
composeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(composeIntent);
finish();
}
private void setupDrawer() {