话不多说直接上代码
--- a/code/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
+++ b/code/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
@@ -55,7 +55,6 @@ public class PowerUI extends SystemUI {
private static final long TEMPERATURE_INTERVAL = 30 * DateUtils.SECOND_IN_MILLIS;
private static final long TEMPERATURE_LOGGING_INTERVAL = DateUtils.HOUR_IN_MILLIS;
private static final int MAX_RECENT_TEMPS = 125; // TEMPERATURE_LOGGING_INTERVAL plus a buffer
-
private final Handler mHandler = new Handler();
private final Receiver mReceiver = new Receiver();
@@ -262,18 +261,17 @@ public class PowerUI extends SystemUI {
// only play SFX when the dialog comes up or the bucket changes
final boolean playSound = bucket != oldBucket || oldPlugged;
- mWarnings.showLowBatteryWarning(playS