Skip to content

Commit 1a088aa

Browse files
author
Brian Colonna
committed
Fix 5479823: black patch was showing before resuming call
- This issue was marked as RelTeamHotIssue - When Face Unlock is enabled, the black area is shown when going into the emergency dialer to prevent the backup lock from showing. However, it was doing this even if Face Unlock has already gone to the backup method. - Since the same code is used for returning to a call as is used for starting the emergency dialer, it was doing the same thing when resuming a call. - Just had to add a simple check to only display the black area if Face Unlock is still running. - Note that this did *not* cause a problem when Face Unlock was not the unlock method. Change-Id: Icc4deebcb47ceda035ea29c7d976342d3a8a60a7
1 parent c9c417c commit 1a088aa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,15 +358,16 @@ public void recreateMe(Configuration config) {
358358

359359
public void takeEmergencyCallAction() {
360360
mHasOverlay = true;
361-
// FaceLock must be stopped if it is running when emergency call is pressed
362-
stopAndUnbindFromFaceLock();
363361

364-
// Continue showing FaceLock area until dialer comes up
362+
// Continue showing FaceLock area until dialer comes up or call is resumed
365363
if (mLockPatternUtils.usingBiometricWeak() &&
366-
mLockPatternUtils.isBiometricWeakInstalled()) {
364+
mLockPatternUtils.isBiometricWeakInstalled() && mFaceLockServiceRunning) {
367365
showFaceLockAreaWithTimeout(FACELOCK_VIEW_AREA_EMERGENCY_DIALER_TIMEOUT);
368366
}
369367

368+
// FaceLock must be stopped if it is running
369+
stopAndUnbindFromFaceLock();
370+
370371
pokeWakelock(EMERGENCY_CALL_TIMEOUT);
371372
if (TelephonyManager.getDefault().getCallState()
372373
== TelephonyManager.CALL_STATE_OFFHOOK) {

0 commit comments

Comments
 (0)