mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-05 21:20:45 +00:00
No issues: Set ThemeFragment title in onResume (#2801)
This commit is contained in:
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
Block a user