diff options
author | 2009-08-01 23:02:28 -0400 | |
---|---|---|
committer | 2009-08-01 23:02:28 -0400 | |
commit | 69eb0bfcce7ec68a9771dbcf53434dfbca183d0c (patch) | |
tree | 192f2d2489d58f07d95a3848b6d6a9a3dff71849 | |
parent | cf31b1bcbe5b9081470ec67421c78894d59363f6 (diff) |
Close the "Please connect charger" alert after a charger is connected.
Signed-off-by: Mike Lockwood <lockwood@android.com>
-rw-r--r-- | services/java/com/android/server/status/StatusBarPolicy.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/status/StatusBarPolicy.java b/services/java/com/android/server/status/StatusBarPolicy.java index 5aed39690c30..e71d3291e022 100644 --- a/services/java/com/android/server/status/StatusBarPolicy.java +++ b/services/java/com/android/server/status/StatusBarPolicy.java @@ -375,7 +375,8 @@ public class StatusBarPolicy { else if (action.equals(Intent.ACTION_BATTERY_LOW)) { onBatteryLow(intent); } - else if (action.equals(Intent.ACTION_BATTERY_OKAY)) { + else if (action.equals(Intent.ACTION_BATTERY_OKAY) + || action.equals(Intent.ACTION_POWER_CONNECTED)) { onBatteryOkay(intent); } else if (action.equals(BluetoothIntent.BLUETOOTH_STATE_CHANGED_ACTION) || @@ -523,6 +524,7 @@ public class StatusBarPolicy { filter.addAction(Intent.ACTION_BATTERY_CHANGED); filter.addAction(Intent.ACTION_BATTERY_LOW); filter.addAction(Intent.ACTION_BATTERY_OKAY); + filter.addAction(Intent.ACTION_POWER_CONNECTED); filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); filter.addAction(Intent.ACTION_ALARM_CHANGED); filter.addAction(Intent.ACTION_SYNC_STATE_CHANGED); |