Loading packages/SystemUI/src/com/android/systemui/biometrics/UdfpsController.java +11 −1 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ import android.os.PowerManager; import android.os.Trace; import android.os.VibrationAttributes; import android.os.VibrationEffect; import android.provider.Settings; import android.util.Log; import android.view.HapticFeedbackConstants; import android.view.LayoutInflater; Loading Loading @@ -920,12 +921,21 @@ public class UdfpsController implements DozeReceiver, Dumpable { true /* isAod */); }; if (mScreenOn) { if (isScreenOffUnlockEnabled() || mScreenOn) { mAodInterruptRunnable.run(); mAodInterruptRunnable = null; } } private boolean isScreenOffUnlockEnabled() { return mContext.getResources().getBoolean(R.bool.config_screen_off_udfps_enabled) && Settings.Secure.getIntForUser( mContext.getContentResolver(), Settings.Secure.SCREEN_OFF_UNLOCK_UDFPS_ENABLED, 0, mContext.getUserId()) != 0; } /** * Add a callback for fingerUp and fingerDown events */ Loading Loading
packages/SystemUI/src/com/android/systemui/biometrics/UdfpsController.java +11 −1 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ import android.os.PowerManager; import android.os.Trace; import android.os.VibrationAttributes; import android.os.VibrationEffect; import android.provider.Settings; import android.util.Log; import android.view.HapticFeedbackConstants; import android.view.LayoutInflater; Loading Loading @@ -920,12 +921,21 @@ public class UdfpsController implements DozeReceiver, Dumpable { true /* isAod */); }; if (mScreenOn) { if (isScreenOffUnlockEnabled() || mScreenOn) { mAodInterruptRunnable.run(); mAodInterruptRunnable = null; } } private boolean isScreenOffUnlockEnabled() { return mContext.getResources().getBoolean(R.bool.config_screen_off_udfps_enabled) && Settings.Secure.getIntForUser( mContext.getContentResolver(), Settings.Secure.SCREEN_OFF_UNLOCK_UDFPS_ENABLED, 0, mContext.getUserId()) != 0; } /** * Add a callback for fingerUp and fingerDown events */ Loading