mirror of
https://github.com/standardnotes/mobile.git
synced 2026-05-24 22:44:41 -04:00
fix: show preferred keyboard type
This commit is contained in:
@@ -497,11 +497,9 @@ export const Authenticate = ({
|
||||
};
|
||||
setBiometricsAsync();
|
||||
const setInitialKeyboardType = async () => {
|
||||
if (challenge.reason === ChallengeReason.ApplicationUnlock) {
|
||||
const initialKeyboardType = await checkPasscodeKeyboardType();
|
||||
if (mounted) {
|
||||
setKeyboardType(initialKeyboardType);
|
||||
}
|
||||
const initialKeyboardType = await checkPasscodeKeyboardType();
|
||||
if (mounted) {
|
||||
setKeyboardType(initialKeyboardType);
|
||||
}
|
||||
};
|
||||
setInitialKeyboardType();
|
||||
|
||||
@@ -52,6 +52,9 @@ export const PasscodeInputModal = (props: Props) => {
|
||||
setSettingPassocode(false);
|
||||
} else {
|
||||
await application?.setPasscode(text);
|
||||
await application
|
||||
?.getAppState()
|
||||
.setPasscodeKeyboardType(keyboardType as PasscodeKeyboardType);
|
||||
await application?.getAppState().setPasscodeTiming(UnlockTiming.OnQuit);
|
||||
await application?.getAppState().setScreenshotPrivacy();
|
||||
setSettingPassocode(false);
|
||||
@@ -77,9 +80,6 @@ export const PasscodeInputModal = (props: Props) => {
|
||||
|
||||
const onKeyboardTypeSelect = (option: Option) => {
|
||||
setKeyboardType(option.key as KeyboardType);
|
||||
application
|
||||
?.getAppState()
|
||||
.setPasscodeKeyboardType(option.key as PasscodeKeyboardType);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user