Code example for RingtonePreference

Methods: setEnabled

0
     * for configuring the exact notification behavior. 
     */ 
    private void updateChildPreferences() { 
        if (mAlert.isChecked()) {
            mVibrate.setEnabled(true);
            mRingtone.setEnabled(true);
            mPopup.setEnabled(true);
        } else { 
            mVibrate.setEnabled(false);
            mRingtone.setEnabled(false);
            mPopup.setEnabled(false);
        } 
    } 
 
 
    @Override 
    public boolean onPreferenceTreeClick( 
            PreferenceScreen preferenceScreen, Preference preference) {
        final String key = preference.getKey();
        if (KEY_CLEAR_SEARCH_HISTORY.equals(key)) {
            SearchRecentSuggestions suggestions = new SearchRecentSuggestions(getActivity(),