Set missing displayName and iconArtwork for shared libraries

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-05-31 23:04:29 +08:00
parent 8cf3b823ff
commit 0a27b007d4
2 changed files with 4 additions and 0 deletions

View File

@@ -486,6 +486,9 @@ class UpdateService: LifecycleService() {
if (app.dependencies.dependentLibraries.isNotEmpty() && isOAndAbove()) {
app.dependencies.dependentLibraries.forEach {
if (!isSharedLibraryInstalled(this, it.packageName, it.versionCode)) {
it.displayName = getString(R.string.downloading_dep, app.displayName)
it.iconArtwork = app.iconArtwork
updateApp(it, removeExisiting)
while (containsInInstalling(it.packageName) ||
!isSharedLibraryInstalled(this, it.packageName, it.versionCode)