summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/providers/userdictionary/UserDictionaryProvider.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/providers/userdictionary/UserDictionaryProvider.java b/src/com/android/providers/userdictionary/UserDictionaryProvider.java
index 61e552f..e653047 100644
--- a/src/com/android/providers/userdictionary/UserDictionaryProvider.java
+++ b/src/com/android/providers/userdictionary/UserDictionaryProvider.java
@@ -220,19 +220,19 @@ public class UserDictionaryProvider extends ContentProvider {
values = new ContentValues();
}
- if (values.containsKey(Words.WORD)) {
+ if (!values.containsKey(Words.WORD)) {
throw new SQLException("Word must be specified");
}
- if (values.containsKey(Words.FREQUENCY)) {
+ if (!values.containsKey(Words.FREQUENCY)) {
values.put(Words.FREQUENCY, "1");
}
- if (values.containsKey(Words.LOCALE)) {
+ if (!values.containsKey(Words.LOCALE)) {
values.put(Words.LOCALE, (String) null);
}
- if (values.containsKey(Words.SHORTCUT)) {
+ if (!values.containsKey(Words.SHORTCUT)) {
values.put(Words.SHORTCUT, (String) null);
}