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

Commit 5064c4be authored by Beverly Tai's avatar Beverly Tai Committed by Android (Google) Code Review
Browse files

Merge "Fix callback NPE onFaceEnrolledChanged" into main

parents 076853ce af2127a5
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -216,7 +216,11 @@ public class KeyguardStateControllerImpl implements KeyguardStateController, Dum

    private void notifyKeyguardFaceAuthEnabledChanged() {
        // Copy the list to allow removal during callback.
        new ArrayList<>(mCallbacks).forEach(Callback::onFaceEnrolledChanged);
        new ArrayList<>(mCallbacks).forEach(callback -> {
            if (callback != null) {
                callback.onFaceEnrolledChanged();
            }
        });
    }

    private void notifyUnlockedChanged() {