commit | 4d8681ff6ae8f47566fdc97264fc6b3b4f3b9e9b | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Tue May 23 16:22:08 2017 -0700 |
committer | Winson Chung <winsonc@google.com> | Fri Jun 02 16:02:50 2017 -0700 |
tree | 8a5dc584f31bdc70bacf79e03cf8f38e5525c4f8 | |
parent | 2b2221e94bd4b299ccbcbc76d636ba0b231794db [diff] [blame] |
Workaround to ensure that PIP activities have a visible shadow. - When the window for the activity enters PIP, update the outline provider to override the alpha of the shadow (to be opaque) to ensure that is is visible. Only applies to the task root activity. Bug: 36741700 Test: Launch YT, ensure that there is a shadow when after it enters PIP Test: go/wm-smoke Test: android.server.cts.ActivityManagerPinnedStackTests Change-Id: If089dae84e4916d3d0e7bbeb316215b46e522e05
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java index 236e008..f58a91b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java
@@ -722,6 +722,10 @@ } @Override + public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode) { + } + + @Override public void reportActivityRelaunched() { } };