feat: 优化代码

pull/103/head
kunfei 5 years ago
parent 4c9f8c2079
commit 6d7bbb868b
  1. 1
      app/src/main/assets/updateLog.md
  2. 3
      app/src/main/java/io/legado/app/help/LauncherIconHelp.kt
  3. 1
      app/src/main/res/values/strings.xml

@ -5,6 +5,7 @@
**2020/02/13**
* 修复BUG
* 优化已下载检测,解决目录卡顿
* 添加切换图标
**2020/02/12**
* 修复bug

@ -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

@ -606,4 +606,5 @@
<string name="add_to_text_context_menu_t">文字操作显示搜索</string>
<string name="record_log">记录日志</string>
<string name="chinese_converter">中文简繁体转换</string>
<string name="chage_icon_error">图标为矢量图标,Android8.0以前不支持</string>
</resources>

Loading…
Cancel
Save