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

Commit 0c422a72 authored by Brian Colonna's avatar Brian Colonna
Browse files

Added callback for Face Unlock service to poke the wakelock

Change-Id: I76a4e0f8ac0fe17e39195f4593fac7e36d7281f0
parent 94d2f366
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,4 +21,5 @@ import android.os.IBinder;
oneway interface IFaceLockCallback {
    void unlock();
    void cancel();
    void pokeWakelock();
}
+7 −0
Original line number Diff line number Diff line
@@ -1170,5 +1170,12 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler
            mHandler.sendEmptyMessage(MSG_HIDE_FACELOCK_AREA_VIEW); // Expose fallback
            stopFaceLock();
        }

        // Allows the Face Unlock service to poke the wake lock to keep the lockscreen alive
        @Override
        public void pokeWakelock() {
            if (DEBUG) Log.d(TAG, "FaceLock pokeWakelock()");
            mKeyguardScreenCallback.pokeWakelock();
        }
    };
}