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

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() {