This commit is contained in:
ponzischeme89
2026-08-23 18:55:04 +12:00
parent aa8f16f21b
commit 5107c4b0fc
3 changed files with 2 additions and 4 deletions
@@ -61,7 +61,6 @@ import androidx.lifecycle.Lifecycle
import androidx.lifecycle.repeatOnLifecycle
import coil.imageLoader
import coil.request.ImageRequest
import coil.request.Priority
import com.ponzischeme89.memby.R
import com.ponzischeme89.memby.ServiceLocator
import com.ponzischeme89.memby.data.Settings
@@ -270,7 +269,6 @@ internal fun HomeArtworkPreloader(
.data(url)
.size(widthPx, heightPx)
.allowHardware(true)
.priority(Priority.LOW)
.crossfade(false)
.build(),
)
@@ -153,7 +153,7 @@ class HomeViewModel(private val repository: EmbyRepository) : ViewModel() {
/** The metadata panel only needs this small projection, not the row payloads. */
val loading: StateFlow<Set<HomeSection>> = _state
.map(HomeUiState::loading)
.map { state: HomeUiState -> state.loading }
.distinctUntilChanged()
.stateIn(viewModelScope, SharingStarted.Eagerly, _state.value.loading)