diff options
| author | 2016-05-10 13:56:21 -0700 | |
|---|---|---|
| committer | 2016-05-10 13:56:21 -0700 | |
| commit | bf9e17b181a90246fe6ebefd11b422e619493f2c (patch) | |
| tree | 553b9d294efcf910011b2e11acc6838c09cab05c | |
| parent | 4b8ab89ecad86353259454f92fd8f2bf1913b21b (diff) | |
PopupWindow: Be more careful with FLAG_LAYOUT_NO_LIMITS
If we intend to clip to the screen we can't pass NO_LIMITS.
Luckily the default behavior for LAYOUT_IN_PARENT_FRAME is to not
clip to the parent frame, so we don't have to do anything except
update our local flag we use for explicit size calculations.
Bug: 28194524
Change-Id: I1465efce7f5412cf646bccd83e23a4b049f4dbc4
| -rw-r--r-- | core/java/android/widget/PopupWindow.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/java/android/widget/PopupWindow.java b/core/java/android/widget/PopupWindow.java index 1ab7a0026c94..f013454d912b 100644 --- a/core/java/android/widget/PopupWindow.java +++ b/core/java/android/widget/PopupWindow.java @@ -827,7 +827,6 @@ public class PopupWindow { */ public void setClipToScreenEnabled(boolean enabled) { mClipToScreen = enabled; - setClippingEnabled(!enabled); } /** |