From 1061bfdb34bbcb63bf0046eec42313d264ac33fa Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Tue, 19 Mar 2013 16:45:25 +0900 Subject: Break dependencies to allow offdevice tests to build Change-Id: Ia9a2e8f0672b3f72943f26fb15de1d3c7c5ce7f1 --- .../com/android/inputmethod/dictionarypack/UpdateHandler.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java') 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); } -- cgit v1.2.3-83-g751a