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

Commit 8fd80d81 authored by Chenjie Yu's avatar Chenjie Yu
Browse files

bugfix: adjust StatsLogEventWrapper length to make sure we don't

lose data

Test: manual test
Change-Id: I7bf014e7e2007e0e065aa7ca99522d9effcf1a68
parent 14b1f3ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -52,7 +52,7 @@ public final class StatsLogEventWrapper implements Parcelable {
        // pushed ones to be consistent.
        // pushed ones to be consistent.
        write4Bytes(STATS_BUFFER_TAG_ID);
        write4Bytes(STATS_BUFFER_TAG_ID);
        mStorage.write(EVENT_TYPE_LIST); // This is required to start the log entry.
        mStorage.write(EVENT_TYPE_LIST); // This is required to start the log entry.
        mStorage.write(fields); // Indicate number of elements in this list.
        mStorage.write(fields + 1); // Indicate number of elements in this list. +1 for the tag
        mStorage.write(EVENT_TYPE_INT);
        mStorage.write(EVENT_TYPE_INT);
        // The first element is the real atom tag number
        // The first element is the real atom tag number
        write4Bytes(tag);
        write4Bytes(tag);