Skip to content

Commit

Permalink
fix: local audio doesn't get refreshed after getting permission
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Oct 13, 2022
1 parent abf4a57 commit 618c6da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/components/Library/UserLocalTracks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ class UserLocalTracks extends HookConsumerWidget {
if (!await Permission.storage.isGranted &&
!await Permission.storage.isLimited) {
await Permission.storage.request();
ref.refresh(localTracksProvider);
}
},
null,
Expand Down

0 comments on commit 618c6da

Please sign in to comment.