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

Commit e9846105 authored by Danielle Millett's avatar Danielle Millett Committed by Android Git Automerger
Browse files

am 1108a2cb: Added a makeInvisible call to Face Unlock

* commit '1108a2cb':
  Added a makeInvisible call to Face Unlock
parents 2d22c9d7 1108a2cb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ interface IFaceLockInterface {
    void startUi(IBinder containingWindowToken, int x, int y, int width, int height,
            boolean useLiveliness);
    void stopUi();
    void makeInvisible();
    void registerCallback(IFaceLockCallback cb);
    void unregisterCallback(IFaceLockCallback cb);
}
+8 −0
Original line number Diff line number Diff line
@@ -151,6 +151,14 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback {
        }

        boolean mWasRunning = mIsRunning;
        try {
            if (mService != null) {
                mService.makeInvisible();
            }
        } catch (RemoteException e) {
            Log.e(TAG, "Caught exception making Face Unlock invisible: " + e.toString());
        }

        stopUi();

        if (mBoundToService) {
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ public class KeyguardFaceUnlockView extends LinearLayout implements KeyguardSecu
    public void onPause() {
        if (DEBUG) Log.d(TAG, "onPause()");
        if (mBiometricUnlock != null) {
            mBiometricUnlock.stopAndShowBackup();
            mBiometricUnlock.stop();
        }
        KeyguardUpdateMonitor.getInstance(mContext).removeCallback(mUpdateCallback);
    }