Skip to content

Commit

Permalink
Fix AOSP build
Browse files Browse the repository at this point in the history
  • Loading branch information
grote committed May 31, 2024
1 parent dab6a95 commit 1beebdc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ internal class IconManager(
zip.setLevel(BEST_SPEED)
val entries = mutableSetOf<String>()
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)
Expand Down

0 comments on commit 1beebdc

Please sign in to comment.