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

Commit af2127a5 authored by Beverly's avatar Beverly
Browse files

Fix callback NPE onFaceEnrolledChanged

Fixes: 314415604
Flag: None
Test: check crash trends dashboard
Change-Id: If9ed22e6c2b99c47a2319b0f0d9360e07c6bb22b
parent e2b283d9
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() {