aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/android/inputmethod/latin/KeyboardSwitcher.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Don't let the native code target be included twice when unbundling.Amith Yamasani2010-03-091-351/+0
| | | | | | | Move java code to a different directory so that the unbundled version doesn't try to compile the native code again. Change-Id: I05cf9e643824ddc448821f69805ccb0240c5b986
* b/2449438 : ALT key sometimes doesn't work in the symbols keyboardAmith Yamasani2010-03-031-2/+1
| | | | | | | | This change seems to fix it. Will continue to monitor if it happens. From tracing the code, it seemed to think that the current keyboard was not a symbols keyboard, so the "equals" call was failing. It was probably due to voice mode changing between keyboard creation and display.
* Fix for microphone icon showing up incorrectly on the ?123 icon.Amith Yamasani2010-02-261-4/+6
| | | | | | | | | This also addresses the defaults for voice button on a wiped device. I think it also addresses mic button showing up when not expected by a specific text field that has the privateImeOptions of "nm". Bugs 2417842, 2242893
* Save and restore Auto Dictionary data.Amith Yamasani2010-02-241-0/+1
| | | | | | | | | | | | | | | | | | | Due to the addition of input language switching, the auto dictionary will be re-created very frequently. We need to save it and restore it during transitions, otherwise the data will be purged too often to be of much use in the multi-lingual case. This also fixes the case where a user frequently turns the phone off/on. Auto dictionary data was not being saved in those situations either. The dictionary will probably never grow too large since most of the frequently used words will be moved to the user dictionary any way. Also, now the input locale is different from the display locale, so save the input locale in the UserDictionary class and insert words into the user dictionary with the correct locale. And NPE fix for bug: 2464573
* Suggest punctuations between word suggestions, for easy access to ?,!, etc.Amith Yamasani2010-02-031-1/+0
| | | | Also fix a visual bug with the dividers between suggested words.
* Language switching with slide gesture on spacebar. Bug: 2331173Amith Yamasani2010-02-011-8/+6
| | | | | | Shows the language on the spacebar and in the preview bubble. Allows dragging of the spacebar from side to side to switch to previous or next languages.
* Setting to move microphone to secondary keyboard.Amith Yamasani2010-01-281-42/+41
| | | | | | | | Microphone button can be optionally moved to the symbols keyboard to get your comma back. You can also completely disable voice input. Now you can get your comma back but still use the swipe gesture to activate voice input.
* New keyboard layout for bottom row.Amith Yamasani2010-01-271-1/+9
| | | | | Additional mode for WEB_EDIT fields w/Tab key for next field. Button assets refresh and fix for a highlight asset bug.
* Migrate voice features into the open-source LatinIME. This includesMike LeBeau2010-01-171-22/+59
| | | | | | | | | | | | | | | | | | | the change to logging to remove any private dependencies and use broadcast intents to VoiceSearch instead. I have audited this code and it appears good to go for open-source, but would appreciate a second pair of eyes. Still to do after submitting this CL: * Reintroduce Amith's memory leak fix (37557) which was the only CL added to LatinIME since the last merge over to the private copy. * Make some changes to allow LatinIME to work without voice search installed. Currently I believe it will show the mic but fail if you press it. We need to base the visibility on the mic on the availability of the service. * Fix this code to use the new Gservices framework, it's still trying to use the old one.
* Input language switching. Bug: 2331173Amith Yamasani2009-12-161-3/+37
| | | | | | | | | | | | New feature to enable fast switching between input languages for multilingual users. Keyboard settings lets you select a bunch of languages to switch between from the Latin IME. Use the Globe icon to toggle between languages. Needs more work and some layout changes in specialized keyboards. Also added a Russian keyboard (needs some pixel TLC at the right edge).
* Experimental Extension keyboardAmith Yamasani2009-12-081-0/+7
| | | | | Slide up on keyboard to get an extended keyboard for numbers and punctuations. This is work in progress...
* Fix 2146178: On-screen keyboard is wider than screenAmith Yamasani2009-09-301-2/+3
| | | | | | | | | | | | Sometimes the keyboard is getting confused about it's width when switching between hard keyboard open and close state and portrait-forced home. Force creation of keyboard layouts after a configuration change to fix the inconsistent state. Don't force create when just switching between input fields, too expensive. Also fixes the problem of keyboard not changing layout after a locale change, unless there's an orientation change.
* Fixed accidental switch to symbols mode from alphabet.Amith Yamasani2009-09-011-2/+6
| | | | | | | | | | The KeyboardSwitcher was remembering state from a previous edittext where the user was in symbols mode and applying the switch code when user hits space in the new edittext for the first time. Make sure to reset the state when a new keyboard mode is requested. Also make sure that we don't switch from symbols to alphabet keyboard when editing in a number/datetime field and hitting space.
* Improve auto-add heuristics.Amith Yamasani2009-08-131-4/+6
| | | | Also add auto-switch back to alphabet mode on pressing enter key.
* Auto-switch back from symbols keyboard on space.Amith Yamasani2009-08-131-0/+28
| | | | Also fix bug 1904029: Rotating keyboard while texting causes words to be deleted.
* AI 147900: Set symbols state when setting keyboard in LatinIME [bug fix for ↵Brandon Ballinger2009-04-281-2/+2
| | | | | | | | 1815418]. BUG=1815418 Automated import of CL 147900
* AI 147226: Create symbols and shifted symbols keyboards when initializing ↵Brandon Ballinger2009-04-211-0/+2
| | | | | | KeyboardSwitcher. Automated import of CL 147226
* AI 146596: Re-factor KeyboardSwitcher to keep a map of KeyboardId->Keyboard ↵Brandon Ballinger2009-04-161-126/+115
| | | | | | rather than a separate variable for each configuration. This makes it more maintainable to add more states in the future. Automated import of CL 146596
* auto import from //branches/cupcake/...@138744The Android Open Source Project2009-03-131-0/+241