summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yohei Yukawa <yukawa@google.com> 2015-06-16 21:19:00 -0700
committer Yohei Yukawa <yukawa@google.com> 2015-06-16 21:19:00 -0700
commitf4d225a4b502ef227788447eb1a5bb2902019c01 (patch)
tree8ede6b608ed5ba5b9346a7e500b784a7fce4ccc0
parent3d00f7a1be6ff858a89e2220f33231ecb3570ef3 (diff)
Fix debug log for SpellCheckerSessionListenerImpl#TASK_CANCEL
This is a follow up CL for Ifd05565ac0c057c46ec88a3fb9094c04934041d. SpellCheckerSessionListenerImpl.taskToString(TASK_CANCEL) has somehow returned "STATE_WAIT_CONNECTION" probably because of a copy-and-paste mistake. With this CL, it now returns "TASK_CANCEL", which is observable only in debug log anyway though. Bug: 21319642 Change-Id: Ib0bf11494bd3f210e6e8192fc25a33c65f7d313d
-rw-r--r--core/java/android/view/textservice/SpellCheckerSession.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/textservice/SpellCheckerSession.java b/core/java/android/view/textservice/SpellCheckerSession.java
index 0068efaeba80..e77dc0dd97d8 100644
--- a/core/java/android/view/textservice/SpellCheckerSession.java
+++ b/core/java/android/view/textservice/SpellCheckerSession.java
@@ -226,7 +226,7 @@ public class SpellCheckerSession {
private static String taskToString(int task) {
switch (task) {
case TASK_CANCEL:
- return "STATE_WAIT_CONNECTION";
+ return "TASK_CANCEL";
case TASK_GET_SUGGESTIONS_MULTIPLE:
return "TASK_GET_SUGGESTIONS_MULTIPLE";
case TASK_CLOSE: