diff --git a/lib/pages/after_loading/afterloading_page.dart b/lib/pages/after_loading/afterloading_page.dart index a47f9bc7b..e1cfc0f7c 100644 --- a/lib/pages/after_loading/afterloading_page.dart +++ b/lib/pages/after_loading/afterloading_page.dart @@ -19,6 +19,7 @@ import 'package:violet/pages/main/main_page.dart'; import 'package:violet/pages/search/search_page.dart'; import 'package:violet/pages/segment/double_tap_to_top.dart'; import 'package:violet/pages/settings/settings_page.dart'; +import 'package:violet/platform/misc.dart'; import 'package:violet/script/script_webview.dart'; import 'package:violet/settings/settings.dart'; import 'package:violet/update/update_manager.dart'; @@ -299,6 +300,10 @@ class AfterLoadingPageState extends State if (_lastPopAt != null && now.difference(_lastPopAt!) <= const Duration(seconds: 2)) { + if (Platform.isAndroid) { + await PlatformMiscMethods.instance.finishMainActivity(); + } + return true; }