OSDN Git Service

Fix NPE notifyActivityPinned
authorWale Ogunwale <ogunwale@google.com>
Tue, 7 Nov 2017 21:20:53 +0000 (13:20 -0800)
committerWale Ogunwale <ogunwale@google.com>
Tue, 7 Nov 2017 21:30:32 +0000 (21:30 +0000)
commitb7cf0638b9a65d8531a7113dae90191c08ce561e
tree87334c1d73395bac7e2cbb782a7290546b0e8bec
parentb6ba24718824745c3567141a18f9ed120afd6f3c
Fix NPE notifyActivityPinned

It is possible an activity is removed from it task before the
notifyActivityPinned call is processed. To avoid this we now add the
relevant information to the message before posting.

Change-Id: Ib65dee1db3033568d2385703edc92ca4bfd12549
Fixes: 68918788
Test: go/wm-smoke
services/core/java/com/android/server/am/TaskChangeNotificationController.java