Skip to content

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

fix backpress handler in fullscreen

ammarahm-ed4957497553b0
diff --git a/apps/mobile/src/views/Editor/EditorRoot.js b/apps/mobile/src/views/Editor/EditorRoot.js
index d9e05cafa..31f00d82e 100644
--- a/apps/mobile/src/views/Editor/EditorRoot.js
+++ b/apps/mobile/src/views/Editor/EditorRoot.js
@@ -46,11 +46,7 @@ const EditorRoot = () => {
useEffect(() => {
if (fullscreen && DDS.isTab) {
- handleBack = BackHandler.addEventListener('hardwareBackPress', () => {
- simpleDialogEvent(TEMPLATE_EXIT_FULLSCREEN());
- editing.isFullscreen = false;
- return true;
- });
+ handleBack = BackHandler.addEventListener('hardwareBackPress', _onBackPress);
}
return () => {