aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/dictionarypack (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Avoid crashing when the Content URL is not found.Jean Chalard2014-02-181-0/+10
| | | | | | | | | I'm not sure when this can happen, but it seems it does at least on older versions of the platform. Let's avoid crashing. Bug: 11618402 Change-Id: If730b5bd8f20e0f60b884eab5900099116afc5f0
* Merge "Catch exceptions we can't do anything about."Jean Chalard2014-02-174-44/+118
|\
| * Catch exceptions we can't do anything about.Jean Chalard2014-02-174-44/+118
| | | | | | | | | | | | | | | | This also abstracts away the "package deactivated" case for simpler and safer code. Bug: 11072561 Change-Id: Idaaf2ae8d8d5b2c4a15de641bbf2f8c5c7cc9410
* | Fix a view-related crashJean Chalard2014-02-142-5/+14
|/ | | | | Bug: 12788164 Change-Id: If0d815518824a8e57b15e80111c5e6e08e93ba7e
* Remove some warningsJean Chalard2014-01-092-1/+2
| | | | Change-Id: I5cfa0d2fccc139bd6c45c5590a68c3e0c90534b8
* Fix the security related API change for PreferenceActivitySatoshi Kataoka2013-10-091-1/+3
| | | | | Bug: 10118761 Change-Id: I63501d6c2b5f561d7ab8b7362498665d805d5e1e
* Correspond to the security related API change for PreferenceActivitySatoshi Kataoka2013-10-021-1/+9
| | | | | Bug: 10118761 Change-Id: Ia7d1c6c526dae849f447c26387e96a4fb4d6042f
* Fix some warningsJean Chalard2013-07-313-5/+0
| | | | Change-Id: I7290cd1fb675a1b85b9b6ac2d464c932b5bca1dd
* Merge "Serialize commands sent to a separate threads"Jean Chalard2013-07-161-25/+34
|\
| * Serialize commands sent to a separate threadsJean Chalard2013-07-161-25/+34
| | | | | | | | | | Bug: 9715797 Change-Id: I1eda4d2f0056f70cfb8a92d658e0875706efc170
* | Merge "Fix a bug with bad view reuse."Jean Chalard2013-07-163-2/+9
|\ \
| * | Fix a bug with bad view reuse.Jean Chalard2013-07-163-2/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | There are many ways to fix this problem but this is the most direct way. Removing a view from the cache when any animation is started will ensure it won't be used again, and will be garbage collected when it's possible. Since views are created on demand anyway, a new one will just get created when needed, and that's it. Bug: 9400128 Change-Id: I4945d2859d642e79694d51ae90cf4f5bde9a5f1d
* / Fix a wrong call to cancel downloadsJean Chalard2013-07-112-19/+22
|/ | | | | | | This resulted in downloads not being correctly canceled. Bug: 9715797 Change-Id: I786d869977df225f85cb69ec7ea9c96b039258fe
* Reorganize Utils classTadashi G. Takaoka2013-07-052-4/+4
| | | | Change-Id: I7294d1547def5dcfcae9d1d53b277cb3cc9f2d18
* Use TimeUnit instead of DateUtils for readabilityTadashi G. Takaoka2013-07-051-4/+4
| | | | | Bug: 9550800 Change-Id: I087205530a5dbcff4bf08f48f4aa7068aae93215
* Fix a bug where no URL means refresh never endsJean Chalard2013-07-013-10/+29
| | | | | | | | | | | This patch does two things: - If there is no URL to download new data from, then the Refresh button is not shown. - Even if for some reason refresh starts for a client for which there is no URL, loading correctly finishes. Bug: 9388602 Change-Id: I3fd9214da50faa4b59d0bd3e775293dd34f07547
* Cleanup under the utils packageKen Wakasa2013-06-254-57/+57
| | | | Change-Id: If2f7bd1346cc5085bf57645830f0faac44d017e4
* Move util classes to the latin/utils directoryKen Wakasa2013-06-246-159/+62
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Make intents unique to AOSPKurt Partridge2013-06-112-10/+12
| | | | | | | This is to avoid confusion if multiple IMEs are installed with dictionary pack components Change-Id: Ibc91951e4fdd5db13f681e4cb06197da98527bbc
* Fix an illegal argument exceptionJean Chalard2013-06-071-15/+13
| | | | | | | | | This is a bit of a shot in the dark, as I really don't see how this can happen, but this should fix it in the correct way no matter how it's actually happening. Bug: 9301836 Change-Id: I472865b7a78883942c9fd46773238c23788674f8
* Fix the displayed status after downloadJean Chalard2013-05-312-16/+9
| | | | | Bug: 9166225 Change-Id: I7490593d88a5854b9e675b9ead89d2ea9b49315c
* Fix two strict mode warnings.Jean Chalard2013-05-301-11/+15
| | | | | Bug: 9052555 Change-Id: I86e90488679a78a9f6e901b640025619293765a0
* Merge "Fix dictionary pack preference order."Jean Chalard2013-05-301-0/+2
|\
| * Fix dictionary pack preference order.Jean Chalard2013-05-301-0/+2
| | | | | | | | | | | | | | | | It turns out giving them in the right order is not enough, you also have to actually give them a numeric priority. Bug: 9165928 Change-Id: I2ecff38f65b70746feeeeb0ed2cc86a586a35363
* | Rub some butter on dictionary list scrolling.Jean Chalard2013-05-293-3/+39
|/ | | | | | | | | | | | | | The default implementation for preferences refuses to cache the views for custom preferences at all. We can do it, but the system won't do it for us, so this does it. This makes the screen scrolling smooth again. Incidentally it also fixes the bug where the button may not animate on the first element. Bug: 8882722 Bug: 8883108 Change-Id: I9b2306ac4bf93761a808ebfee3477a65f017cddf
* Use Locale.ROOT for locale neutral operationsTadashi G. Takaoka2013-05-241-1/+1
| | | | | Bug: 9112465 Change-Id: I6cd63007287b5a1a57cfbabff35d53f66fc5620e
* Reuse old preferences if possible.Jean Chalard2013-05-102-7/+28
| | | | | | | | This is an optimization. It also happens to work around what seems to be a framework bug in JB MR1 / MR1.1. Bug: 8771179 Change-Id: I62cc7acdc8656d75f8a50c068c4e9d8c6ceb74a0
* [PB14] Cosmetic fixes to the progress barJean Chalard2013-04-301-0/+2
| | | | | Bug: 7600384 Change-Id: I33ea155c0c97c7ead07686c4d2a9e0d98be9929c
* [PB13] Actually update the progress barJean Chalard2013-04-301-5/+60
| | | | | Bug: 7600384 Change-Id: Iaa8f3a59243a15d2a01aaf6017ed85c52b6482a6
* [PB12] Implement the progress bar update lifecycleJean Chalard2013-04-302-3/+93
| | | | | | | | This ensures the thread does not run uselessly (it is even terminated when the progress bar exits the screen). Bug: 7600384 Change-Id: I09117a6f763b574b9b3266f36ba3da4720dc9224
* [PB11] Add a skeleton class for a self-updating progress barJean Chalard2013-04-261-0/+31
| | | | | Bug: 7600384 Change-Id: I55b51152dd9968a359af091bf309f0d406f63ec4
* [PB10] Add a progress bar to display file download progressJean Chalard2013-04-262-2/+18
| | | | | | | The progress bar is showing but doesn't show progress yet. Bug: 7600384 Change-Id: I80debd3f4368e82e4184a6c638bdcc8e48ed2305
* [PB9] Make buttons that animate-out unclickableJean Chalard2013-04-262-1/+5
| | | | | | | | | Clicking on a button that is animating-out is only done by mistake. Better make them unclickable. Also, interrupt an out-in animation if it has been preempted. Bug: 7600384 Change-Id: Ic4700cda46a894ea580bc67ee7bef885ecf1d3bc
* Delete obsolete dictionariesJean Chalard2013-04-261-5/+6
| | | | | Bug: 7980985 Change-Id: I4c9165e6102cb12fa1249074297e94013439ea3b
* Merge "[PB8] Add an animation upon status change."Jean Chalard2013-04-253-8/+42
|\
| * [PB8] Add an animation upon status change.Jean Chalard2013-04-253-8/+42
| | | | | | | | | | Bug: 7600384 Change-Id: If5efb9357075193d10255187008e870e2933bdb8
* | Work around a bug in older DownloadManager versions.Jean Chalard2013-04-252-3/+19
|/ | | | | | | | | | | | | This adds a number to the extension. Note that for DownloadManager to keep this, the server needs to send it a mime type it does not recognize. Right now, it does not recognize application/json so it's okay, but we'd do well to remove the content/type header from the server to prevent problems. Bug: 8467516 Change-Id: Ic484f66ac3f67c36f59f2c0bcb8c7fdeb6e8590d
* [PB7] Export animation code out of the preferenceJean Chalard2013-04-252-24/+92
| | | | | Bug: 7600384 Change-Id: I8009b31d96646acd667db410b94e969daea91d52
* [PB6] Encapsulate the buttons into a viewJean Chalard2013-04-252-28/+79
| | | | | | | | | | | Handling buttons directly in the preference causes large problems of code readability and interface. It's better to have a class to manage the buttons and their animations separately. This is feature-equivalent, and mostly delegates stuff for now. Bug: 7600384 Change-Id: Ia8da0ec68ffac84fc1d65e1760539a87a73fa776
* [PB5] Store state in a more convenient mannerJean Chalard2013-04-242-11/+47
| | | | | | | This is more readable and will help with animations going forward. Bug: 7600384 Change-Id: I255598d860d1e451fef106b00da63c282fe95f95
* [PB4] Make a memory non-staticJean Chalard2013-04-243-9/+40
| | | | | | | | | The life span of this object is actually the life span of the interface. It should not be static. Also, we'll have a few other things to store in there soon. Bug: 7600384 Change-Id: I708019e9ee53653e83a1e52c8e76326c3e39bcf3
* [PB3] Simplify storageJean Chalard2013-04-241-23/+19
| | | | | | | | By looping through children, there is no need to remember the last index. Bug: 7600384 Change-Id: I8b42b0aa38874ee494c6c4ecc09194a1d3c16922
* [PB2] Small bugfixJean Chalard2013-04-241-3/+13
| | | | | | | The button would not display after it got hidden once. Bug: 7600384 Change-Id: I57f9f1191be3b8fff55dde7a2781dbef68a2df62
* [PB1] CleanupJean Chalard2013-04-231-9/+2
| | | | | | | | This preference is not a DialogPreference any more, as it doesn't ever display a Dialog. Bug: 7600384 Change-Id: Ia5965617c83d3cb964010f9b40d833065dccef60
* Add an additional ID to the client info.Jean Chalard2013-04-232-23/+97
| | | | | Bug: 8651863 Change-Id: I748f35726d72ede926d5b06ed87ff029317f1ac3
* Redisplay a hidden button after it entered the screen again.Jean Chalard2013-04-191-1/+4
| | | | | Bug: 7600384 Change-Id: I6cd18fd7584b6e98260cb432956f08ba9886580b
* Hide the correct button when pressing a new button.Jean Chalard2013-04-198-47/+55
| | | | | Bug: 7600384 Change-Id: Ic5dbbbbcf19d778dde1316ebb417f1a8ede2d25d
* Fix an infinite loopJean Chalard2013-04-181-1/+0
| | | | | | | | | What do you mean "Can't happen"? It happens all the time - the empty string is the default ID, and it needs to be updated like everyone else. Bug: 8651858 Change-Id: I5a2f2ebb5b2ef08b27f26be8fb2c3d2f231ebcfc
* Ask the client to make itself known when it's notJean Chalard2013-04-015-9/+54
| | | | | | | | | | Upon invoking the settings of the dictionary pack with an unknown client, we now launch an intent to ask the client to make itself known. This change also includes the code that receives this intent and acts upon it. Bug: 8492879 Change-Id: I2c6496dea845646961ecafcf64e282cb93ee91dc
* Fix an NPEJean Chalard2013-03-281-2/+1
| | | | | | | The code was passing the wrong parameter. Bug: 8492879 Change-Id: I091d62ca29601e3807eed287c7bdad38bf43a502