Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd796674 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov Committed by Android (Google) Code Review
Browse files

Merge "Drop TAG_FIRST_OCCURRENCE_FLAG when populating history tag array"

parents fecb63e7 8af46572
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -12186,7 +12186,7 @@ public class BatteryStatsImpl extends BatteryStats {
        mHistoryTags = new SparseArray<>(mHistoryTagPool.size());
        for (Map.Entry<HistoryTag, Integer> entry: mHistoryTagPool.entrySet()) {
            mHistoryTags.put(entry.getValue(), entry.getKey());
            mHistoryTags.put(entry.getValue() & ~TAG_FIRST_OCCURRENCE_FLAG, entry.getKey());
        }
    }
@@ -16345,9 +16345,6 @@ public class BatteryStatsImpl extends BatteryStats {
        for (int i=0; i<numTags; i++) {
            int idx = in.readInt();
            String str = in.readString();
            if (str == null) {
                throw new ParcelFormatException("null history tag string");
            }
            int uid = in.readInt();
            HistoryTag tag = new HistoryTag();
            tag.string = str;