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

Commit 9de128ef authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "Off by one bug in TextView's suggestions popup."

parents 19c5c7a7 6e222bca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8290,7 +8290,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                    suggestionInfo.spanEnd = spanEnd;

                    totalNbSuggestions++;
                    if (totalNbSuggestions > MAX_NUMBER_SUGGESTIONS) {
                    if (totalNbSuggestions == MAX_NUMBER_SUGGESTIONS) {
                        // Also end outer for loop
                        spanIndex = nbSpans;
                        break;