We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6643ea8 + 02c6fca commit 438a3b3Copy full SHA for 438a3b3
core/java/android/view/View.java
@@ -7010,10 +7010,12 @@ private boolean previousAtGranularity(int granularity) {
7010
int current = getAccessibilityCursorPosition();
7011
if (current == ACCESSIBILITY_CURSOR_POSITION_UNDEFINED) {
7012
current = text.length();
7013
+ setAccessibilityCursorPosition(current);
7014
} else if (granularity == AccessibilityNodeInfo.MOVEMENT_GRANULARITY_CHARACTER) {
7015
// When traversing by character we always put the cursor after the character
7016
// to ease edit and have to compensate before asking the for previous segment.
7017
current--;
7018
7019
}
7020
final int[] range = iterator.preceding(current);
7021
if (range == null) {
0 commit comments