aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-03-19 01:15:13 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-03-19 01:15:13 -0700
commit458f56b6792b233a03c30018748111150a313d68 (patch)
treebf4eda458d876d824b37b1598cd28185a094e7e1 /java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java
parent3c5b7d4814c25f1b514fb7677d1d20ba1fb2cd22 (diff)
parent8e005f2989de98cd284f1f5210f4c9d8d658e5e7 (diff)
downloadlatinime-458f56b6792b233a03c30018748111150a313d68.tar.gz
latinime-458f56b6792b233a03c30018748111150a313d68.tar.xz
latinime-458f56b6792b233a03c30018748111150a313d68.zip
am 8e005f29: am 1061bfdb: Break dependencies to allow offdevice tests to build
* commit '8e005f2989de98cd284f1f5210f4c9d8d658e5e7': Break dependencies to allow offdevice tests to build
Diffstat (limited to '')
-rw-r--r--java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java b/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java
index 89cf6ed88..b4727509c 100644
--- a/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java
+++ b/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java
@@ -88,14 +88,6 @@ public final class UpdateHandler {
// Name of the category for the main dictionary
public static final String MAIN_DICTIONARY_CATEGORY = "main";
- /**
- * The action of the intent for publishing that new dictionary data is available.
- */
- // TODO: make this different across different packages. A suggested course of action is
- // to use the package name inside this string.
- public static final String NEW_DICTIONARY_INTENT_ACTION =
- "com.android.inputmethod.dictionarypack.newdict";
-
// The id for the "dictionary available" notification.
static final int DICT_AVAILABLE_NOTIFICATION_ID = 1;
@@ -552,7 +544,8 @@ public final class UpdateHandler {
* Warn Android Keyboard that the state of dictionaries changed and it should refresh its data.
*/
private static void signalNewDictionaryState(final Context context) {
- final Intent newDictBroadcast = new Intent(NEW_DICTIONARY_INTENT_ACTION);
+ final Intent newDictBroadcast =
+ new Intent(DictionaryPackConstants.NEW_DICTIONARY_INTENT_ACTION);
context.sendBroadcast(newDictBroadcast);
}