Skip to content

High performance self-hosted photo and video management solution.

fixed back button navigation with drawer (#1711)

martyfuhryb71a86142bbd
diff --git a/mobile/lib/shared/views/tab_controller_page.dart b/mobile/lib/shared/views/tab_controller_page.dart
index 42f98eefbe..8c2dcb4c8b 100644
--- a/mobile/lib/shared/views/tab_controller_page.dart
+++ b/mobile/lib/shared/views/tab_controller_page.dart
@@ -111,15 +111,13 @@ class TabControllerPage extends ConsumerWidget {
],
builder: (context, child, animation) {
final tabsRouter = AutoTabsRouter.of(context);
- final appRouter = AutoRouter.of(context);
return WillPopScope(
onWillPop: () async {
bool atHomeTab = tabsRouter.activeIndex == 0;
if (!atHomeTab) {
tabsRouter.setActiveIndex(0);
- } else {
- appRouter.navigateBack();
- }
+ }
+
return atHomeTab;
},
child: LayoutBuilder(