mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Improved can auth check
This commit is contained in:
@@ -679,6 +679,8 @@ public class Helper {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M)
|
||||
return false;
|
||||
else if (Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.Q) {
|
||||
if (!context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FINGERPRINT))
|
||||
return false;
|
||||
FingerprintManager fpm = (FingerprintManager) context.getSystemService(Context.FINGERPRINT_SERVICE);
|
||||
return (fpm != null && fpm.isHardwareDetected() && fpm.hasEnrolledFingerprints());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user