summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/TextView.java
diff options
context:
space:
mode:
authorGilles Debunne <debunne@google.com>2011-11-16 10:37:23 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-16 10:37:23 -0800
commitb3272d297bb45e5cd3201766baef4fef7921ce05 (patch)
treeb91c4f6166c731ec0a559af50ddec6ea0afabfe1 /core/java/android/widget/TextView.java
parenta962ef2993099e6c5db3809a7e829e43c8cf084a (diff)
parentde8c5ec88982b836b2c50d4f685f4e05b29bdd0d (diff)
downloadframeworks_base-b3272d297bb45e5cd3201766baef4fef7921ce05.zip
frameworks_base-b3272d297bb45e5cd3201766baef4fef7921ce05.tar.gz
frameworks_base-b3272d297bb45e5cd3201766baef4fef7921ce05.tar.bz2
am de8c5ec8: Merge "IME action (done, next...) correctly handled" into ics-mr1
* commit 'de8c5ec88982b836b2c50d4f685f4e05b29bdd0d': IME action (done, next...) correctly handled
Diffstat (limited to 'core/java/android/widget/TextView.java')
-rw-r--r--core/java/android/widget/TextView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java
index f422f60..185cfa9 100644
--- a/core/java/android/widget/TextView.java
+++ b/core/java/android/widget/TextView.java
@@ -3785,7 +3785,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,
@@ -5594,6 +5594,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;