Skip to content

Commit

Permalink
Remove READ_EXTERNAL_STORAGE, add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
ruskakimov committed Jun 16, 2021
1 parent 508d29d commit 978391d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<!--gallery_saver-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
android:name="io.flutter.app.FlutterApplication"
Expand Down
1 change: 1 addition & 0 deletions lib/editing/ui/actionbar/editing_actionbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class EditingActionbar extends StatelessWidget {
}

Future<void> _openExportDialog(BuildContext context) async {
// TODO: Handle permanently denied storage permission
if (await Permission.storage.request().isGranted) {
final tempDir = await getTemporaryDirectory();
final project = context.read<Project>();
Expand Down
1 change: 1 addition & 0 deletions lib/editing/ui/timeline/actionbar/import_audio_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class ImportAudioButton extends StatelessWidget {
onTap: playing
? null
: () async {
// TODO: Handle permanently denied storage permission
try {
final project = context.read<Project>();
await importer.importAudioTo(project);
Expand Down

0 comments on commit 978391d

Please sign in to comment.