OSDN Git Service

Ensuring that isPictureInPictureMode() mirrors dispatched mode.
authorWinson Chung <winsonc@google.com>
Mon, 24 Apr 2017 22:14:11 +0000 (15:14 -0700)
committerWinson Chung <winsonc@google.com>
Tue, 25 Apr 2017 00:35:05 +0000 (17:35 -0700)
commit4288311d5381c87c3e85f6f9cbe087f162cc84a9
tree6a337f9825f4aca340522f4d63fab6eb7f7cbded
parent094996a2b38a47c3e4d768cc77f8c28fd4b81967
Ensuring that isPictureInPictureMode() mirrors dispatched mode.

- When transitioning out of picture-in-picture, we schedule
  onPictureInPictureModeChanged() when the animation starts, so the check
  in isInPictureInPicture() should match this as well.

Bug: 36845078
Test: Updated android.server.cts.ActivityManagerPinnedStackTests to also
      whenever PipActivity PiP mode changes, that it matches the activity
      state as well.

Change-Id: I31d7a3307b01b818e867f86a4553a363c7f11307
services/core/java/com/android/server/am/ActivityManagerService.java