feat: 优化代码

pull/103/head
kunfei 5 years ago
parent 3598ba1c33
commit 4c9f8c2079
  1. 2
      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(

Loading…
Cancel
Save