Skip to content

Commit c9c417c

Browse files
Brian ColonnaAndroid (Google) Code Review
authored andcommitted
Merge "Added callback to allow Face Unlock to hide black area" into ics-mr0
2 parents b0994ed + f8b9a47 commit c9c417c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

core/java/com/android/internal/policy/IFaceLockCallback.aidl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ oneway interface IFaceLockCallback {
2222
void unlock();
2323
void cancel();
2424
void reportFailedAttempt();
25+
void exposeFallback();
2526
void pokeWakelock();
2627
}

policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,6 +1375,13 @@ public void reportFailedAttempt() {
13751375
mKeyguardScreenCallback.pokeWakelock(BACKUP_LOCK_TIMEOUT);
13761376
}
13771377

1378+
// Removes the black area that covers the backup unlock method
1379+
@Override
1380+
public void exposeFallback() {
1381+
if (DEBUG) Log.d(TAG, "FaceLock exposeFallback()");
1382+
hideFaceLockArea(); // Expose fallback
1383+
}
1384+
13781385
// Allows the Face Unlock service to poke the wake lock to keep the lockscreen alive
13791386
@Override
13801387
public void pokeWakelock() {

0 commit comments

Comments
 (0)