Java Code Examples for android.support.v7.preference.PreferenceGroup#removePreference()
The following examples show how to use
android.support.v7.preference.PreferenceGroup#removePreference() .
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: SettingsFragment.java From IslamicLibraryAndroid with GNU General Public License v3.0 | 5 votes |
private void removeAdvancePreference(@Nullable Preference preference) { // these null checks are to fix a crash due to an NPE on 4.4.4 if (preference != null) { PreferenceGroup group = (PreferenceGroup) findPreference("pref_general"); if (group != null) { group.removePreference(preference); } } }
Example 2
Source File: GsPreferenceFragmentCompat.java From memetastic with GNU General Public License v3.0 | 5 votes |
protected void removePreference(@Nullable Preference preference) { if (preference == null) { return; } PreferenceGroup parent = getPreferenceParent(getPreferenceScreen(), preference); if (parent == null) { return; } parent.removePreference(preference); }
Example 3
Source File: GsPreferenceFragmentCompat.java From openlauncher with Apache License 2.0 | 5 votes |
protected void removePreference(@Nullable Preference preference) { if (preference == null) { return; } PreferenceGroup parent = getPreferenceParent(getPreferenceScreen(), preference); if (parent == null) { return; } parent.removePreference(preference); }
Example 4
Source File: GsPreferenceFragmentCompat.java From Stringlate with MIT License | 5 votes |
protected void removePreference(@Nullable Preference preference) { if (preference == null) { return; } PreferenceGroup parent = getPreferenceParent(getPreferenceScreen(), preference); if (parent == null) { return; } parent.removePreference(preference); }
Example 5
Source File: GsPreferenceFragmentCompat.java From kimai-android with MIT License | 5 votes |
protected void removePreference(@Nullable Preference preference) { if (preference == null) { return; } PreferenceGroup parent = getPreferenceParent(getPreferenceScreen(), preference); if (parent == null) { return; } parent.removePreference(preference); }