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

Commit 6e222bca authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Off by one bug in TextView's suggestions popup.

Change-Id: I39615bb75e1e2e24ba5c5a65f1b3e11f8fadd89f
parent 3723396c
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;