diff options
author | 2011-04-15 23:37:38 +0900 | |
---|---|---|
committer | 2011-04-15 23:37:38 +0900 | |
commit | abcbe57252f914e827d1823e7d4151be4e30bdee (patch) | |
tree | a4dc0c30ef4063802ab58e3f639e194d519a1761 /java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java | |
parent | 7c06332be25535ed8182a348ba8e5535870f9f29 (diff) | |
parent | 8cd0acba6d3fbde8034b3ef5d26344003a40fa11 (diff) | |
download | latinime-abcbe57252f914e827d1823e7d4151be4e30bdee.tar.gz latinime-abcbe57252f914e827d1823e7d4151be4e30bdee.tar.xz latinime-abcbe57252f914e827d1823e7d4151be4e30bdee.zip |
Merge remote-tracking branch 'goog/master' into merge
Diffstat (limited to 'java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java | 7 |
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(); } } } |