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)

View File

@@ -351,4 +351,5 @@
<string name="search_hint">Search for Apps &amp; Games</string>
<string name="requesting_new_session">Requesting new session</string>
<string name="server_maintenance">Server down for maintenance</string>
<string name="downloading_dep">Downloading additional files for <xliff:g id="app">%1$s</xliff:g></string>
</resources>