aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-03-28 18:59:19 +0900
committerJean Chalard <jchalard@google.com>2013-04-01 17:37:22 +0900
commit76d5f512f99700a963aa20a02590833e37221bff (patch)
treeef3db31c596f015a3e2388a718e5bf07c56d85d8 /java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java
parentc1dec87a76565c5dfa223c7d4d5f10a345ab3799 (diff)
downloadlatinime-76d5f512f99700a963aa20a02590833e37221bff.tar.gz
latinime-76d5f512f99700a963aa20a02590833e37221bff.tar.xz
latinime-76d5f512f99700a963aa20a02590833e37221bff.zip
Ask the client to make itself known when it's not
Upon invoking the settings of the dictionary pack with an unknown client, we now launch an intent to ask the client to make itself known. This change also includes the code that receives this intent and acts upon it. Bug: 8492879 Change-Id: I2c6496dea845646961ecafcf64e282cb93ee91dc
Diffstat (limited to 'java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java')
-rw-r--r--java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java b/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java
index 77b3b8e2e..f8d1c4fc9 100644
--- a/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java
+++ b/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java
@@ -509,6 +509,11 @@ public final class DictionaryProvider extends ContentProvider {
} catch (final BadFormatException e) {
Log.w(TAG, "Not enough information to insert this dictionary " + values, e);
}
+ // We just received new information about the list of dictionary for this client.
+ // For all intents and purposes, this is new metadata, so we should publish it
+ // so that any listeners (like the Settings interface for example) can update
+ // themselves.
+ UpdateHandler.publishUpdateMetadataCompleted(getContext(), true);
break;
case DICTIONARY_V1_WHOLE_LIST:
case DICTIONARY_V1_DICT_INFO: