From 4c9f8c2079cefba74183258b8a68ffbf8cffccab Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 13 Feb 2020 15:43:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/LauncherIconHelp.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(