0.3.12
This commit is contained in:
@@ -62,7 +62,7 @@ val projectNoticeText =
|
|||||||
rootProject.file("NOTICE").readText()
|
rootProject.file("NOTICE").readText()
|
||||||
.replace("https://g.sublogue.com/admin/memby", membySourceUrl)
|
.replace("https://g.sublogue.com/admin/memby", membySourceUrl)
|
||||||
|
|
||||||
val defaultVersionName = "0.3.11"
|
val defaultVersionName = "0.3.12"
|
||||||
val membyVersionName: String =
|
val membyVersionName: String =
|
||||||
(project.findProperty("memby.versionName") as String?)
|
(project.findProperty("memby.versionName") as String?)
|
||||||
?.trim()
|
?.trim()
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ import androidx.lifecycle.Lifecycle
|
|||||||
import androidx.lifecycle.repeatOnLifecycle
|
import androidx.lifecycle.repeatOnLifecycle
|
||||||
import coil.imageLoader
|
import coil.imageLoader
|
||||||
import coil.request.ImageRequest
|
import coil.request.ImageRequest
|
||||||
import coil.request.Priority
|
|
||||||
import com.ponzischeme89.memby.R
|
import com.ponzischeme89.memby.R
|
||||||
import com.ponzischeme89.memby.ServiceLocator
|
import com.ponzischeme89.memby.ServiceLocator
|
||||||
import com.ponzischeme89.memby.data.Settings
|
import com.ponzischeme89.memby.data.Settings
|
||||||
@@ -270,7 +269,6 @@ internal fun HomeArtworkPreloader(
|
|||||||
.data(url)
|
.data(url)
|
||||||
.size(widthPx, heightPx)
|
.size(widthPx, heightPx)
|
||||||
.allowHardware(true)
|
.allowHardware(true)
|
||||||
.priority(Priority.LOW)
|
|
||||||
.crossfade(false)
|
.crossfade(false)
|
||||||
.build(),
|
.build(),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ class HomeViewModel(private val repository: EmbyRepository) : ViewModel() {
|
|||||||
|
|
||||||
/** The metadata panel only needs this small projection, not the row payloads. */
|
/** The metadata panel only needs this small projection, not the row payloads. */
|
||||||
val loading: StateFlow<Set<HomeSection>> = _state
|
val loading: StateFlow<Set<HomeSection>> = _state
|
||||||
.map(HomeUiState::loading)
|
.map { state: HomeUiState -> state.loading }
|
||||||
.distinctUntilChanged()
|
.distinctUntilChanged()
|
||||||
.stateIn(viewModelScope, SharingStarted.Eagerly, _state.value.loading)
|
.stateIn(viewModelScope, SharingStarted.Eagerly, _state.value.loading)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user