diff options
author | Jeff Davidson <jpd@google.com> | 2014-03-25 12:21:30 -0700 |
---|---|---|
committer | Jeff Davidson <jpd@google.com> | 2014-04-14 19:24:15 -0700 |
commit | b9558d91dfcae4cd98f2e25dd070dfa8c926d524 (patch) | |
tree | 3e27d237c79ea825c3794016b920121f178596bd /res/xml/wireless_settings.xml | |
parent | 210bb8694aa5ad14b2b5bd52ab77a7960b4b5712 (diff) | |
download | packages_apps_Settings-b9558d91dfcae4cd98f2e25dd070dfa8c926d524.zip packages_apps_Settings-b9558d91dfcae4cd98f2e25dd070dfa8c926d524.tar.gz packages_apps_Settings-b9558d91dfcae4cd98f2e25dd070dfa8c926d524.tar.bz2 |
Refactor SmsListPreference into AppListPreference.
This generalizes the pattern of needing to offer a selection among a
list of candidate applications.
Also move some reusable logic around querying PackageManager for icons
into AppListPreference, and remove some unnecessary update logic: the
preference will update itself when onPreferenceChange returns true,
and we can set the summary to '%s' to automatically use the entry as
the summary without having to reset it each time.
Change-Id: I007b9ed58359302f93b367a4b86354e93613bf3e
Diffstat (limited to 'res/xml/wireless_settings.xml')
-rw-r--r-- | res/xml/wireless_settings.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/xml/wireless_settings.xml b/res/xml/wireless_settings.xml index 474eeb9..bf1523e 100644 --- a/res/xml/wireless_settings.xml +++ b/res/xml/wireless_settings.xml @@ -23,9 +23,10 @@ android:persistent="false" android:disableDependentsState="true" /> - <com.android.settings.SmsListPreference + <com.android.settings.AppListPreference android:key="sms_application" android:title="@string/sms_application_title" + android:summary="%s" android:persistent="false" /> <CheckBoxPreference |