commit | 3a6cedfe7266163e436f659d9d36d95bea8dcda0 | [log] [tgz] |
---|---|---|
author | Deepanshu Gupta <deepanshu@google.com> | Wed Jul 09 18:10:34 2014 -0700 |
committer | Deepanshu Gupta <deepanshu@google.com> | Wed Jul 09 18:13:59 2014 -0700 |
tree | 045a661ff676da1528a5f1276c68bfc263d555b5 | |
parent | 274a6049edcd99346b0d07e3a4f9f61cd2d84c3e [diff] |
Fix default level flags for bidi. [DO NOT MERGE] Bug: b.android.com/69432 Change-Id: I26ff34a6d1f85c928a9a1cb3dfd739fc7d3a8fb6
diff --git a/tools/layoutlib/bridge/src/android/text/AndroidBidi_Delegate.java b/tools/layoutlib/bridge/src/android/text/AndroidBidi_Delegate.java index 973fa0e..d9f4764 100644 --- a/tools/layoutlib/bridge/src/android/text/AndroidBidi_Delegate.java +++ b/tools/layoutlib/bridge/src/android/text/AndroidBidi_Delegate.java
@@ -40,10 +40,10 @@ case 1: // Layout.DIR_REQUEST_RTL break; // No change. case -1: - dir = Bidi.LEVEL_DEFAULT_LTR; + dir = Bidi.LEVEL_DEFAULT_RTL; break; case -2: - dir = Bidi.LEVEL_DEFAULT_RTL; + dir = Bidi.LEVEL_DEFAULT_LTR; break; default: // Invalid code. Log error, assume LEVEL_DEFAULT_LTR and continue.