From cd8e18ccaa1b5959a3e5fb88ddba4c73437e7bc2 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 | 1 + 1 file changed, 1 insertion(+) 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 1fb5f90c4..5b34d30cc 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/worker/IconManager.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/worker/IconManager.kt @@ -53,6 +53,7 @@ internal class IconManager( zip.setLevel(BEST_SPEED) val entries = mutableSetOf() packageService.allUserPackages.forEach { + if (it.applicationInfo == null) return@forEach val drawable = packageManager.getApplicationIcon(it.applicationInfo) if (packageManager.isDefaultApplicationIcon(drawable)) return@forEach val entry = ZipEntry(it.packageName)