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

Commit a1431a82 authored by Chris Li's avatar Chris Li Committed by Gerrit Code Review
Browse files

Merge "Fix thread safety issues;"

parents 99e5c70f 079495ac
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -44,8 +44,8 @@ class DisplayFoldDurationLogger {
    @Retention(RetentionPolicy.SOURCE)
    public @interface ScreenState {}

    private @ScreenState int mScreenState = SCREEN_STATE_UNKNOWN;
    private Long mLastChanged = null;
    private volatile @ScreenState int mScreenState = SCREEN_STATE_UNKNOWN;
    private volatile Long mLastChanged = null;

    private static final int LOG_SUBTYPE_UNFOLDED = 0;
    private static final int LOG_SUBTYPE_FOLDED = 1;