aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2011-04-14 20:45:47 +0900
committerJean Chalard <jchalard@google.com>2011-04-14 20:52:25 +0900
commit646d950ed8d2b2555df92855e18b350fd7761b21 (patch)
treeb52af4c80ef7f841557b73a07fd14816956952cf /java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java
parent7c832936862cc5bd5982262f7dbf5be5cff4a611 (diff)
downloadlatinime-646d950ed8d2b2555df92855e18b350fd7761b21.tar.gz
latinime-646d950ed8d2b2555df92855e18b350fd7761b21.tar.xz
latinime-646d950ed8d2b2555df92855e18b350fd7761b21.zip
Receive a broadcast that the dictionary has been updated.
Change-Id: I9751cc627a835a4061f144c48ff51e9d81b2c93b
Diffstat (limited to 'java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java')
-rw-r--r--java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java b/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java
index c7864621d..9d30af84b 100644
--- a/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java
+++ b/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java
@@ -30,6 +30,11 @@ import android.net.Uri;
public 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 =
+ "com.android.inputmethod.latin.dictionarypack.newdict";
public DictionaryPackInstallBroadcastReceiver(final LatinIME service) {
mService = service;
@@ -77,6 +82,8 @@ public class DictionaryPackInstallBroadcastReceiver extends BroadcastReceiver {
// 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)) {
+ mService.resetSuggestMainDict();
}
}
}