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

Commit bbe12d74 authored by Xin Guan's avatar Xin Guan
Browse files

UsageStats: Handle the event count correctly.

Set the event count to be the size of the event list
if only partial list gets transferred.

Bug: 301254110
Test: build + manual test with different flag value.
Change-Id: Ic0254a259b0808282a37c34881fc2e2855d79815
parent f87b353f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -837,6 +837,7 @@ public final class UsageEvents implements Parcelable {
        if (mEventCount != mEventsToWrite.size()) {
            Log.w(TAG, "Partial usage event list received: " + mEventCount + " != "
                    + mEventsToWrite.size());
            mEventCount = mEventsToWrite.size();
        }
    }