Launcher3: Exclude overview lens activity from recents

With lens activity starting as a new task, avoid showing Google
app in the recents tasks list.

Change-Id: Ib903292c64b854dcb38117d02edf5013f2855ac1
This commit is contained in:
Adithya R 2023-12-10 13:55:15 +05:30 committed by fazilsheik96
parent 43683dbe44
commit 5c933b040d
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ public class ImageActionUtils {
.setComponent(
new ComponentName(Utilities.GSA_PACKAGE, Utilities.LENS_SHARE_ACTIVITY))
.addFlags(FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK)
.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS)
.addFlags(FLAG_GRANT_READ_URI_PERMISSION)
.setType("image/png")
.putExtra(Intent.EXTRA_STREAM, uri)