Skip to content

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

hide app lock dialog on tapping background

ammarahm-ed3cbca86ff54e
diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js
index 346b93439..af66f85e4 100644
--- a/apps/mobile/src/views/Settings/index.js
+++ b/apps/mobile/src/views/Settings/index.js
@@ -1083,7 +1083,11 @@ const SettingsPrivacyAndSecurity = () => {
return (
<>
{appLockVisible && (
- <BaseDialog visible={true}>
+ <BaseDialog
+ onRequestClose={() => {
+ setAppLockVisible(false);
+ }}
+ visible={true}>
<DialogContainer height={450}>
<DialogHeader
title="App lock mode"
@@ -1129,7 +1133,7 @@ const SettingsPrivacyAndSecurity = () => {
))}
<DialogButtons
- negativeTitle="Cancel"
+ negativeTitle="Close"
onPressNegative={() => {
setAppLockVisible(false);
}}