Move over to CharSequence version of badging method.

Bug: 16484455
Change-Id: Ie5ee010efc439219cb71fd4241fdb798a5f4ea12
This commit is contained in:
Kenny Guy
2014-08-07 22:01:22 +01:00
parent ec08228ea9
commit cc2cbaf421
3 changed files with 7 additions and 9 deletions

View File

@@ -297,9 +297,7 @@ public class PowerUsageSummary extends PreferenceFragment {
final BatteryEntry entry = new BatteryEntry(getActivity(), mHandler, mUm, sipper);
final Drawable badgedIcon = mUm.getBadgedDrawableForUser(entry.getIcon(),
userHandle);
// TODO: type of this will be replaced by CharSequence (see
// https://b.corp.google.com/issue?id=16401636 )
final String contentDescription = mUm.getBadgedLabelForUser(entry.getLabel(),
final CharSequence contentDescription = mUm.getBadgedLabelForUser(entry.getLabel(),
userHandle);
final PowerGaugePreference pref = new PowerGaugePreference(getActivity(),
badgedIcon, contentDescription, entry);