mirror of
https://github.com/kalarina-bit/Fogwave.git
synced 2026-11-22 08:06:09 +00:00
Release 1.0.12
- Load preferences and all station logos off the main thread - Keep equalizer updates and player animations from recomposing whole screens - Build the Android Auto browse tree once and serve it from memory - Create only the audio and metadata renderers, ship only the app's languages - Store interface icons as lossless WebP, drop unused code and dependencies
This commit is contained in:
@@ -1,11 +1,22 @@
|
||||
package cc.skysparkle.fogwave
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import cc.skysparkle.fogwave.data.repository.RadioRepository
|
||||
import cc.skysparkle.fogwave.player.AudioEffectsEngine
|
||||
import coil.ImageLoader
|
||||
import coil.ImageLoaderFactory
|
||||
import coil.memory.MemoryCache
|
||||
|
||||
class FogwaveApp : Application(), ImageLoaderFactory {
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
// Opening the preference files starts loading them on a background thread right away, so the
|
||||
// first screen and the playback service usually find them loaded instead of waiting on the disk.
|
||||
getSharedPreferences(RadioRepository.PREFS_NAME, Context.MODE_PRIVATE)
|
||||
getSharedPreferences(AudioEffectsEngine.PREFS_NAME, Context.MODE_PRIVATE)
|
||||
}
|
||||
|
||||
override fun newImageLoader(): ImageLoader {
|
||||
return ImageLoader.Builder(this)
|
||||
.memoryCache {
|
||||
@@ -14,7 +25,6 @@ class FogwaveApp : Application(), ImageLoaderFactory {
|
||||
.build()
|
||||
}
|
||||
.crossfade(true)
|
||||
.respectCacheHeaders(false)
|
||||
.build()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user