Commit Graph

2 Commits

Author SHA1 Message Date
Jeff Davidson
6b176245f5 Fix NPE in AppListPreference when there is no default.
Bug: 14327074
Change-Id: I3b0dcfbefcfb91278582457beef5823072efc46a
2014-04-26 08:49:59 -07:00
Jeff Davidson
b9558d91df 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
2014-04-14 19:24:15 -07:00