Skip to content

Commit

Permalink
Launcher3: Exclude overview lens activity from recents
Browse files Browse the repository at this point in the history
With lens activity starting as a new task, avoid showing Google
app in the recents tasks list.

Change-Id: Ib903292c64b854dcb38117d02edf5013f2855ac1
  • Loading branch information
adithya2306 authored and madmax7896 committed Jun 4, 2024
1 parent 0df4f91 commit f721a11
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public static void startLensActivity(Context context, Supplier<Bitmap> bitmapSup
.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)
Expand Down

0 comments on commit f721a11

Please sign in to comment.