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

Commit 5f759864 authored by lucychang's avatar lucychang
Browse files

Don't send AccessibilityEent if text is unchanged

It always sends TYPE_WINDOW_CONTENT_CHANGED event with
CONTENT_CHANGE_TYPE_TEXT when invoking the API TextView#setText.
However, performs action ACTION_SET_SELECTION will call the API and
send the event even though the text unchanged. So the fix tried to
send event only when text is changed.

Bug: 176707630
Test: atest com.android.internal.accessibility.AccessibilityUtilsTest
and manually test by performing action ACTION_SET_SELECTION

Change-Id: I16973f8648270cb0c652c2663615aed1435b0e2e
parent 83fff6cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment