pro版本添加自定义启动画面

This commit is contained in:
kunfei
2022-03-05 23:36:18 +08:00
parent 6137a2b5cd
commit e33fe1411f
3 changed files with 5 additions and 3 deletions
@@ -46,7 +46,9 @@ class ConfigActivity : BaseActivity<ActivityConfigBinding>() {
}
override fun finish() {
if (supportFragmentManager.findFragmentByTag(ConfigTag.COVER_CONFIG) != null) {
if (supportFragmentManager.findFragmentByTag(ConfigTag.COVER_CONFIG) != null
|| supportFragmentManager.findFragmentByTag(ConfigTag.WELCOME_CONFIG) != null
) {
replaceFragment<ThemeConfigFragment>(ConfigTag.THEME_CONFIG)
} else {
super.finish()
@@ -179,7 +179,7 @@ class ThemeConfigFragment : BasePreferenceFragment(),
"coverConfig" -> (activity as? ConfigActivity)
?.replaceFragment<CoverConfigFragment>(ConfigTag.COVER_CONFIG)
"welcomeStyle" -> (activity as? ConfigActivity)
?.replaceFragment<CoverConfigFragment>(ConfigTag.WELCOME_CONFIG)
?.replaceFragment<WelcomeConfigFragment>(ConfigTag.WELCOME_CONFIG)
}
return super.onPreferenceTreeClick(preference)
}
@@ -36,7 +36,7 @@ class WelcomeConfigFragment : BasePreferenceFragment(),
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
activity?.setTitle(R.string.cover_config)
activity?.setTitle(R.string.welcome_style)
listView.setEdgeEffectColor(primaryColor)
setHasOptionsMenu(true)
}