Commit Graph

286 Commits

Author SHA1 Message Date
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
Jean Chalard
60bca710ee Add the more options interface.
The interface is not functional yet, aside from the "Manage"
button. This will come in a later change.
Step 5

Bug: 5306641
Change-Id: I4bdea099eece7ba8a50bbfb47e173036334064ea
2011-12-08 12:33:15 +09:00
Jean Chalard
6b8e6585c6 Move adding word functionality to the new interface
Step 4

Bug: 5306641
Change-Id: I150fd93e9802e92b4cf084867f0a9d1bc382cdae
2011-12-07 16:41:58 +09:00
Jean Chalard
0824d31aea Add the cancel button handler
Step 3

Bug: 5306641
Change-Id: Ida4ccf181942714799576fde0ac55596ce043434
2011-12-07 12:05:58 +09:00
Jean Chalard
e17eefab87 Add the new add_word interface.
This is step 2. The interface is not functional yet.

Bug: 5306641
Change-Id: Idc8d07b883a17067f777c86d83994fb040b37c59
2011-12-07 11:48:19 +09:00
Jean Chalard
bd44e9d399 Add a new activity for adding a user dictionary word
This is step 1.

Bug: 5306641
Change-Id: I69727f05df8f3455e6e734140f712ccf7881e5be
2011-12-07 11:36:01 +09:00
Gilles Debunne
c79bf37621 Typos in CheckBoxAndSettingsPreference
Change-Id: Ied042582e3aa1ef8eb5f71b56e734c8889711080
2011-12-05 18:06:16 -08:00
satok
7ea58d3164 Update enabled subtypes in the input method subtype enabler in "onResume"
Bug: 5446825
Change-Id: Iab52ecb8a7334b7be3a81350fbfc9b02d09e88d4
2011-10-18 00:21:04 +09:00
satok
a43dd3962e Show a security warning dialog when switching a spell checker
Bug: 5402295

Change-Id: I021e6e923fa137248d23c8fa39e68afdf73fead9
2011-10-05 19:11:28 +09:00
satok
8fe9869955 Fix the behavior of preference in IME Settings
Change-Id: I41f7c36fb73730248dcc98abbf4276ef6d772f36
2011-09-28 12:01:40 +09:00
satok
054fc44cae Tweak IME settings
Change-Id: I13b044abdcb1215306ecfd5070d6e1a16e2d92d7
2011-09-27 16:08:46 +09:00
satok
88b75f740a Tweak ime settings
Bug: 5282046
Change-Id: I8ef3913fc46c00288ac13fbc2a2d447efd531382
2011-09-13 14:46:56 +09:00
satok
b9509d046c Update the current IME label
Bug: 5069983
Change-Id: I84d6ac7c39b5f3a035aa04c35065280a14024c47
2011-09-12 19:14:16 +09:00
satok
ae70ee4949 Sort subtypes in subtype enabler settings
Bug: 3377334
Change-Id: Ie8dab8f6fb52610e783803cb902b032508d2b250
2011-09-06 17:16:32 +09:00
satok
a849f9f74b Merge "Support automatic language" 2011-09-05 04:04:17 -07:00
satok
94bc76f1aa Support automatic language
Bug: 5057886

Change-Id: I7e18676622750c9b7299ab6a44856ad1aaca1b49
2011-09-05 19:53:26 +09:00
satok
5efb531d2d Tweak IME settings
Change-Id: I09bb9994737b29765ea7b13119ee2b9b3fb076cc
2011-09-05 19:16:06 +09:00
Jean Chalard
4e658ba969 Fix an NPE
It seems the user dictionary fragment does not tolerate being
called by name, and needs to be called only by action.

Bug: 5242122
Change-Id: I6b954db549b98d4d0076fdce8e00d336fc18b6e3
2011-09-02 21:44:12 +09:00
Jean Chalard
dbb3afd7ed Merge "Update settings wording for ICS" 2011-09-01 04:40:13 -07:00
Jean Chalard
8ba5c42b21 Update settings wording for ICS
Bug: 5069983
Change-Id: I882aded067e8cc75197f6d3fa5c11388368b6996
2011-09-01 20:38:52 +09:00
satok
14413a02e3 Add a functionality to disable the spell checker
Change-Id: I2c2663e8232c5ba4b7499fd17a173c8c65252cf3
2011-08-31 21:15:53 +09:00
satok
8ff6222a91 Fix the visibility of preferences in the input method settings
Bug: 5129385

Change-Id: I1b01712995fd77e13b0e5935b8000ec09be489e4
2011-08-31 20:11:27 +09:00
Jean Chalard
427a7ba104 Fix a crash in settings if a hard keyboard is attached.
For some reason the type of the options was wrong, but
otherwise it seems to work.

Bug: 5004175
Change-Id: I668b8bba1933aee6ad1243e446bd66c479bd6944
2011-08-29 19:21:23 +09:00
satok
ef283b41b0 Add debug code to spell checker settings
Change-Id: Iab3bee33e4d6bd19c30e20591d6a2f08e1cff157
2011-08-26 18:01:07 +09:00
satok
e36f1c581b SpellChecker settings
Change-Id: I0d7af408d2b70e8e593e490484526dd8fffdc725
2011-08-26 16:03:19 +09:00
satok
16c3e74d72 Fix the title of the input method subtype enabler
Bug: 5097548
Change-Id: If01e13bd1ab7ac851b613450018f68f7f42f1e14
2011-08-12 12:46:27 +09:00
Ken Wakasa
1c2b175d7a Prevent crashes when IME's settings activity is missing
bug: 5029444
Change-Id: I5c045123dbca2581f2e7d9f602e7511398b83504
2011-08-10 16:58:53 +09:00
satok
ffc731207f Add a way to choose the current spell checker
Bug: 5057977

Change-Id: I86366d6be0d59dfb7a80431fcc87f55b1f27a014
2011-08-02 15:57:13 +09:00
satok
3bca416061 [step8] Use api to get the current spell checker
Change-Id: I082785314710af2c8db33c2c18050651a0302b62
2011-07-26 08:01:54 +09:00
satok
c0b569c317 [step6] Apply api and fix crush in spell checker settings.
Change-Id: Ie430ca7ff4147c530aae895d1d13a40a01c63b98
2011-07-26 06:51:46 +09:00