From 78528b22c29f570469fe3c75328042f83a5a24c3 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Tue, 2 Jun 2015 17:33:09 +0200 Subject: Fixed a RTL layouting bug with LinearLayout When the RTL properties of a horizontal LinearLayout changed, nobody enforced the view to be layouted anew, even though its layout is dependent on the layout direction. This could lead to stale layouts being temporarily layouted the wrong way. Bug: 20495301 Change-Id: I979c8d86ee711626b2901b65ebdf007c1eb1c0fa --- core/java/android/util/LayoutDirection.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/java/android/util/LayoutDirection.java') diff --git a/core/java/android/util/LayoutDirection.java b/core/java/android/util/LayoutDirection.java index 20af20b65009..03077e49b802 100644 --- a/core/java/android/util/LayoutDirection.java +++ b/core/java/android/util/LayoutDirection.java @@ -26,6 +26,12 @@ public final class LayoutDirection { // No instantiation private LayoutDirection() {} + /** + * An undefined layout direction. + * @hide + */ + public static final int UNDEFINED = -1; + /** * Horizontal layout direction is from Left to Right. */ -- cgit v1.2.3