aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.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/latin/DictionaryPackInstallBroadcastReceiver.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 'java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java')
-rw-r--r--java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java b/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java
index d6c88910f..35f3119ea 100644
--- a/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java
+++ b/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java
@@ -16,7 +16,7 @@
package com.android.inputmethod.latin;
-import com.android.inputmethod.dictionarypack.UpdateHandler;
+import com.android.inputmethod.dictionarypack.DictionaryPackConstants;
import android.content.BroadcastReceiver;
import android.content.Context;
@@ -32,11 +32,6 @@ import android.net.Uri;
public final class DictionaryPackInstallBroadcastReceiver extends BroadcastReceiver {
final LatinIME mService;
- /**
- * The action of the intent for publishing that new dictionary data is available.
- */
- /* package */ static final String NEW_DICTIONARY_INTENT_ACTION =
- UpdateHandler.NEW_DICTIONARY_INTENT_ACTION;
public DictionaryPackInstallBroadcastReceiver(final LatinIME service) {
mService = service;
@@ -66,7 +61,7 @@ public final class DictionaryPackInstallBroadcastReceiver extends BroadcastRecei
// Search for some dictionary pack in the just-installed package. If found, reread.
for (ProviderInfo info : providers) {
- if (BinaryDictionary.DICTIONARY_PACK_AUTHORITY.equals(info.authority)) {
+ if (DictionaryPackConstants.AUTHORITY.equals(info.authority)) {
mService.resetSuggestMainDict();
return;
}
@@ -86,7 +81,7 @@ public final class DictionaryPackInstallBroadcastReceiver extends BroadcastRecei
// TODO: Only reload dictionary on REMOVED when the removed package is the one we
// read dictionary from?
mService.resetSuggestMainDict();
- } else if (action.equals(NEW_DICTIONARY_INTENT_ACTION)) {
+ } else if (action.equals(DictionaryPackConstants.NEW_DICTIONARY_INTENT_ACTION)) {
mService.resetSuggestMainDict();
}
}