Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix configure note activity not showing biometric unlock prompt

Ammar Ahmed96310a46e918
diff --git a/apps/mobile/app/components/app-lock-overlay/index.tsx b/apps/mobile/app/components/app-lock-overlay/index.tsx
index 7f23c6b95..9f13e012e 100644
--- a/apps/mobile/app/components/app-lock-overlay/index.tsx
+++ b/apps/mobile/app/components/app-lock-overlay/index.tsx
@@ -112,14 +112,19 @@ const AppLockedOverlay = () => {
if (
!biometricsAuthEnabled ||
!(await BiometricService.isBiometryAvailable())
- )
+ ) {
return;
+ }
biometricUnlockAwaitingUserInput.current = true;
if (Platform.OS === "android") {
const activityName = await NotesnookModule.getActivityName();
- if (activityName !== "MainActivity") return;
+ if (
+ activityName !== "MainActivity" &&
+ activityName !== "NotePreviewConfigureActivity"
+ )
+ return;
}
useSettingStore.getState().setRequestBiometrics(true);
@@ -180,7 +185,6 @@ const AppLockedOverlay = () => {
DatabaseLogger.info("Locking app on entering foreground");
useUserStore.getState().lockApp(true);
}
-
if (
!(
biometricUnlockAwaitingUserInput.current ||