pull/37/head
kunfei 5 years ago
parent 43e1bcdc83
commit b1985d066c
  1. 5
      app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt

@ -91,8 +91,7 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config) {
} }
override fun onPreferenceTreeClick(preference: Preference?): Boolean { override fun onPreferenceTreeClick(preference: Preference?): Boolean {
preference?.let { when (preference?.key) {
when (preference.key) {
"bookSourceManage" -> context?.startActivity<BookSourceActivity>() "bookSourceManage" -> context?.startActivity<BookSourceActivity>()
"replaceManage" -> context?.startActivity<ReplaceRuleActivity>() "replaceManage" -> context?.startActivity<ReplaceRuleActivity>()
"setting" -> context?.startActivity<ConfigActivity>( "setting" -> context?.startActivity<ConfigActivity>(
@ -106,8 +105,6 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config) {
) )
"donate" -> context?.startActivity<DonateActivity>() "donate" -> context?.startActivity<DonateActivity>()
"about" -> context?.startActivity<AboutActivity>() "about" -> context?.startActivity<AboutActivity>()
else -> null
}
} }
return super.onPreferenceTreeClick(preference) return super.onPreferenceTreeClick(preference)
} }

Loading…
Cancel
Save