Update version "name" and "code" when installing external extension (#698)

In case a newer version of the extension is installed  and the extension gets manually downgraded, the version in db is still the one of the newer version.
This will prevent detection of available updates, since it won't get recognized, that an older version is currently installed.
This commit is contained in:
schroda
2023-10-02 23:46:46 +02:00
committed by GitHub
parent f985ed2131
commit 354968fba7

View File

@@ -181,6 +181,8 @@ object Extension {
it[this.apkName] = apkName
it[this.isInstalled] = true
it[this.classFQName] = className
it[versionName] = packageInfo.versionName
it[versionCode] = packageInfo.versionCode
}
val extensionId =