Commit Graph

115 Commits

Author SHA1 Message Date
Satoshi Kataoka
ef120bea7b Fix sort order of InputMethodSubtype
Bug: 8638372
Change-Id: I65d30f968708dc836635f687aa51b51816daccdb
2013-04-19 02:09:26 +09:00
Benjamin Poiesz
cbde502ebb Forcing the settings apk to be built with the zz_ZZ pseudolocale.
This will enable Settings to show the effects of the zz_ZZ pseudolocale when selected in the LocalePicker.

Bug #8556677

Change-Id: I68ffc81454865dec94a3c1460019d1efce00ea49
2013-04-11 13:32:39 -07:00
Jean Chalard
5031683a72 am d0a9d5b6: am a374d816: Distinguish adding an already present word / cancelling
* commit 'd0a9d5b6e0b557c3796616791fd3ac93d12bcad9':
  Distinguish adding an already present word / cancelling
2012-12-17 10:46:29 -08:00
Jean Chalard
a374d81605 Distinguish adding an already present word / cancelling
Bug: 7725834
Change-Id: Iab3d1818f008a553868fb30e8460ea3f77c2de50
2012-12-17 15:52:07 +09:00
Mike Cleron
6d3925ce5b am 49ce96a1: am 1f597c87: Merge "Call back to whom requested to add a word to the user dict" into jb-mr1.1-dev
* commit '49ce96a14be5d414128b9e8ca12de281b610a57f':
  Call back to whom requested to add a word to the user dict
2012-12-14 11:00:28 -08:00
Jean Chalard
e3f1171309 Call back to whom requested to add a word to the user dict
Bug: 7725834
Change-Id: I2537754789f25fa978efd457979ed130806b9fbf
2012-12-14 18:08:05 +09:00
Shuhrat Dehkanov
96577681a2 Grey out settings icon when it is in disabled state
If engine is not active, its settings icon is disabled in
Settings > Language & input > Text-to-speech output screen.
Currently, settings icons for all TTS engines are shown at
the same opacity. This fix dims settings icons of not-selected
engines.
Make sure that more than one TTS engine are installed on the
target, for e.g., Google Text-to-speech Engine and Classic
Text To Speech Engine (SVOX Classic TTS).

Additionally, since setAlpha() is used in multiple places within
Settings package, moved DISABLED_ALPHA declaration to Utils.java
in order to have single point of reference.

Change-Id: Ifa7de79814a2f4a4aa021cd8621cbfab41655680
Signed-off-by: Shuhrat Dehkanov <uzbmaster@gmail.com>
2012-11-28 23:45:35 +09:00
Björn Lundén
c8272b0752 Fix use of holo drawables in a few more places
Change-Id: Ie549ff14812da807729641fab1871fffe35f80b6
2012-08-14 01:25:21 +02:00
Jean-Baptiste Queru
eefa61ed2e Merge "Settings: Use ICS alert drawable" 2012-08-13 11:53:46 -07:00
Amith Yamasani
e5147e4933 am 5b7a8204: Merge "Show only the language if there\'s only one locale for the language." into jb-dev
* commit '5b7a8204d875c901782ff482b68fde8da7a0081f':
  Show only the language if there's only one locale for the language.
2012-06-13 15:24:12 -07:00
Amith Yamasani
140b6f5234 Show only the language if there's only one locale for the language.
If the system has only one instance of that language, then only show the language
without the country name.

Bug: 6522572
Change-Id: I1e99182b1c669b200090f6c360bb902376b63ab0
2012-06-13 12:56:21 -07:00
Jean-Baptiste Queru
093cf6094c Swap start/stop of SettingsObserver and InputDeviceListener
Change-Id: Ic6b7bab860f71889a6ec476ccab1e83d2efd0e64
2012-06-12 15:43:17 -07:00
Jean-Baptiste Queru
89d702ac68 resolved conflicts for merge of 051f46d7 to jb-dev-plus-aosp
Change-Id: I73165a3d77318cbb0271e0d5c64cc49caad8f693
2012-06-12 15:22:22 -07:00
Shuhrat Dehkanov
9bcc607049 Unregister ContentObserver in InputMethodAndLanguageSettings class
A content observer (SettingsObserver) is registered when
InputMethodAndLanguageSettings is created, but it is never unregistered.

Added resume() and pause() methods to SettingsObserver inner class
to register/unregister the content observer when InputMethodAndLanguageSettings
is resumed/paused.

