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;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章