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

Commit 9e9e948a authored by Jean Chalard's avatar Jean Chalard
Browse files

Fix a flash in the wrong place

Bug: 7226099
Change-Id: I8f74802b3ae24018fc4176fb2fff2c777ae170b0
parent aac53dd7
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1723,9 +1723,8 @@ public final class InputLogic {
                // the segment of text starting at the supplied index and running for the length
                // of the auto-correction flash. At this moment, the "typedWord" argument is
                // ignored by TextView.
                mConnection.commitCorrection(
                        new CorrectionInfo(
                        mConnection.getExpectedSelectionEnd() - typedWord.length(),
                mConnection.commitCorrection(new CorrectionInfo(
                        mConnection.getExpectedSelectionEnd() - autoCorrection.length(),
                        typedWord, autoCorrection));
            }
        }