Skip to content

Commit ebb5a51

Browse files
committed
pref: check drawable intrinsic size
1 parent f899df2 commit ebb5a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/li/songe/gkd/data/AppInfo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fun PackageInfo.toAppInfo(
6060
isSystem = applicationInfo?.let { it.flags and ApplicationInfo.FLAG_SYSTEM != 0 } ?: false,
6161
name = applicationInfo?.run { loadLabel(app.packageManager).toString() } ?: packageName,
6262
icon = applicationInfo?.loadIcon(app.packageManager)?.run {
63-
if (intrinsicHeight == 0 || intrinsicWidth == 0) {
63+
if (intrinsicHeight <= 0 || intrinsicWidth <= 0) {
6464
// https://github.com/gkd-kit/gkd/issues/924
6565
null
6666
} else {

0 commit comments

Comments
 (0)