Clear back stack when editing a screenshot

Previously old screenshot editing sessions could be accessed via back
(or similar on-screen affordance).

Bug: 149483164
Test: Manual testing of bug resolution.
Change-Id: Ic508371220c13b42b72ea9b42c0395d9f250f8a7
This commit is contained in:
Matt Casey
2020-04-25 14:02:14 -04:00
parent b86e5a77a1
commit 559ac1cb4a

View File

@@ -301,6 +301,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);
// Create a edit action
PendingIntent editAction = PendingIntent.getBroadcastAsUser(context, requestCode,