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

Commit 085002c5 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android Git Automerger
Browse files

am 847810f0: am 6e98c280: Merge "Fix for IndexOutOfBounds in setComposingRegion." into gingerbread

Merge commit '847810f0'

* commit '847810f0':
  Fix for IndexOutOfBounds in setComposingRegion.
parents c6c9a7df 847810f0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -428,8 +428,12 @@ public class BaseInputConnection implements InputConnection {
                a = b;
                b = tmp;
            }
            // Clip the end points to be within the content bounds.
            final int length = content.length();
            if (a < 0) a = 0;
            if (b > content.length()) b = content.length();
            if (b < 0) b = 0;
            if (a > length) a = length;
            if (b > length) b = length;

            ensureDefaultComposingSpans();
            if (mDefaultComposingSpans != null) {