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:
parent
43683dbe44
commit
5c933b040d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue