From ac0a3defb86028877ebf34324b3defe3fab10a56 Mon Sep 17 00:00:00 2001 From: Benjamin Halko Date: Sat, 14 Oct 2023 10:30:51 -0700 Subject: [PATCH] feat: Remove full external storage access --- 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 a911f070e0..50b7697a3d 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: