Skip to content

Commit f8b9a47

Browse files
author
Brian Colonna
committed
Added callback to allow Face Unlock to hide black area
- Part of fix 5491362 (RelTeamHotIssue) - Because the fix closes the camera early, this change is needed so the black area isn't still hanging around while the camera fades to the backup lock. Change-Id: Iab7c264adab0fb05979fe2732048ccf2237e64c5
1 parent be25d5b commit f8b9a47

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)