android 底座充电压力插拔,有概率没有提示音

修改方案:

--- a/frameworks/base/services/core/java/com/android/server/power/WirelessChargerDetector.java
+++ b/frameworks/base/services/core/java/com/android/server/power/WirelessChargerDetector.java
@@ -76,7 +76,10 @@ final class WirelessChargerDetector {
 
     // The minimum amount of time to spend watching the sensor before making
     // a determination of whether movement occurred.
-    private static final long SETTLE_TIME_MILLIS = 800;
+    /*meig:jicong.wang modify for bug 10001 & 9982 start {@*/
+    //private static final long SETTLE_TIME_MILLIS = 800;
+    private static final long SETTLE_TIME_MILLIS = 200;
+    /*meig:jicong.wang modify for bug 10001 & 9982 end @}*/
 
     // The sensor sampling interval.
     private static final int SAMPLING_INTERVAL_MILLIS = 50;

你可能感兴趣的:(Android)