OSDN Git Service

Clip windows to their background by default
authorAlan Viverette <alanv@google.com>
Thu, 24 Jul 2014 23:18:53 +0000 (16:18 -0700)
committerAlan Viverette <alanv@google.com>
Thu, 24 Jul 2014 23:18:53 +0000 (16:18 -0700)
BUG: 16549166
Change-Id: I4ed0f60316df02b6ee56e163ad25e27e1396a6ae

policy/src/com/android/internal/policy/impl/PhoneWindow.java

index e3c2203..392c280 100644 (file)
@@ -3379,6 +3379,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
             }
             mDecor.setWindowBackground(background);
 
+            // By default, clip content to the background outline.
+            mDecor.setClipToOutline(true);
+
             final Drawable frame;
             if (mFrameResource != 0) {
                 frame = getContext().getDrawable(mFrameResource);