Merge "Added callback to allow Face Unlock to hide black area" into ics-mr0
This commit is contained in:
committed by
Android (Google) Code Review
commit
c9c417c85d
@@ -22,5 +22,6 @@ oneway interface IFaceLockCallback {
|
||||
void unlock();
|
||||
void cancel();
|
||||
void reportFailedAttempt();
|
||||
void exposeFallback();
|
||||
void pokeWakelock();
|
||||
}
|
||||
|
||||
@@ -1375,6 +1375,13 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler
|
||||
mKeyguardScreenCallback.pokeWakelock(BACKUP_LOCK_TIMEOUT);
|
||||
}
|
||||
|
||||
// Removes the black area that covers the backup unlock method
|
||||
@Override
|
||||
public void exposeFallback() {
|
||||
if (DEBUG) Log.d(TAG, "FaceLock exposeFallback()");
|
||||
hideFaceLockArea(); // Expose fallback
|
||||
}
|
||||
|
||||
// Allows the Face Unlock service to poke the wake lock to keep the lockscreen alive
|
||||
@Override
|
||||
public void pokeWakelock() {
|
||||
|
||||
Reference in New Issue
Block a user