From a7e0bcd87287ff2f11cdd872026f2eb9ee22bcd0 Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Tue, 16 Oct 2012 19:55:01 -0700 Subject: Fix bug #7363015 Padding is wrong for first item in a ListPopupWindow - when adding a View to a ViewGroup reset all RTL properties of the View to be added instead of only resetting its layout direction Change-Id: Idfa3acce1700c52e20ebfd4c9c4f4ecb3c1d7520 --- core/java/android/view/ViewGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java index 6c1049b940af..0a4eae2faf45 100644 --- a/core/java/android/view/ViewGroup.java +++ b/core/java/android/view/ViewGroup.java @@ -3383,7 +3383,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager } if (child.isLayoutDirectionInherited()) { - child.resetResolvedLayoutDirection(); + child.resetRtlProperties(); child.resolveRtlPropertiesIfNeeded(); } -- cgit v1.2.3-59-g8ed1b