Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions packages/audioplayers/lib/src/audio_cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,10 @@ class AudioCache {
Future<Uri> load(String fileName) async {
var needsFetch = !loadedFiles.containsKey(fileName);

// On Android, verify that the cached file still exists. It can be removed
// Verify that the cached file still exists. It can be removed
// by the system when the storage is almost full
// see https://developer.android.com/training/data-storage/app-specific#internal-remove-cache
if (!needsFetch &&
defaultTargetPlatform == TargetPlatform.android &&
!await fileSystem.file(loadedFiles[fileName]).exists()) {
if (!needsFetch && !await fileSystem.file(loadedFiles[fileName]).exists()) {
needsFetch = true;
}

Expand Down
Loading