am 7558ec40: Merge "Fix for AIOBE at android.text.AndroidBidi.directions" into klp-dev
* commit '7558ec405f67b59afbf6089d13928cfdb2f950ff': Fix for AIOBE at android.text.AndroidBidi.directions
This commit is contained in:
@@ -60,6 +60,9 @@ import android.text.Layout.Directions;
|
||||
*/
|
||||
public static Directions directions(int dir, byte[] levels, int lstart,
|
||||
char[] chars, int cstart, int len) {
|
||||
if (len == 0) {
|
||||
return Layout.DIRS_ALL_LEFT_TO_RIGHT;
|
||||
}
|
||||
|
||||
int baseLevel = dir == Layout.DIR_LEFT_TO_RIGHT ? 0 : 1;
|
||||
int curLevel = levels[lstart];
|
||||
|
||||
Reference in New Issue
Block a user