Commit Graph

16 Commits

Author SHA1 Message Date
Jean Chalard
1fb887f264 Fix a bug with multiple word insertion.
Bug: 7903831
Change-Id: I5202bc529a570292dd78d8503d8e2cc93b43d354
2013-07-25 16:07:31 +09:00
Satoshi Kataoka
a5c08c9a6f Remove the locale spinner and show the current language
Bug: 8976598
Change-Id: I092141d0cc5c6d7af499ab8ceb69275923180e37
2013-07-22 16:34:41 +09:00
Jean Chalard
8385f1c622 Fix a bug where a user dict entry is too long
Since there is a maxLength attribute to the text field, if the
requested entry is too long for the text field it will be truncated,
then setSelection will crash with an IOOB exception.

Bug: 9410958
Change-Id: I7e916b4d77d338f49db7d3dab4e536d27ec76bc1
2013-06-14 13:10:07 +09:00
Jean Chalard
a374d81605 Distinguish adding an already present word / cancelling
Bug: 7725834
Change-Id: Iab3d1818f008a553868fb30e8460ea3f77c2de50
2012-12-17 15:52:07 +09: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
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
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