Merge "Clear back stack when editing a screenshot" into rvc-dev am: 76942bc683 am: eae49b3e2f am: 67b6bb0b54

Change-Id: I39b0790c0df98ab286176452be2e923c6b65f9e6
This commit is contained in:
Matt Casey
2020-04-27 20:52:58 +00:00
committed by Automerger Merge Worker

View File

@@ -324,6 +324,7 @@ class SaveImageInBackgroundTask extends AsyncTask<Void, Void, Void> {
editIntent.setData(uri);
editIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
editIntent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
editIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
// Make sure pending intents for the system user are still unique across users
// by setting the (otherwise unused) request code to the current user id.