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 c655100de7
commit 7e2d8d6bfc

View File

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