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

Commit ab375771 authored by Dave Mankoff's avatar Dave Mankoff Committed by android-build-team Robot
Browse files

Prevent the BrightLineFalsingManager from duping its session.

The BrightLineFalsingManager should not be able to start a session
when it's already in a session. Primarily, this caused the
FalsingManager to hang onto extra registrations to the Proximity
Sensor, per the bug.

Bug: 138220274
Test: atest SystemUITests and manual.
Change-Id: Id10d2697a96524e98c87aaa87702209d1752fe68
(cherry picked from commit 0ae8f2e3)
parent 4863f9be
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -98,11 +98,13 @@ public class BrightLineFalsingManager implements FalsingManager {
    }

    private void sessionStart() {
        if (!mSessionStarted) {
            logDebug("Starting Session");
            mSessionStarted = true;
            registerSensors();
            mClassifiers.forEach(FalsingClassifier::onSessionStarted);
        }
    }

    private void sessionEnd() {
        if (mSessionStarted) {