diff --git a/app/src/main/java/io/legado/app/help/LauncherIconHelp.kt b/app/src/main/java/io/legado/app/help/LauncherIconHelp.kt index b70f0939d..fb0d85e0b 100644 --- a/app/src/main/java/io/legado/app/help/LauncherIconHelp.kt +++ b/app/src/main/java/io/legado/app/help/LauncherIconHelp.kt @@ -26,7 +26,7 @@ object LauncherIconHelp { } var hasEnabled = false componentNames.forEach { - if (it.className.equals(icon, true)) { + if (icon.equals(it.className.substringAfterLast("."), true)) { hasEnabled = true //启用 packageManager.setComponentEnabledSetting(