Code example for ListPreference

Methods: getEntries, getEntryValues, setSummary

0
            mJ4fs.setChecked(newValue);
            // not return true 
        } else if (mUsbConfig == preference) {
            String newValue = objValue.toString();
            mSetting.setUsbConfig(newValue);
            mUsbConfig.setSummary(Misc.getCurrentValueText(
                    this, Misc.getEntryFromEntryValue(mUsbConfig.getEntries(), mUsbConfig.getEntryValues(), newValue)));
            // not return true 
        } 
        return false; 
    } 
 
    @Override 
    public boolean onPreferenceDone(Preference preference, String newValue) {
        if (mLcdDensity == preference) {
            mSetting.setLcdDensity(newValue);
            mLcdDensity.setSummary(Misc.getCurrentValueText(this, newValue));
            // not return true 
        } 
        return false; 
    }