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

Commit 7fdc5886 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Use correct lock for reading/writing usage stats files"

parents 7d0b9856 ccf7d9e8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -215,11 +215,11 @@ public class UsageStatsService extends SystemService implements
            mPowerManager = getContext().getSystemService(PowerManager.class);

            mScreenOnSystemTimeSnapshot = System.currentTimeMillis();
            synchronized (this) {
            synchronized (mLock) {
                mScreenOnTime = readScreenOnTimeLocked();
            }
            mDisplayManager.registerDisplayListener(mDisplayListener, mHandler);
            synchronized (this) {
            synchronized (mLock) {
                updateDisplayLocked();
            }
        } else if (phase == PHASE_BOOT_COMPLETED) {