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 c079ad665..b70f0939d 100644 --- a/app/src/main/java/io/legado/app/help/LauncherIconHelp.kt +++ b/app/src/main/java/io/legado/app/help/LauncherIconHelp.kt @@ -43,7 +43,13 @@ object LauncherIconHelp { ) } } - if (!hasEnabled) { + if (hasEnabled) { + packageManager.setComponentEnabledSetting( + ComponentName(App.INSTANCE, WelcomeActivity::class.java.name), + PackageManager.COMPONENT_ENABLED_STATE_DISABLED, + PackageManager.DONT_KILL_APP + ) + } else { packageManager.setComponentEnabledSetting( ComponentName(App.INSTANCE, WelcomeActivity::class.java.name), PackageManager.COMPONENT_ENABLED_STATE_ENABLED,