Apply predefined icon and label to managed profiles

Bug: 18132630
Change-Id: Ie6cfee420847d6992accb0bc0ca3f5535260bc55
This commit is contained in:
Alexandra Gherghina
2014-10-30 11:56:18 +00:00
parent 6f5b23f3fc
commit 0f5440f6e2
5 changed files with 34 additions and 35 deletions

View File

@@ -167,12 +167,7 @@ public class BatteryEntry {
UserInfo info = um.getUserInfo(sipper.userId);
if (info != null) {
icon = Utils.getUserIcon(context, um, info);
name = info != null ? info.name : null;
if (name == null) {
name = Integer.toString(info.id);
}
name = context.getResources().getString(
R.string.running_process_item_user_label, name);
name = Utils.getUserLabel(context, info);
} else {
icon = null;
name = context.getResources().getString(