commit | bd54c2aab6acc50ac415dfc4a7462d12826e8223 | [log] [tgz] |
---|---|---|
author | Yorke Lee <yorkelee@google.com> | Tue Oct 25 13:49:23 2016 -0700 |
committer | Yorke Lee <yorkelee@google.com> | Fri Oct 28 14:58:19 2016 -0700 |
tree | 9b1e14f3efa90f71cb9189ffb4b971251b2be06c | |
parent | f501c31454b267ead3e68ef610662fb5200c7141 [diff] [blame] |
Add new methods to ITaskStackListener Refactor task change notification logic into a separate class TaskChangeNotificationController. Add ActivityManagerService.unregisterTaskStackChangedListener Add a no-op implementation that clients can subclass to avoid having to reimplement all new methods when they are added. Add new methods: onTaskAdded onTaskRemoved onTaskMovedToFront onTaskDescriptionChanged onActivityRequestedOrientationChanged onTaskFinishing Design doc: https://docs.google.com/document/d/1IgWZ44rKe9k1CzkjP2Mohv12OgRD1FxH8oLAyzhvCY4/edit#heading=h.yhzl6os0dbo5 Cherry-picked from I8302d6d3baf1ac1ca928765fe203091b9fab4070 Bug: 32277482 Test: Verify that callbacks are called in dummy implementations Change-Id: I2ac2b870147ef049f3ee05fc5916c99332334526
diff --git a/services/core/java/com/android/server/am/ActivityStarter.java b/services/core/java/com/android/server/am/ActivityStarter.java index 20a14d3..006c13d 100644 --- a/services/core/java/com/android/server/am/ActivityStarter.java +++ b/services/core/java/com/android/server/am/ActivityStarter.java
@@ -631,7 +631,7 @@ // The activity was already running in the pinned stack so it wasn't started, but either // brought to the front or the new intent was delivered to it since it was already in // front. Notify anyone interested in this piece of information. - mService.notifyPinnedActivityRestartAttemptLocked(); + mService.mTaskChangeNotificationController.notifyPinnedActivityRestartAttempt(); return; } }