We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7257a32 + 45f0646 commit 227a64fCopy full SHA for 227a64f
core/java/com/android/internal/os/BatteryStatsImpl.java
@@ -1275,7 +1275,7 @@ void addHistoryBufferLocked(long curTime) {
1275
// record changes to the battery level.
1276
if (mHistoryLastWritten.batteryLevel == mHistoryCur.batteryLevel &&
1277
(dataSize >= MAX_MAX_HISTORY_BUFFER
1278
- || ((mHistoryEnd.states^mHistoryCur.states)
+ || ((mHistoryLastWritten.states^mHistoryCur.states)
1279
& HistoryItem.MOST_INTERESTING_STATES) == 0)) {
1280
return;
1281
}
0 commit comments