OSDN Git Service

Add API to disallow entering PiP when launching a new activity
authorWinson Chung <winsonc@google.com>
Tue, 22 Aug 2017 18:32:16 +0000 (11:32 -0700)
committerWinson Chung <winsonc@google.com>
Fri, 25 Aug 2017 17:33:23 +0000 (10:33 -0700)
commitf7e03e1a9e28e7f631509de4fe2c26f24b584af1
treee1582adf37adbb9f9a8602a8b71d995f2846fe7a
parent87ad0f7f408d950ee202a9819f3cc5febbba198c
Add API to disallow entering PiP when launching a new activity

- Use this API when launching the camera from a double tap gesture where
  the user expects the camera to start for immediate use.
- Fix missing case of restoring the enter pip state.

Bug: 63916952
Test: Double tap to launch the camera, and ensure it does not trigger
      the current activity to enter PiP (if it supports it)

Change-Id: I2acf44984bcc57dff75701d0e9cbd6b798a97cd8
core/java/android/app/Activity.java
core/java/android/app/ActivityOptions.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/ActivityRecord.java
services/core/java/com/android/server/am/ActivityStack.java
services/core/java/com/android/server/am/ActivityStackSupervisor.java