From 9a7cacc2ec7a70989b30bcb9b4c3564867ea8aed Mon Sep 17 00:00:00 2001 From: Abdourahamane Boinaidi Date: Wed, 13 Jul 2022 19:37:58 +0200 Subject: [PATCH] opt out of scoped storage on android Q Fix: #745 --- app/src/main/AndroidManifest.xml | 1 + app/src/main/java/com/infomaniak/drive/ui/MainViewModel.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 74922c8730..7a2ceb5957 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -62,6 +62,7 @@ android:allowBackup="false" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" + android:requestLegacyExternalStorage="true" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> diff --git a/app/src/main/java/com/infomaniak/drive/ui/MainViewModel.kt b/app/src/main/java/com/infomaniak/drive/ui/MainViewModel.kt index 582dc16185..0257267336 100644 --- a/app/src/main/java/com/infomaniak/drive/ui/MainViewModel.kt +++ b/app/src/main/java/com/infomaniak/drive/ui/MainViewModel.kt @@ -366,6 +366,7 @@ class MainViewModel(appContext: Application) : AndroidViewModel(appContext) { } } } catch (exception: SecurityException) { + Sentry.captureException(exception) exception.printStackTrace() fileDeleted.add(uploadFile) }