mirror of
https://github.com/ouchadam/small-talk.git
synced 2025-03-18 04:50:18 +01:00
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:
commit
51e6332a74
@ -25,8 +25,6 @@ class BetaVersionUpgradeUseCase(
|
||||
return when (previousVersion) {
|
||||
null -> false
|
||||
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 = null
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user