Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcb2c68f authored by Raph Levien's avatar Raph Levien Committed by Android Git Automerger
Browse files

am 7558ec40: Merge "Fix for AIOBE at android.text.AndroidBidi.directions" into klp-dev

* commit '7558ec40':
  Fix for AIOBE at android.text.AndroidBidi.directions
parents 2b274021 7558ec40
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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];