From 4e796f8a21edc32f477c8100b1947f8a15335928 Mon Sep 17 00:00:00 2001 From: Prabir Pradhan Date: Mon, 8 Feb 2021 14:47:23 -0800 Subject: [PATCH] Send onTaskDisplayChanged callback for local listeners Bug: 179715787 Test: manual: Ensure a TaskStackListener registered from system_server gets the onTaskDisplayChanged callback; verified by logging. Change-Id: I18d6f691c774108deb9634c648fd8d923227a6e8 --- .../com/android/server/wm/TaskChangeNotificationController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/wm/TaskChangeNotificationController.java b/services/core/java/com/android/server/wm/TaskChangeNotificationController.java index e18219ef4f46f..622fe05b6170e 100644 --- a/services/core/java/com/android/server/wm/TaskChangeNotificationController.java +++ b/services/core/java/com/android/server/wm/TaskChangeNotificationController.java @@ -497,7 +497,7 @@ class TaskChangeNotificationController { void notifyTaskDisplayChanged(int taskId, int newDisplayId) { final Message msg = mHandler.obtainMessage(NOTIFY_TASK_DISPLAY_CHANGED_LISTENERS_MSG, taskId, newDisplayId); - forAllLocalListeners(mNotifyTaskStackChanged, msg); + forAllLocalListeners(mNotifyTaskDisplayChanged, msg); msg.sendToTarget(); }