diff options
| author | Gilles Debunne <debunne@google.com> | 2011-11-17 05:45:29 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2011-11-17 05:45:29 -0800 |
| commit | 664d87ef01f7b4dbd7c96f23db73aba6cbc57481 (patch) | |
| tree | 75b7534f88b3c7e46dbadc97b9c86862f5860cbe /core/java | |
| parent | ec2b01e78858a4e6b304f07afb32d76bea6804fb (diff) | |
| parent | b3272d297bb45e5cd3201766baef4fef7921ce05 (diff) | |
| download | frameworks_base-664d87ef01f7b4dbd7c96f23db73aba6cbc57481.zip frameworks_base-664d87ef01f7b4dbd7c96f23db73aba6cbc57481.tar.gz frameworks_base-664d87ef01f7b4dbd7c96f23db73aba6cbc57481.tar.bz2 | |
am b3272d29: am de8c5ec8: Merge "IME action (done, next...) correctly handled" into ics-mr1
* commit 'b3272d297bb45e5cd3201766baef4fef7921ce05':
IME action (done, next...) correctly handled
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/widget/TextView.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index c5421dc..ee5fa64 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -3799,7 +3799,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener return; } } - + // This is the handling for some default action. // Note that for backwards compatibility we don't do this // default handling if explicit ime options have not been given, @@ -5608,6 +5608,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener outAttrs.extras = mInputContentType.extras; } else { outAttrs.imeOptions = EditorInfo.IME_NULL; + // May not be defined otherwise and needed by onEditorAction + mInputContentType = new InputContentType(); } if (focusSearch(FOCUS_DOWN) != null) { outAttrs.imeOptions |= EditorInfo.IME_FLAG_NAVIGATE_NEXT; |
