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 1f1bb5fa56
commit 6aad3ea684

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"