Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] fix video editor back button

Aman Raj Singh Mourya73ee5a8131ff
diff --git a/mobile/lib/ui/tools/editor/video_editor_page.dart b/mobile/lib/ui/tools/editor/video_editor_page.dart
index a79b7e9454..392d93034c 100644
--- a/mobile/lib/ui/tools/editor/video_editor_page.dart
+++ b/mobile/lib/ui/tools/editor/video_editor_page.dart
@@ -99,6 +99,15 @@ class _VideoEditorPageState extends State<VideoEditorPage> {
Widget build(BuildContext context) {
return PopScope(
canPop: false,
+ onPopInvoked: (didPop) {
+ if (!didPop) {
+ if (_isExporting.value) {
+ return;
+ } else {
+ replacePage(context, DetailPage(widget.detailPageConfig));
+ }
+ }
+ },
child: Scaffold(
appBar: AppBar(
elevation: 0,