Fix AOSP build
This commit is contained in:
parent
4b1c76d585
commit
f68fa0f3fc
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue