Merge "Added callback for Face Unlock service to poke the wakelock"
This commit is contained in:
committed by
Android (Google) Code Review
commit
fe7fcd23d5
@@ -21,4 +21,5 @@ import android.os.IBinder;
|
||||
oneway interface IFaceLockCallback {
|
||||
void unlock();
|
||||
void cancel();
|
||||
void pokeWakelock();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user