Skip to content

Commit

Permalink
fix(home): resolve catalogs hot reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
rhenwinch committed Sep 30, 2024
1 parent cdb599e commit d8e81c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
// Version
val versionMajor = 2
val versionMinor = 1
val versionPatch = 0
val versionPatch = 1
val versionBuild = 0
val applicationName: String = libs.versions.applicationName.get()
val _applicationId: String = libs.versions.applicationId.get()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class AppConfigurationManager @Inject constructor(
)
}

if (status is UpdateStatus.Outdated) {
if (status is UpdateStatus.Outdated || status is UpdateStatus.UpToDate) {
appUpdateInfo = status.updateInfo
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package com.flixclusive.data.configuration
import com.flixclusive.core.locale.UiText

sealed class UpdateStatus(
val errorMessage: UiText? = null
val errorMessage: UiText? = null,
val updateInfo: AppUpdateInfo? = null,
) {
data object Fetching : UpdateStatus()
data class Outdated(val updateInfo: AppUpdateInfo) : UpdateStatus()
data class UpToDate(val updateInfo: AppUpdateInfo) : UpdateStatus()
class Outdated(updateInfo: AppUpdateInfo) : UpdateStatus(updateInfo = updateInfo)
class UpToDate(updateInfo: AppUpdateInfo) : UpdateStatus(updateInfo = updateInfo)
class Error(errorMessage: UiText?) : UpdateStatus(errorMessage)
}

0 comments on commit d8e81c5

Please sign in to comment.