ExoPlayer improvements (#325)

* fix: add declarations for BT headsets

* fix: stop overriding user settings

* fix: offload cache to external storage
This commit is contained in:
TwistedUmbrellaX
2024-04-05 17:49:15 -04:00
committed by GitHub
parent 13a65c2bfa
commit 72c69e7c79
3 changed files with 12 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ class NetworkHelper(
.callTimeout(2, TimeUnit.MINUTES)
.cache(
Cache(
directory = File(context.cacheDir, "network_cache"),
directory = File(context.externalCacheDir ?: context.cacheDir, "network_cache"),
maxSize = 5L * 1024 * 1024, // 5 MiB
),
)