Skip to content

Commit

Permalink
Changed cacheDir to filesDir in loadInternalMusic
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafal committed Dec 20, 2018
1 parent 29da059 commit f4e41d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ open class InternalMediaPlayer(val player: MediaPlayer, val context: Context,
val audioAttributes = AudioAttributes.Builder()
.setUsage(AudioAttributes.USAGE_MEDIA)
.setContentType(AudioAttributes.CONTENT_TYPE_MUSIC).build()
val path = "${context.cacheDir}/$filePath"
val path = "${context.filesDir}/$filePath"
mediaSubject.onNext((attributes ?: audioAttributes) to path)
}

Expand Down

0 comments on commit f4e41d4

Please sign in to comment.