Load user photos through system_server.
Bug: 7194137 Change-Id: Ie36ca40c48fb06d55d120bfcf3db69aea9d83829
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user