diff options
author | Jean Chalard <jchalard@google.com> | 2011-12-16 18:31:48 +0900 |
---|---|---|
committer | Jean Chalard <jchalard@google.com> | 2011-12-16 18:31:48 +0900 |
commit | 2c892d900b310ef62892a5e9f2b4fbc59010e54e (patch) | |
tree | 2cdd4e7f18839fd2d2ef4e348ba269e71f9744b8 /src/com/android/settings/inputmethod | |
parent | 99308097a1d022a12affe528d26193fb4d031a60 (diff) | |
download | packages_apps_settings-2c892d900b310ef62892a5e9f2b4fbc59010e54e.zip packages_apps_settings-2c892d900b310ef62892a5e9f2b4fbc59010e54e.tar.gz packages_apps_settings-2c892d900b310ef62892a5e9f2b4fbc59010e54e.tar.bz2 |
Change the "manage dictionaries" button to "less options"
This is supposed to be easier to understand for users.
Change-Id: I144031941712ab15fb490619c288d533ce884ee9
Diffstat (limited to 'src/com/android/settings/inputmethod')
-rw-r--r-- | src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java | 24 |
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) { |