OSDN Git Service

Fixing regression in entering PiP over keyguard.
authorWinson Chung <winsonc@google.com>
Tue, 21 Feb 2017 16:25:03 +0000 (08:25 -0800)
committerWinson Chung <winsonc@google.com>
Tue, 21 Feb 2017 16:43:56 +0000 (08:43 -0800)
commite581ebfb7d8915af7724f841860d5b2eb7b8d045
tree9f92d5646c567062b2c52eaab906cafd0753014f
parentec453e01066615cf0b2e1c309fd3cefff4d003d1
Fixing regression in entering PiP over keyguard.

- The call to check the current system state before entering PiP should
  not check the keyguard visibility state when the activity is resumed.
  The caller (enterPictureInPictureMode()) will make that check itself
  and defer until entering PiP until the keyguard is gone.

Bug: 33645392
Test: android.server.cts.KeyguardLockedTests
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: Ib9a5d0f51400b8dd9146e3445c2415e2a458e690
services/core/java/com/android/server/am/ActivityRecord.java