aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/utils/StringUtils.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-06-05 11:25:56 +0900
committerTadashi G. Takaoka <takaoka@google.com>2014-06-06 19:41:21 +0900
commit987bff9136ec101d06db7903ebb3f505e4ea78d6 (patch)
tree0711cd218040947e63641120b905afb268114779 /java/src/com/android/inputmethod/latin/utils/StringUtils.java
parent8cae9f50b4081564f98abd75d45d19f8091348f2 (diff)
downloadlatinime-987bff9136ec101d06db7903ebb3f505e4ea78d6.tar.gz
latinime-987bff9136ec101d06db7903ebb3f505e4ea78d6.tar.xz
latinime-987bff9136ec101d06db7903ebb3f505e4ea78d6.zip
Refactor logic to determine showing suggestions strip or not
The logic to determine when the suggestions strip (a.k.a. the contextual strip) should be shown is already complex. In addition to that the voice input key get shown on the strip as well. There are a several factors to be considered and a few things to control. - The password input field shouldn't have the strip. - Show voice input key on the strip or not. - User preference settings "Show Voice Input Key". - A voice IME exists and is enabled. - The input field may have a private IME option to prevent the voice input key from being displayed. - Application can specify auto completions. - Full screen mode or not. - User preference settings "Show correction suggestions". - Always show, Show in portrait mode, Always hide. - The input field may have flags to prevent showing suggestions or auto corrections. - Suggestions is empty or not. - An important notice may be shown. Bug: 14981852 Bug: 15436479 Change-Id: I3050fd53ee6271fc64a8f17b6b12d9581d37b750
Diffstat (limited to 'java/src/com/android/inputmethod/latin/utils/StringUtils.java')
0 files changed, 0 insertions, 0 deletions