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

Commit 7b4787b7 authored by Eric Fischer's avatar Eric Fischer Committed by Android Git Automerger
Browse files

am 7bbb1999: am 72521860: Merge change I8f657a99 into eclair

Merge commit '7bbb1999'

* commit '7bbb1999':
  Avoid a crash trying to get a substring whose start is after its end.
parents 53887d4f 7bbb1999
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4531,6 +4531,11 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                    // Now use the delta to determine the actual amount of text
                    // we need.
                    partialEndOffset += delta;
                    if (partialStartOffset > N) {
                        partialStartOffset = N;
                    } else if (partialStartOffset < 0) {
                        partialStartOffset = 0;
                    }
                    if (partialEndOffset > N) {
                        partialEndOffset = N;
                    } else if (partialEndOffset < 0) {