From f334da95ff14248f5c37c868c6e5cf1ce6d9da1d Mon Sep 17 00:00:00 2001 From: Benjamin <73490201+BenjaminHalko@users.noreply.github.com> Date: Sun, 15 Oct 2023 02:44:11 -0700 Subject: [PATCH] feat: Remove full external storage access (#1381) --- lib/ui/views/navigation/navigation_viewmodel.dart | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/ui/views/navigation/navigation_viewmodel.dart b/lib/ui/views/navigation/navigation_viewmodel.dart index a911f070..50b7697a 100644 --- a/lib/ui/views/navigation/navigation_viewmodel.dart +++ b/lib/ui/views/navigation/navigation_viewmodel.dart @@ -19,7 +19,6 @@ class NavigationViewModel extends IndexTrackingViewModel { Future initialize(BuildContext context) async { locator().initialize(context); final SharedPreferences prefs = await SharedPreferences.getInstance(); - await requestManageExternalStorage(); if (prefs.getBool('permissionsRequested') == null) { await Permission.storage.request(); @@ -60,17 +59,6 @@ class NavigationViewModel extends IndexTrackingViewModel { ); } - Future requestManageExternalStorage() async { - final manageExternalStorageStatus = - await Permission.manageExternalStorage.status; - if (manageExternalStorageStatus.isDenied) { - await Permission.manageExternalStorage.request(); - } - if (manageExternalStorageStatus.isPermanentlyDenied) { - await openAppSettings(); - } - } - Widget getViewForIndex(int index) { switch (index) { case 0: