OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02ea7d4
)
Bug 5255124: Move cursor to the end of a word after correction popup alternates selection
author
Gilles Debunne
<debunne@google.com>
Fri, 9 Sep 2011 21:49:26 +0000
(14:49 -0700)
committer
Gilles Debunne
<debunne@google.com>
Fri, 9 Sep 2011 22:02:10 +0000
(15:02 -0700)
Change-Id: Idd3edc72edf864f256df173bcf643163192ecbde
core/java/android/widget/TextView.java
patch
|
blob
|
history
diff --git
a/core/java/android/widget/TextView.java
b/core/java/android/widget/TextView.java
index
ebe22cc
..
0ec357f
100644
(file)
--- a/
core/java/android/widget/TextView.java
+++ b/
core/java/android/widget/TextView.java
@@
-9901,6
+9901,9
@@
public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
suggestionSpansFlags[i]);
}
}
+
+ // Move cursor at the end of the replacement word
+ Selection.setSelection(editable, spanEnd + lengthDifference);
}
}
hide();