Merge pull request #254 from ouchadam/bug/clear-cache-on-update

Fix app upgrade not asking user to clear cache
This commit is contained in:
Adam Brown 2022-11-06 20:55:07 +00:00 committed by GitHub
commit 51e6332a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -25,8 +25,6 @@ class BetaVersionUpgradeUseCase(
return when (previousVersion) { return when (previousVersion) {
null -> false null -> false
else -> currentVersion > previousVersion else -> currentVersion > previousVersion
}.also {
applicationPreferences.setVersion(ApplicationVersion(currentVersion))
} }
} }
@ -38,7 +36,8 @@ class BetaVersionUpgradeUseCase(
} }
} }
fun notifyUpgraded() { suspend fun notifyUpgraded() {
applicationPreferences.setVersion(ApplicationVersion(buildMeta.versionCode))
_continuation?.resume(Unit) _continuation?.resume(Unit)
_continuation = null _continuation = null
} }