OSDN Git Service

addModemTxPowerToHistory() made synchronized
authorSiddharth Ray <siddharthr@google.com>
Wed, 28 Feb 2018 21:46:16 +0000 (13:46 -0800)
committerSiddharth Ray <siddharthr@google.com>
Wed, 28 Feb 2018 21:54:43 +0000 (13:54 -0800)
BUG:73818082
Change-Id: Ie0cce10d993a696c5e915e8ef62a66f2cd453197

core/java/com/android/internal/os/BatteryStatsImpl.java

index 8ee31f7..fdb9756 100644 (file)
@@ -11597,7 +11597,7 @@ public class BatteryStatsImpl extends BatteryStats {
      * time at the highest power level.
      * @param activityInfo
      */
-    private void addModemTxPowerToHistory(final ModemActivityInfo activityInfo) {
+    private synchronized void addModemTxPowerToHistory(final ModemActivityInfo activityInfo) {
         if (activityInfo == null) {
             return;
         }