summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/status/StatusBarPolicy.java
diff options
context:
space:
mode:
Diffstat (limited to 'services/java/com/android/server/status/StatusBarPolicy.java')
-rw-r--r--services/java/com/android/server/status/StatusBarPolicy.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/java/com/android/server/status/StatusBarPolicy.java b/services/java/com/android/server/status/StatusBarPolicy.java
index 5de89c4c5de..4cf7ecd1dea 100644
--- a/services/java/com/android/server/status/StatusBarPolicy.java
+++ b/services/java/com/android/server/status/StatusBarPolicy.java
@@ -600,7 +600,8 @@ public class StatusBarPolicy {
int level = intent.getIntExtra("level", -1);
//show battery percentage if not plugged in and status is enabled
- if (plugged || Settings.System.getInt(mContext.getContentResolver(),
+ if (plugged || level >= 100 ||
+ Settings.System.getInt(mContext.getContentResolver(),
Settings.System.BATTERY_PERCENTAGE_STATUS_ICON, 1) == 0) {
mBatteryData.number = -1;
} else {