mobile: focus keyboard if biometry is disabled

This commit is contained in:
Ammar Ahmed
2025-03-25 11:55:24 +05:00
committed by Abdullah Atta
parent b07d7e4f3f
commit 71811ebf0d

View File

@@ -289,6 +289,14 @@ const AppLocked = () => {
keyboardType={
appLockHasPasswordSecurity ? keyboardType : "default"
}
onLayout={async () => {
if (
!biometricsAuthEnabled ||
!(await BiometricService.isBiometryAvailable())
) {
passwordInputRef.current?.focus();
}
}}
placeholder={
appLockHasPasswordSecurity
? keyboardType === "numeric"