From 1957d281ea123e4925e51fa5ad22ce239ef2a07d Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Thu, 25 Oct 2012 17:42:39 -0700 Subject: Fix bug #7419054 TextView Drawables resolution is broken in RTL mode - check layout direction previous value in the onResolveDrawables(int) callback - dont do any Drawables resolution if we cannot resolve the layout direction - also remove unnecessary call to resolveRtlPropertiesIfNeeded() in ViewGroup when adding a child as the call to resolveRtlPropertiesIfNeeded() will be done into the measure() call itself later Change-Id: I62237af3d307dfea203f7f2865551d1c61a0e0b8 --- core/java/android/view/ViewGroup.java | 1 - 1 file changed, 1 deletion(-) (limited to 'core/java/android/view/ViewGroup.java') diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java index c252c77..dc73e85 100644 --- a/core/java/android/view/ViewGroup.java +++ b/core/java/android/view/ViewGroup.java @@ -3384,7 +3384,6 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager if (child.isLayoutDirectionInherited()) { child.resetRtlProperties(); - child.resolveRtlPropertiesIfNeeded(); } onViewAdded(child); -- cgit v1.1