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

Commit 511d473d authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Fixes out of bounds error in ActivityMetricsLogger.

Add new entry to window mode lookup table.

Bug: 150649664
Test: presubmit

Change-Id: Iad68a1dc028bb47d3f62ad5fc2aa792057aad431
parent 26351d7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ class ActivityMetricsLogger {
    // Preallocated strings we are sending to tron, so we don't have to allocate a new one every
    // time we log.
    private static final String[] TRON_WINDOW_STATE_VARZ_STRINGS = {
            "window_time_0", "window_time_1", "window_time_2", "window_time_3"};
            "window_time_0", "window_time_1", "window_time_2", "window_time_3", "window_time_4"};

    private int mWindowState = WINDOW_STATE_STANDARD;
    private long mLastLogTimeSecs;