Skip to content

Commit

Permalink
Fix app icon parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
G00fY2 committed Aug 9, 2019
1 parent b0bff26 commit 4fd8bca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ApkFile private constructor() : Comparable<ApkFile> {
appInfo.publicSourceDir = filePath
packageManager.getApplicationLabel(appInfo).let { appName = it.toString() }
debuggable = appInfo.flags.and(ApplicationInfo.FLAG_DEBUGGABLE) != 0
packageManager.getApplicationIcon(appInfo.packageName).let {
packageManager.getApplicationIcon(appInfo).let {
if (VERSION.SDK_INT >= VERSION_CODES.O && it is AdaptiveIconDrawable) {
appIcon = InsetDrawable(it, 0.025f, 0.01f, 0.025f, 0.04f)
} else {
Expand Down

0 comments on commit 4fd8bca

Please sign in to comment.