File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
app/src/main/kotlin/li/songe/gkd/data Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,14 @@ fun PackageInfo.toAppInfo(
5959 mtime = lastUpdateTime,
6060 isSystem = applicationInfo?.let { it.flags and ApplicationInfo .FLAG_SYSTEM != 0 } ? : false ,
6161 name = applicationInfo?.run { loadLabel(app.packageManager).toString() } ? : packageName,
62- icon = applicationInfo?.loadIcon(app.packageManager),
62+ icon = applicationInfo?.loadIcon(app.packageManager)?.run {
63+ if (intrinsicHeight == 0 || intrinsicWidth == 0 ) {
64+ // https://github.com/gkd-kit/gkd/issues/924
65+ null
66+ } else {
67+ this
68+ }
69+ },
6370 userId = userId,
6471 hidden = hidden ? : (app.packageManager.getLaunchIntentForPackage(packageName) == null ),
6572// activities = (activities ?: emptyArray()).map {
You can’t perform that action at this time.
0 commit comments