Load user photos through system_server.

Bug: 7194137
Change-Id: Ie36ca40c48fb06d55d120bfcf3db69aea9d83829
This commit is contained in:
Jeff Sharkey
2012-09-19 11:15:45 -07:00
parent f5de1db28a
commit 8882ccdd3e
3 changed files with 6 additions and 9 deletions

View File

@@ -767,10 +767,7 @@ public class PowerUsageSummary extends PreferenceFragment implements Runnable {
final int userId = mUserSippers.keyAt(i);
final List<BatterySipper> sippers = mUserSippers.valueAt(i);
UserInfo info = mUm.getUserInfo(userId);
Drawable icon = null;
if (info != null && info.iconPath != null) {
icon = UserUtils.getUserIcon(mUm, info);
}
Drawable icon = UserUtils.getUserIcon(mUm, info, getResources());
String name = info != null ? info.name : null;
if (name == null) {
name = Integer.toString(info.id);