Home
last modified time | relevance | path

Searched refs:countryChooserPref (Results 1 – 1 of 1) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/assisteddialing/ui/
DAssistedDialingSettingFragment.java78 ListPreference countryChooserPref = in onCreate() local
82 updateCountryChoices(countryChooserPref); in onCreate()
83 updateCountryChooserSummary(countryChooserPref); in onCreate()
85 countryChooserPref.setOnPreferenceChangeListener(this::updateListSummary); in onCreate()
89 private void updateCountryChooserSummary(ListPreference countryChooserPref) { in updateCountryChooserSummary() argument
90 String defaultSummaryText = countryChooserPref.getEntries()[0].toString(); in updateCountryChooserSummary()
92 if (countryChooserPref.getEntry().equals(defaultSummaryText)) { in updateCountryChooserSummary()
95 CharSequence[] entries = countryChooserPref.getEntries(); in updateCountryChooserSummary()
98 entries[countryChooserPref.findIndexOfValue(userHomeCountryCode.get())]; in updateCountryChooserSummary()
99 countryChooserPref.setSummary( in updateCountryChooserSummary()
[all …]