From a82b0cd74dbb543fa88cc0033e1572d0b304fb20 Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Thu, 15 Sep 2022 00:57:54 +0100 Subject: [PATCH] fix: Request IGNORE_BATTERY_OPTIMIZATIONS on boot --- lib/ui/views/navigation/navigation_viewmodel.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ui/views/navigation/navigation_viewmodel.dart b/lib/ui/views/navigation/navigation_viewmodel.dart index 1226bcfd42..614eb18cba 100644 --- a/lib/ui/views/navigation/navigation_viewmodel.dart +++ b/lib/ui/views/navigation/navigation_viewmodel.dart @@ -25,6 +25,7 @@ class NavigationViewModel extends IndexTrackingViewModel { } RootAPI().hasRootPermissions(); Permission.requestInstallPackages.request(); + Permission.ignoreBatteryOptimizations.request(); } Widget getViewForIndex(int index) {