File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
policy/src/com/android/internal/policy/impl Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments