pull/883/head
gedoor 4 years ago
parent 2f68374868
commit b6fb37455c
  1. 3
      app/src/main/java/io/legado/app/help/storage/Restore.kt
  2. 1
      app/src/main/java/io/legado/app/ui/about/AboutFragment.kt

@ -210,7 +210,6 @@ object Restore {
is Long -> edit.putLong(it.key, value)
is Float -> edit.putFloat(it.key, value)
is String -> edit.putString(it.key, value)
else -> Unit
}
}
}
@ -224,8 +223,8 @@ object Restore {
autoReadSpeed = appCtx.getPrefInt(PreferKey.autoReadSpeed, 46)
}
}
appCtx.toastOnUi(R.string.restore_success)
withContext(Main) {
appCtx.toastOnUi(R.string.restore_success)
delay(100)
if (!BuildConfig.DEBUG) {
LauncherIconHelp.changeIcon(appCtx.getPrefString(PreferKey.launcherIcon))

@ -34,6 +34,7 @@ class AboutFragment : PreferenceFragmentCompat() {
Pair("(QQ群6)870270970", "FeCF8iSxfQbe90HPvGsvcqs5P5oSeY5n"),
Pair("(QQ群7)15987187", "S2g2TMD0LGd3sefUADd1AbyPEW2o2XfC"),
Pair("(QQ群8)1079926194", "gg2qFH8q9IPFaCHV3H7CqCN-YljvazE1"),
Pair("(QQ群9)892108780", "Ci_O3aysKjEBfplOWeCud-rxl71TjU2Q")
)
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {

Loading…
Cancel
Save