Java Code Examples for android.preference.PreferenceActivity#startPreferenceFragment()
The following examples show how to use
android.preference.PreferenceActivity#startPreferenceFragment() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UserDictionaryAddWordFragment.java From openboard with GNU General Public License v3.0 | 5 votes |
@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()) { PreferenceActivity preferenceActivity = (PreferenceActivity)getActivity(); preferenceActivity.startPreferenceFragment(new UserDictionaryLocalePicker(), true); } else { mContents.updateLocale(locale.getLocaleString()); } }
Example 2
Source File: UserDictionaryAddWordFragment.java From Android-Keyboard with Apache License 2.0 | 5 votes |
@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()) { PreferenceActivity preferenceActivity = (PreferenceActivity)getActivity(); preferenceActivity.startPreferenceFragment(new UserDictionaryLocalePicker(), true); } else { mContents.updateLocale(locale.getLocaleString()); } }
Example 3
Source File: UserDictionaryAddWordFragment.java From AOSP-Kayboard-7.1.2 with Apache License 2.0 | 5 votes |
@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()) { PreferenceActivity preferenceActivity = (PreferenceActivity)getActivity(); preferenceActivity.startPreferenceFragment(new UserDictionaryLocalePicker(), true); } else { mContents.updateLocale(locale.getLocaleString()); } }
Example 4
Source File: UserDictionaryAddWordFragment.java From Indic-Keyboard with Apache License 2.0 | 5 votes |
@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()) { PreferenceActivity preferenceActivity = (PreferenceActivity)getActivity(); preferenceActivity.startPreferenceFragment(new UserDictionaryLocalePicker(), true); } else { mContents.updateLocale(locale.getLocaleString()); } }