Merge "Clip windows to their background by default" into lmp-dev

This commit is contained in:
Alan Viverette
2014-07-25 00:29:32 +00:00
committed by Android (Google) Code Review

View 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);