summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/fuelgauge
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2009-06-25 12:27:21 -0700
committerAmith Yamasani <yamasani@google.com>2009-06-25 12:27:21 -0700
commit1fd2958ad43433b774500e0cf7013d21013257ad (patch)
tree24b45e379f7c27decb68dc97f1a8501f1a213e05 /src/com/android/settings/fuelgauge
parent0f1e11e219c9e89bb4a939cd864eb03087e784be (diff)
downloadpackages_apps_settings-1fd2958ad43433b774500e0cf7013d21013257ad.zip
packages_apps_settings-1fd2958ad43433b774500e0cf7013d21013257ad.tar.gz
packages_apps_settings-1fd2958ad43433b774500e0cf7013d21013257ad.tar.bz2
Fix an NPE.
Sometimes name is null, compare the other way around.
Diffstat (limited to 'src/com/android/settings/fuelgauge')
-rw-r--r--src/com/android/settings/fuelgauge/PowerUsageSummary.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/fuelgauge/PowerUsageSummary.java b/src/com/android/settings/fuelgauge/PowerUsageSummary.java
index d36dce7..8df0919 100644
--- a/src/com/android/settings/fuelgauge/PowerUsageSummary.java
+++ b/src/com/android/settings/fuelgauge/PowerUsageSummary.java
@@ -575,7 +575,7 @@ public class PowerUsageSummary extends PreferenceActivity implements Runnable {
//name = Integer.toString(uid);
if (uid == 0) {
name = getResources().getString(R.string.process_kernel_label);
- } else if (name.equals("mediaserver")) {
+ } else if ("mediaserver".equals(name)) {
name = getResources().getString(R.string.process_mediaserver_label);
}
return;
@@ -694,4 +694,4 @@ public class PowerUsageSummary extends PreferenceActivity implements Runnable {
super.handleMessage(msg);
}
};
-} \ No newline at end of file
+}