Search in sources :

Example 1 with LocaleRenderer

use of com.android.settings.inputmethod.UserDictionaryAddWordContents.LocaleRenderer in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class UserDictionaryAddWordFragment method onItemSelected.

@Override
public void onItemSelected(final AdapterView<?> parent, final View view, final int pos, final long id) {
    final LocaleRenderer locale = (LocaleRenderer) parent.getItemAtPosition(pos);
    if (locale.isMoreLanguages()) {
        SettingsActivity sa = (SettingsActivity) getActivity();
        sa.startPreferenceFragment(new UserDictionaryLocalePicker(this), true);
    } else {
        mContents.updateLocale(locale.getLocaleString());
    }
}
Also used : LocaleRenderer(com.android.settings.inputmethod.UserDictionaryAddWordContents.LocaleRenderer) SettingsActivity(com.android.settings.SettingsActivity)

Aggregations

SettingsActivity (com.android.settings.SettingsActivity)1 LocaleRenderer (com.android.settings.inputmethod.UserDictionaryAddWordContents.LocaleRenderer)1