summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java')
-rw-r--r--src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java b/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java
index 6ab6a50..17c986a 100644
--- a/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java
+++ b/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java
@@ -88,12 +88,6 @@ public class UserDictionaryAddWordActivity extends Activity
finish();
}
- public void onClickManage(final View v) {
- final Intent intent = new Intent(v.getContext(), UserDictionarySettings.class);
- startActivity(intent);
- finish();
- }
-
public void onClickConfirm(final View v) {
if (MODE_EDIT == mMode && !TextUtils.isEmpty(mOldWord)) {
UserDictionarySettings.deleteWord(mOldWord, this.getContentResolver());
@@ -154,12 +148,14 @@ public class UserDictionaryAddWordActivity extends Activity
}
}
- public void onClickOptions(final View v) {
+ public void onClickMoreOptions(final View v) {
final View moreOptionsView =
findViewById(R.id.user_dict_settings_add_dialog_shortcut_interface);
moreOptionsView.setVisibility(View.VISIBLE);
- findViewById(R.id.user_dictionary_settings_add_dialog_options).setVisibility(View.GONE);
- findViewById(R.id.user_dictionary_settings_add_dialog_manage).setVisibility(View.VISIBLE);
+ findViewById(R.id.user_dictionary_settings_add_dialog_more_options)
+ .setVisibility(View.GONE);
+ findViewById(R.id.user_dictionary_settings_add_dialog_less_options)
+ .setVisibility(View.VISIBLE);
final Set<String> locales = UserDictionaryList.getUserDictionaryLocalesList(this);
// Remove our locale if it's in, because we're always gonna put it at the top
@@ -190,6 +186,16 @@ public class UserDictionaryAddWordActivity extends Activity
localeSpinner.setOnItemSelectedListener(this);
}
+ public void onClickLessOptions(final View v) {
+ final View moreOptionsView =
+ findViewById(R.id.user_dict_settings_add_dialog_shortcut_interface);
+ moreOptionsView.setVisibility(View.GONE);
+ findViewById(R.id.user_dictionary_settings_add_dialog_more_options)
+ .setVisibility(View.VISIBLE);
+ findViewById(R.id.user_dictionary_settings_add_dialog_less_options)
+ .setVisibility(View.GONE);
+ }
+
@Override
public void onItemSelected(final AdapterView<?> parent, final View view, final int pos,
final long id) {