No issues: Set ThemeFragment title in onResume (#2801)
parent
a80053547e
commit
c6ac791609
|
@ -18,18 +18,14 @@ class ThemeFragment : PreferenceFragmentCompat() {
|
|||
private lateinit var radioAutoBatteryTheme: RadioButtonPreference
|
||||
private lateinit var radioFollowDeviceTheme: RadioButtonPreference
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
(activity as AppCompatActivity).title = getString(R.string.preferences_theme)
|
||||
(activity as AppCompatActivity).supportActionBar?.show()
|
||||
}
|
||||
|
||||
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
|
||||
setPreferencesFromResource(R.xml.theme_preferences, rootKey)
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
(activity as AppCompatActivity).title = getString(R.string.preferences_theme)
|
||||
(activity as AppCompatActivity).supportActionBar?.show()
|
||||
setupPreferences()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue