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

Commit 5fb01f1f authored by Peter Kalauskas's avatar Peter Kalauskas
Browse files

Fix malformed trace section

In some scenarios, the trace section
KeyguardViewMediator#handleKeyguardDone would never close.

Test: Capture perfetto trace, inspect trace to verify all slices end
Flag: EXEMPT system tracing only
Change-Id: Ic75a0bbf8efb0f2b045a96a7b4a0896a2451fc90
parent b283f3d3
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -2722,13 +2722,13 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
        if (mGoingToSleep) {
            mUpdateMonitor.clearFingerprintRecognizedWhenKeyguardDone(currentUser);
            Log.i(TAG, "Device is going to sleep, aborting keyguardDone");
            return;
        }
        } else {
            setPendingLock(false); // user may have authenticated during the screen off animation

            handleHide();
            mKeyguardInteractor.keyguardDoneAnimationsFinished();
            mUpdateMonitor.clearFingerprintRecognizedWhenKeyguardDone(currentUser);
        }
        Trace.endSection();
    }