summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/inputmethod
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2014-06-10 09:33:13 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-06-10 09:33:13 +0000
commit2f4bd692d367f349422c5d727b644e9d4bac9672 (patch)
tree476a1efb35fb75c49e34309c81cba044519fea0e /core/java/android/view/inputmethod
parentef2b37ea87552f90af7bfb8d2b0e00d0e1091e0b (diff)
parent39dd1510ea2bfb79709075f352384730862fd4c4 (diff)
downloadframeworks_base-2f4bd692d367f349422c5d727b644e9d4bac9672.zip
frameworks_base-2f4bd692d367f349422c5d727b644e9d4bac9672.tar.gz
frameworks_base-2f4bd692d367f349422c5d727b644e9d4bac9672.tar.bz2
Merge "Use more user actions to update the IME rotation order"
Diffstat (limited to 'core/java/android/view/inputmethod')
-rw-r--r--core/java/android/view/inputmethod/BaseInputConnection.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/view/inputmethod/BaseInputConnection.java b/core/java/android/view/inputmethod/BaseInputConnection.java
index a74e3a0..e1f40b7 100644
--- a/core/java/android/view/inputmethod/BaseInputConnection.java
+++ b/core/java/android/view/inputmethod/BaseInputConnection.java
@@ -195,6 +195,7 @@ public class BaseInputConnection implements InputConnection {
public boolean commitText(CharSequence text, int newCursorPosition) {
if (DEBUG) Log.v(TAG, "commitText " + text);
replaceText(text, newCursorPosition, false);
+ mIMM.notifyUserAction();
sendCurrentText();
return true;
}
@@ -435,6 +436,7 @@ public class BaseInputConnection implements InputConnection {
public boolean setComposingText(CharSequence text, int newCursorPosition) {
if (DEBUG) Log.v(TAG, "setComposingText " + text);
replaceText(text, newCursorPosition, true);
+ mIMM.notifyUserAction();
return true;
}
@@ -518,6 +520,7 @@ public class BaseInputConnection implements InputConnection {
viewRootImpl.dispatchKeyFromIme(event);
}
}
+ mIMM.notifyUserAction();
return false;
}
@@ -601,9 +604,6 @@ public class BaseInputConnection implements InputConnection {
}
beginBatchEdit();
- if (!composing && !TextUtils.isEmpty(text)) {
- mIMM.notifyUserAction();
- }
// delete composing text set previously.
int a = getComposingSpanStart(content);