fix: clear version on package fetch error
This commit is contained in:
parent
e03a528e0e
commit
c8bbc2cd3d
1 changed files with 2 additions and 0 deletions
|
|
@ -80,6 +80,7 @@ class HomeViewModel(
|
|||
Log.e(BuildConfig.TAG, Log.getStackTraceString(t))
|
||||
|
||||
withContext(Dispatchers.Main) {
|
||||
installedVersion = ""
|
||||
installedVersionType = VersionType.ERROR
|
||||
}
|
||||
}
|
||||
|
|
@ -95,6 +96,7 @@ class HomeViewModel(
|
|||
supportedVersionType = VersionType.parseVersionCode(it.versionCode.toIntOrNull())
|
||||
},
|
||||
fail = {
|
||||
supportedVersion = ""
|
||||
supportedVersionType = VersionType.ERROR
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue