summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/fuelgauge
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-09-19 11:15:45 -0700
committerJeff Sharkey <jsharkey@android.com>2012-09-19 11:16:24 -0700
commit8882ccdd3eafc338213b312f1b73fb4de1776a60 (patch)
treeab339279ac8c2c15cd3cca8f543e12e312aa48ea /src/com/android/settings/fuelgauge
parentf5de1db28a61d159e62ef42f64a2cdcb316d0c2c (diff)
downloadpackages_apps_Settings-8882ccdd3eafc338213b312f1b73fb4de1776a60.tar.gz
packages_apps_Settings-8882ccdd3eafc338213b312f1b73fb4de1776a60.tar.bz2
packages_apps_Settings-8882ccdd3eafc338213b312f1b73fb4de1776a60.zip
Load user photos through system_server.
Bug: 7194137 Change-Id: Ie36ca40c48fb06d55d120bfcf3db69aea9d83829
Diffstat (limited to 'src/com/android/settings/fuelgauge')
-rw-r--r--src/com/android/settings/fuelgauge/PowerUsageSummary.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/android/settings/fuelgauge/PowerUsageSummary.java b/src/com/android/settings/fuelgauge/PowerUsageSummary.java
index 9bd553856..5704163cc 100644
--- a/src/com/android/settings/fuelgauge/PowerUsageSummary.java
+++ b/src/com/android/settings/fuelgauge/PowerUsageSummary.java
@@ -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);