diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index db94c20e6..581576138 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -5,6 +5,7 @@ **2020/02/13** * 修复BUG * 优化已下载检测,解决目录卡顿 +* 添加切换图标 **2020/02/12** * 修复bug 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 fb0d85e0b..4bf5facc6 100644 --- a/app/src/main/java/io/legado/app/help/LauncherIconHelp.kt +++ b/app/src/main/java/io/legado/app/help/LauncherIconHelp.kt @@ -4,6 +4,7 @@ import android.content.ComponentName import android.content.pm.PackageManager import android.os.Build import io.legado.app.App +import io.legado.app.R import io.legado.app.ui.welcome.Launcher1 import io.legado.app.ui.welcome.WelcomeActivity import org.jetbrains.anko.toast @@ -21,7 +22,7 @@ object LauncherIconHelp { fun changeIcon(icon: String?) { if (icon.isNullOrEmpty()) return if (Build.VERSION.SDK_INT < 26) { - App.INSTANCE.toast("图标为矢量图标,Android8.0一下不支持") + App.INSTANCE.toast(R.string.chage_icon_error) return } var hasEnabled = false diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b77cb7e75..71496aa0b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -606,4 +606,5 @@ 文字操作显示搜索 记录日志 中文简繁体转换 + 图标为矢量图标,Android8.0以前不支持