Change-Id: I6d4cc2625a5fd8435967d930f46e8fe86eda4714
Signed-off-by: Shuhrat Dehkanov <uzbmaster@gmail.com>
2012-06-13 03:20:38 +09:00
Björn Lundén
e7c53b1c9e Settings: Use ICS alert drawable
Point to the correct holo alert drawable.

Change-Id: Ia15aaa028c8371cb2478baeecd2da31520c43a5d
2012-05-31 23:35:24 +02:00
satok
1506521362 Do not show security warning for the system IMEs
Bug: 6587127
Change-Id: I00584fb81cf5b39806c30a801b215a0e9a1e9399
2012-05-31 23:43:37 +09:00
Jeff Brown
bf677f48b7 Fix comparison of device source bits.
Bug: 6576743
Change-Id: I123307defc32a84a965590fbded95c6997260675
2012-05-30 14:33:16 -07:00
Jeff Brown
766b286187 Add UI to select multiple keyboard layouts.
Bug: 6405203
Change-Id: I27ca4630aebcb39b83298d37d8fb3f4ef0080317
2012-05-20 14:56:42 -07:00
Jeff Brown
a350352e03 Add support for grouping keyboard layouts by collection.
Bug: 6405203
Change-Id: I458c4976562ecea2fa03d96258ff28ebbdc95294
2012-05-17 16:02:38 -07:00
satok
e508dc25f2 Fix the crash during opning the illegal settings of the spell checker
Bug: 5591245
Change-Id: I4ff61a59b0622c74b34bc50a00fc9773c04a6395
2012-05-11 18:52:02 +09:00
Jean Chalard
eed02dd2d5 Fix a bug with adding a word
It was possible to insert a word without a shortcut while the same
word used to be present with a shortcut. This change fixes that.

Bug: 6026080
Change-Id: I3be98bf450aad8e2eb38336e8f77aedab39d5797
2012-05-10 18:12:54 +09:00
Jean Chalard
271543876d Implement the "more locales" feature.
Bug: 6026080
Change-Id: I051a734321793e9130dc2cc77d4e7f670d2ce93d
2012-05-10 18:11:04 +09:00
Jean Chalard
f14002ca6b Fix a bug with a duplicate entry
When going to the "all languages" dictionary and opening an
entry, the "all languages" entry would be listed twice.

Change-Id: Ie8cd7e9e824e95c05899b956905af6590b8929bc
2012-05-10 13:28:27 +09:00
Jean Chalard
5bdde7f939 Implement the delete button for user words
Bug: 6026080
Change-Id: I43345874edb0a1b51dfcac9c99e74c345eeef7e6
2012-05-10 13:22:21 +09:00
Jean Chalard
657beac9bb Rework the de-duplication scheme for shortcuts.
Bug: 4646172
Change-Id: I88966f3e910f51711ce49336fb9134d0953930de
2012-05-09 19:57:14 +09:00
Jean Chalard
1571c0a377 Pass the shortcut to the user dictionary provider.
Bug: 6026080

Change-Id: I87b7c8b1ae89856f393871e6d3440b43efc22a29
2012-05-09 19:57:08 +09:00
Jean Chalard
c4c4b916eb Small cleanup
Change-Id: Id8e8352b725d2259c70690a1a7dfe29fab9b6eb0
2012-05-09 17:50:25 +09:00
Jean Chalard
5642fdbf43 Improve encapsulation
Change-Id: I30d28c3a62cc5de3432f04b6469eca077ee3eff6
2012-05-09 17:50:21 +09:00
Jean Chalard
ac499c34fe Remove the useless parts in the 'add word' dialog.
Bug: 6026080
Change-Id: Ic2bf6dcfc2abfe5fc07759530042299cc6a0b503
2012-05-09 17:50:18 +09:00
Jean Chalard
a0868ffd5d Move the spinner code to the fragment.
Bug: 6026080
Change-Id: I49e1aa1839266ca169982b6a4800ee9923451be5
2012-05-09 17:50:14 +09:00
Jean Chalard
f54622e46c Cut a helper method to increase encapsulation.
Change-Id: Ie47503a99d455f7266e281914e92ed680b993551
2012-05-09 17:49:59 +09:00
Jean Chalard
fbffd0c982 Move the word commit code to UserDictionaryAddWordContent.
...and call it from the fragment too.

Bug: 6026080
Change-Id: Icb83fd60ed33dfa593124ed0af6b9fff4b63f1f5
2012-05-08 20:47:51 +09:00
Jean Chalard
be3f0faf52 Factor some code
Bug: 6026080
Change-Id: I38475a95b1d421162099390244dbda09658346f5
2012-05-08 20:26:59 +09:00
Jean Chalard
be07e49a92 Implement the "add word" screen according to new spec
This is only the interface. It doesn't do anything yet, so as to
avoid a too large change.

