@SuppressWarnings("deprecation")
    private void setupSimplePreferencesScreen() {
        if (!SettingsActivity.isSimplePreferences(this)) {
            return;
        }

        // Class<ContactPreferenceFragment> a = ContactPreferenceFragment.class;

        // In the simplified UI, fragments are not used at all and we instead
        // use the older PreferenceActivity APIs.

        // Add 'general' preferences.
        PreferenceCategory fakeHeader = new PreferenceCategory(this);
        addPreferencesFromResource(R.xml.pref_contact);

        SettingsActivity.bindPreferenceSummaryToValue(findPreference(SettingsActivity.PREF_KEY_FULL_NAME));
        SettingsActivity.bindPreferenceSummaryToValue(findPreference(SettingsActivity.PREF_KEY_ADDRESS));
        SettingsActivity.bindPreferenceSummaryToValue(findPreference(SettingsActivity.PREF_KEY_PHONE_NUMBER));
        SettingsActivity.bindPreferenceSummaryToValue(findPreference(SettingsActivity.PREF_KEY_EMAIL));
    }
@ SuppressWarnings ( "deprecation" ) private void setupSimplePreferencesScreen ( ) { if ( ! SettingsActivity . isSimplePreferences ( this ) ) { return ; } PreferenceCategory fakeHeader = new PreferenceCategory ( this ) ; addPreferencesFromResource ( R . xml . pref_contact ) ; SettingsActivity . bindPreferenceSummaryToValue ( findPreference ( SettingsActivity . PREF_KEY_FULL_NAME ) ) ; SettingsActivity . bindPreferenceSummaryToValue ( findPreference ( SettingsActivity . PREF_KEY_ADDRESS ) ) ; SettingsActivity . bindPreferenceSummaryToValue ( findPreference ( SettingsActivity . PREF_KEY_PHONE_NUMBER ) ) ; SettingsActivity . bindPreferenceSummaryToValue ( findPreference ( SettingsActivity . PREF_KEY_EMAIL ) ) ; }
Shows the simplified settings UI if the device configuration if the device configuration dictates that a
simplified, single-pane UI should be shown.