From ca26f20fa4903de46e374babbfba8c8a1a5cac93 Mon Sep 17 00:00:00 2001 From: satok Date: Thu, 11 Nov 2010 13:37:18 +0900 Subject: Fix states for showing PunctuationList and correction - Fixed the visibility of the suggestion strip Change-Id: I63ad561c71464657521661dbd25c72dd34841834 --- .../com/android/inputmethod/latin/TextEntryState.java | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'java/src/com/android/inputmethod/latin/TextEntryState.java') diff --git a/java/src/com/android/inputmethod/latin/TextEntryState.java b/java/src/com/android/inputmethod/latin/TextEntryState.java index 1d7659ca3..48a773494 100644 --- a/java/src/com/android/inputmethod/latin/TextEntryState.java +++ b/java/src/com/android/inputmethod/latin/TextEntryState.java @@ -62,7 +62,8 @@ public class TextEntryState { SPACE_AFTER_PICKED, UNDO_COMMIT, CORRECTING, - PICKED_CORRECTION; + PICKED_CORRECTION, + SHOWING_PUNCTUATIONS_LIST; } private static State sState = State.UNKNOWN; @@ -97,7 +98,7 @@ public class TextEntryState { } try { sKeyLocationFile.close(); - // Write to log file + // Write to log file // Write timestamp, settings, String out = DateFormat.format("MM:dd hh:mm:ss", Calendar.getInstance().getTime()) .toString() @@ -169,6 +170,18 @@ public class TextEntryState { displayState(); } + public static void onAbortCorrection() { + if (isCorrecting()) { + sState = State.START; + } + displayState(); + } + + public static void onShowPunctuationsList() { + sState = State.SHOWING_PUNCTUATIONS_LIST; + displayState(); + } + public static void typedCharacter(char c, boolean isSeparator) { boolean isSpace = c == ' '; switch (sState) { -- cgit v1.2.3-83-g751a