mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-26 19:17:51 +02:00
Fix updater.
This commit is contained in:
@ -12,7 +12,7 @@ class GithubUpdateChecker() {
|
||||
*/
|
||||
fun checkForUpdate(): Observable<GithubUpdateResult> {
|
||||
return service.getLatestVersion().map { release ->
|
||||
val newVersion = release.version.replace("[^\\d.]".toRegex(), "")
|
||||
val newVersion = release.version
|
||||
|
||||
// Check if latest version is different from current version
|
||||
if (newVersion != BuildConfig.VERSION_NAME) {
|
||||
|
Reference in New Issue
Block a user