Skip to content

Commit 9ab84c2

Browse files
Jean-Baptiste Queruandroid code review
authored andcommitted
Merge "Fix wrong count return for getPhoneSignalStrengthCount"
2 parents 6fb8fe9 + fb90081 commit 9ab84c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,8 +2302,8 @@ public void noteNetworkInterfaceTypeLocked(String iface, int networkType) {
23022302
batteryRealtime, which);
23032303
}
23042304

2305-
@Override public int getPhoneSignalStrengthCount(int dataType, int which) {
2306-
return mPhoneDataConnectionsTimer[dataType].getCountLocked(which);
2305+
@Override public int getPhoneSignalStrengthCount(int strengthBin, int which) {
2306+
return mPhoneSignalStrengthsTimer[strengthBin].getCountLocked(which);
23072307
}
23082308

23092309
@Override public long getPhoneDataConnectionTime(int dataType,

0 commit comments

Comments
 (0)