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

Skip to content
Commit c6310439 authored by ot_guanglinw.wu's avatar ot_guanglinw.wu Committed by Siyamed Sinir
Browse files

Fix PackedIntVector IndexOutOfBoundsException

This JE occurs because the Editor receives an ACTION_MOVE event and calls performCursorDrag() when the number of lines in the textview is reduced and the cursor position exceeds the maximum number of lines in the textview

If the line where the cursor was last is larger than the number of lines in the textview, the actual number of lines in the textview is returned.

Bug: 281228811
Test: manually
1.Enter message app
2.Input more than two lines in edittext, drag the cursor on the
last line and delete the last text in that line
(cherry picked from https://partner-android-review.googlesource.com/q/commit:64a89f02765c0c22139000396ec425026b088a59)

Change-Id: Ife117e1a577223ff1bcd28ab202a6a9c1e391f72
parent 251c41d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment