summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorJosh Tsuji <tsuji@google.com>2022-04-18 13:07:54 -0400
committerJosh Tsuji <tsuji@google.com>2022-04-18 13:07:58 -0400
commitc1b5ff048192363e9db492f2e81df77e05c1fa14 (patch)
tree0ad8618f8b50a40f5083be0d032a5ad691f6434c /core/java/android
parente1edc97d38bf52bc373426981b722b76c4de4e4e (diff)
Invalidate home task snapshot onWakeAndUnlock.
Also, add ability to pass in null to invalidateHomeTaskSnapshot if the correct permissions are held, so that System UI does not need to IPC to Launcher to ask it to invalidate itself. Fixes: 229191103 Test: atest SystemUITests Test: wake and unlock, note no double launcher Change-Id: I0c547639979460b3a85b0ef0a8bbf760d60054cb
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/ActivityClient.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/java/android/app/ActivityClient.java b/core/java/android/app/ActivityClient.java
index 7b7b1efdb86b..668dc6b8ec63 100644
--- a/core/java/android/app/ActivityClient.java
+++ b/core/java/android/app/ActivityClient.java
@@ -454,7 +454,13 @@ public class ActivityClient {
}
}
- /** Removes the snapshot of home task. */
+ /**
+ * Removes the outdated snapshot of the home task.
+ *
+ * @param homeToken The token of the home task, or null if you have the
+ * {@link android.Manifest.permission#MANAGE_ACTIVITY_TASKS} permission and
+ * want us to find the home task token for you.
+ */
public void invalidateHomeTaskSnapshot(IBinder homeToken) {
try {
getActivityClientController().invalidateHomeTaskSnapshot(homeToken);