Skip to content

Commit

Permalink
Merge branch '28402-fix-android-13-storage-permission'
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Pabon committed Sep 17, 2024
2 parents c9cf699 + d6f1812 commit be63d71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/app/widgets/dialogs/modal_actions_bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ class DirectoryActions extends StatelessWidget with AppLogger {
FileType type,
) async {
if (io.Platform.isAndroid) {
/// On Android 13 (Sdk API 33) or lower, the strorage
/// On Android 12 (Sdk API 32) or lower, the strorage
/// permission needs to be requested before using the file picker.
///
/// This is not longer the case, starting with version 14 (Sdk API 34)
/// This is not longer the case, starting with version 13 (Sdk API 33)
final androidInfo = await DeviceInfoPlugin().androidInfo;
if (androidInfo.version.sdkInt <= 33) {
if (androidInfo.version.sdkInt <= 32) {
final status = await Permissions.requestPermission(
parentContext, Permission.storage);

Expand Down

0 comments on commit be63d71

Please sign in to comment.