aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryLocalePicker.java
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2013-04-24 17:43:26 +0900
committerSatoshi Kataoka <satok@google.com>2013-04-25 14:55:07 +0900
commita79ba8a3d6dbdee777f156449c436fd3a4a57feb (patch)
tree5a6620e3af2d4392ca0e8d5b9e91476c67c81c39 /java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryLocalePicker.java
parent3ee39be1bd21996cea54c8a3b43cefc937e5c69d (diff)
downloadlatinime-a79ba8a3d6dbdee777f156449c436fd3a4a57feb.tar.gz
latinime-a79ba8a3d6dbdee777f156449c436fd3a4a57feb.tar.xz
latinime-a79ba8a3d6dbdee777f156449c436fd3a4a57feb.zip
Implement a functionality to add an entry to the user dictionary
Bug: 8600958 Change-Id: Ic472500406b9d54ec4052c490ee7cef62fc4e52a
Diffstat (limited to 'java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryLocalePicker.java')
-rw-r--r--java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryLocalePicker.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryLocalePicker.java b/java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryLocalePicker.java
new file mode 100644
index 000000000..58d3fb91c
--- /dev/null
+++ b/java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryLocalePicker.java
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.inputmethod.latin.userdictionary;
+
+import android.app.Fragment;
+
+import java.util.Locale;
+
+// Caveat: This class is basically taken from
+// packages/apps/Settings/src/com/android/settings/inputmethod/UserDictionaryLocalePicker.java
+// in order to deal with some devices that have issues with the user dictionary handling
+
+public class UserDictionaryLocalePicker extends Fragment {
+ public UserDictionaryLocalePicker() {
+ super();
+ // TODO: implement
+ }
+
+ public interface LocationChangedListener {
+ public void onLocaleSelected(Locale locale);
+ }
+}