Code example for PreferenceGroup

Methods: addPreference

0
        } 
    } 
     
    private final void add(@Nullable Preference pref) {
       if (pref != null) {
           mGroup.addPreference(pref);
       } 
    } 
     
    private final void remove(@Nullable Preference pref) {
        if (pref != null) {
            mGroup.removePreference(pref);
        } 
     } 
     
}