diff options
author | Jean Chalard <jchalard@google.com> | 2012-05-08 19:11:49 +0900 |
---|---|---|
committer | Jean Chalard <jchalard@google.com> | 2012-05-08 20:26:59 +0900 |
commit | be3f0faf526d628b578b1af6d975c19cfdf8637b (patch) | |
tree | af35b918917f1090f5ca853c0806129f177ff42b /src/com/android/settings/UserDictionarySettings.java | |
parent | be07e49a9292b653b923cbfa64dc5c42972ded41 (diff) | |
download | packages_apps_Settings-be3f0faf526d628b578b1af6d975c19cfdf8637b.tar.gz packages_apps_Settings-be3f0faf526d628b578b1af6d975c19cfdf8637b.tar.bz2 packages_apps_Settings-be3f0faf526d628b578b1af6d975c19cfdf8637b.zip |
Factor some code
Bug: 6026080
Change-Id: I38475a95b1d421162099390244dbda09658346f5
Diffstat (limited to 'src/com/android/settings/UserDictionarySettings.java')
-rw-r--r-- | src/com/android/settings/UserDictionarySettings.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/settings/UserDictionarySettings.java b/src/com/android/settings/UserDictionarySettings.java index 756c592b4..8d4e8b4c6 100644 --- a/src/com/android/settings/UserDictionarySettings.java +++ b/src/com/android/settings/UserDictionarySettings.java @@ -45,7 +45,7 @@ import android.widget.SectionIndexer; import android.widget.SimpleCursorAdapter; import android.widget.TextView; -import com.android.settings.inputmethod.UserDictionaryAddWordActivity; +import com.android.settings.inputmethod.UserDictionaryAddWordContents; import java.util.Locale; @@ -184,11 +184,11 @@ public class UserDictionarySettings extends ListFragment { */ private void showAddOrEditDialog(final String editingWord) { final Bundle args = new Bundle(); - args.putString(UserDictionaryAddWordActivity.EXTRA_MODE, null == editingWord - ? UserDictionaryAddWordActivity.MODE_INSERT_ACTION - : UserDictionaryAddWordActivity.MODE_EDIT_ACTION); - args.putString(UserDictionaryAddWordActivity.EXTRA_WORD, editingWord); - args.putString(UserDictionaryAddWordActivity.EXTRA_LOCALE, mLocale); + args.putInt(UserDictionaryAddWordContents.EXTRA_MODE, null == editingWord + ? UserDictionaryAddWordContents.MODE_INSERT + : UserDictionaryAddWordContents.MODE_EDIT); + args.putString(UserDictionaryAddWordContents.EXTRA_WORD, editingWord); + args.putString(UserDictionaryAddWordContents.EXTRA_LOCALE, mLocale); android.preference.PreferenceActivity pa = (android.preference.PreferenceActivity)getActivity(); pa.startPreferencePanel( |