Fix default level flags for bidi. [DO NOT MERGE]

Bug: b.android.com/69432
Change-Id: I26ff34a6d1f85c928a9a1cb3dfd739fc7d3a8fb6
(cherry picked from commit 95e636130dfc2c0203f16f5315a7fe14b03eb689)
This commit is contained in:
Deepanshu Gupta
2014-07-09 18:10:34 -07:00
parent e30d3fdd04
commit 357ebfc5e4

View File

@@ -40,10 +40,10 @@ public class AndroidBidi_Delegate {
case 1: // Layout.DIR_REQUEST_RTL case 1: // Layout.DIR_REQUEST_RTL
break; // No change. break; // No change.
case -1: case -1:
dir = Bidi.LEVEL_DEFAULT_LTR; dir = Bidi.LEVEL_DEFAULT_RTL;
break; break;
case -2: case -2:
dir = Bidi.LEVEL_DEFAULT_RTL; dir = Bidi.LEVEL_DEFAULT_LTR;
break; break;
default: default:
// Invalid code. Log error, assume LEVEL_DEFAULT_LTR and continue. // Invalid code. Log error, assume LEVEL_DEFAULT_LTR and continue.