Bug: 6026080
Change-Id: I0c7f0c09f71e01b18fcb3566a3c6c4b0f0b2a0fc
2012-05-08 20:10:51 +09:00
Jean Chalard
b9f837dd1d Fix a janky transition
Bug: 6026080
Change-Id: I75bd244b2b09c371805a67057d2a9c45dc12f3db
2012-05-08 13:09:39 +09:00
Amith Yamasani
f6d8961843 Reduce the amount of I/O done on the UI thread.
There was unnecessary saving of IME settings when changing the state
of the checkboxes, causing ANRs when monkeys are switching between
Settings fragments quickly while other background activity is using
I/O as well. In fact, all I/O should be removed, but this change at least
reduces some of it.

Potential fix for:
Bug: 6414289

Change-Id: Ice96f0f9d921128b27ddbe26519a6791d9f01c75
2012-05-07 17:56:14 -07:00
satok
472c3c93fc Always on the valid system default ime
Bug: 6422390

Change-Id: I9af4065e4b9f9332f3b0db168dea5546727d5951
2012-05-02 21:08:46 +09:00
Jeff Brown
512d0cb3eb Add label for default keyboard layout.
Bug: 6110399
Change-Id: I2431b99884cbd01de32f8cd6c14a3afbd18b5020
2012-04-17 13:55:15 -07:00
Jeff Brown
f8fb0e5b24 Add setting to redirect vibrator to game controller.
Bug: 6334179
Change-Id: I62c9c163aa4ee2c88286daee77641418869a1dab
2012-04-13 20:27:45 -07:00
Jeff Brown
96cdcd80a8 Use new input device listener API to refresh keyboards.
Bug: 6110399
Change-Id: Ibb0bbeb40af2ee7204e4682bc7493262407fd83f
2012-04-13 18:25:51 -07:00
Jeff Brown
4397f406a3 Update use of input manager API in settings.
Change-Id: I7aa033df8b5eec69cc6002b0bcc20b1d9902e4e0
2012-04-10 18:23:59 -07:00
Jeff Brown
e46c5f30ca Add new settings UI to select keyboard layout.
Bug: 6110399
Change-Id: Ib2758bdcdd6b271be402f46c56d41619dc7aecb9
2012-04-05 14:41:41 -07:00
Jean Chalard
75eba8cf56 Make the layout of the add word dialog easier to understand
Change-Id: I1a71d5c95c142655219c7ab3ae4f67fa0b1f3d1a
2012-01-23 16:14:37 +09:00
Jean Chalard
124283e83b Have the add dialog maintain state across screen rotation
Change-Id: I44d61018e0ed4de32b0a8da3ecba999831987956
2011-12-21 17:51:02 +09:00
Jean Chalard
2c892d900b Change the "manage dictionaries" button to "less options"
This is supposed to be easier to understand for users.

Change-Id: I144031941712ab15fb490619c288d533ce884ee9
2011-12-16 18:31:48 +09:00
Gilles Debunne
5aa7a15706 Merge "Typos in CheckBoxAndSettingsPreference" 2011-12-08 11:17:05 -08:00
Jean Chalard
d99ba493ef Add an option to show the whole language list
The option is not functional yet.
Also, this change simplifies a little the inner workings by
preventing mLocale from being null.
Step 9

Bug: 5306641
Change-Id: Id2284976d34d9d8ac61cbdb2348893989c47da84
2011-12-08 20:11:51 +09:00
Jean Chalard
c6d0e6353e Add functionality to the spinner.
With this, the word is actually inserted with the right locale
inside the user dictionary.
Step 8.

Bug: 5306641
Change-Id: Idf6cf3dd807e86c29faf8a701c03c1e6ea39ec68
2011-12-08 18:43:01 +09:00
Jean Chalard
11e726d233 Small refactoring to make the next diff smaller
Step 7

Bug: 5306641
Change-Id: If5454679252a54670c501d3a63e9e4bd45028c44
2011-12-08 18:30:28 +09:00
Jean Chalard
a947e582f1 Populate the locale list
This populates the language list. The option looks like it works,
but is not implemented yet.

Step 6.

Bug: 5306641
Change-Id: I6ef84dea9a26e450add1d91b44238d86fe49200a
2011-12-08 18:28:37 +09:00