From 6d7bbb868b58c7ce997a435a2a6a20a1371804ce Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 13 Feb 2020 15:48:29 +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/assets/updateLog.md | 1 + app/src/main/java/io/legado/app/help/LauncherIconHelp.kt | 3 ++- app/src/main/res/values/strings.xml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) 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以前不支持