diff options
author | 2013-03-19 16:45:25 +0900 | |
---|---|---|
committer | 2013-03-19 16:45:25 +0900 | |
commit | 1061bfdb34bbcb63bf0046eec42313d264ac33fa (patch) | |
tree | 49522ebf3ca71497dbaa64c8ab5b9499826130bf /java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java | |
parent | 0cc0544a2995c7eb54a830ae54db60af89d4073d (diff) | |
download | latinime-1061bfdb34bbcb63bf0046eec42313d264ac33fa.tar.gz latinime-1061bfdb34bbcb63bf0046eec42313d264ac33fa.tar.xz latinime-1061bfdb34bbcb63bf0046eec42313d264ac33fa.zip |
Break dependencies to allow offdevice tests to build
Change-Id: Ia9a2e8f0672b3f72943f26fb15de1d3c7c5ce7f1
Diffstat (limited to 'java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java | 11 |
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(); } } |