From f68fa0f3fc54ff9a29c2c65502209855c86f81ba Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Thu, 30 May 2024 16:02:14 -0300 Subject: [PATCH] Fix AOSP build --- .../main/java/com/stevesoltys/seedvault/worker/IconManager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/stevesoltys/seedvault/worker/IconManager.kt b/app/src/main/java/com/stevesoltys/seedvault/worker/IconManager.kt index 1fb5f90c..333c0741 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/worker/IconManager.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/worker/IconManager.kt @@ -53,7 +53,8 @@ internal class IconManager( zip.setLevel(BEST_SPEED) val entries = mutableSetOf() packageService.allUserPackages.forEach { - val drawable = packageManager.getApplicationIcon(it.applicationInfo) + val applicationInfo = it.applicationInfo ?: return@forEach + val drawable = packageManager.getApplicationIcon(applicationInfo) if (packageManager.isDefaultApplicationIcon(drawable)) return@forEach val entry = ZipEntry(it.packageName) zip.putNextEntry(entry)