aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/dictionarypack/DictionaryPackConstants.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-01 02:01:48 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-01 02:01:48 -0700
commite40d5633659a401e1357e1c530238ed74cc158f6 (patch)
tree95bb790b3dd0e7cc9754d3f2512477487b84cd98 /java/src/com/android/inputmethod/dictionarypack/DictionaryPackConstants.java
parent151e4e182c86a2b7aea534bda777e9e9aafa549b (diff)
parent43341ba04298f9548e3ee6f37403eaf333dfa3bc (diff)
downloadlatinime-e40d5633659a401e1357e1c530238ed74cc158f6.tar.gz
latinime-e40d5633659a401e1357e1c530238ed74cc158f6.tar.xz
latinime-e40d5633659a401e1357e1c530238ed74cc158f6.zip
am 43341ba0: Merge "Ask the client to make itself known when it\'s not"
* commit '43341ba04298f9548e3ee6f37403eaf333dfa3bc': Ask the client to make itself known when it's not
Diffstat (limited to 'java/src/com/android/inputmethod/dictionarypack/DictionaryPackConstants.java')
-rw-r--r--java/src/com/android/inputmethod/dictionarypack/DictionaryPackConstants.java24
1 files changed, 21 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/dictionarypack/DictionaryPackConstants.java b/java/src/com/android/inputmethod/dictionarypack/DictionaryPackConstants.java
index 0c8b466a4..69615887f 100644
--- a/java/src/com/android/inputmethod/dictionarypack/DictionaryPackConstants.java
+++ b/java/src/com/android/inputmethod/dictionarypack/DictionaryPackConstants.java
@@ -25,16 +25,34 @@ package com.android.inputmethod.dictionarypack;
*/
public class DictionaryPackConstants {
/**
+ * The root domain for the dictionary pack, upon which authorities and actions will append
+ * their own distinctive strings.
+ */
+ private static final String DICTIONARY_DOMAIN = "com.android.inputmethod.dictionarypack";
+
+ /**
* Authority for the ContentProvider protocol.
*/
// TODO: find some way to factorize this string with the one in the resources
- public static final String AUTHORITY = "com.android.inputmethod.dictionarypack.aosp";
+ public static final String AUTHORITY = DICTIONARY_DOMAIN + ".aosp";
/**
* 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";
+ // NOTE: The appended string should be uppercase like all other actions, but it's not for
+ // historical reasons.
+ public static final String NEW_DICTIONARY_INTENT_ACTION = DICTIONARY_DOMAIN + ".newdict";
+
+ /**
+ * The action of the intent sent by the dictionary pack to ask for a client to make
+ * itself known. This is used when the settings activity is brought up for a client the
+ * dictionary pack does not know about.
+ */
+ public static final String UNKNOWN_DICTIONARY_PROVIDER_CLIENT = DICTIONARY_DOMAIN
+ + ".UNKNOWN_CLIENT";
+ // In the above intents, the name of the string extra that contains the name of the client
+ // we want information about.
+ public static final String DICTIONARY_PROVIDER_CLIENT_EXTRA = "client";
}