comparison app/src/main/java/com/bartsent/simpleresizer/SettingsActivity.kt @ 41:9231f1a41a59

Remove troublesome Up buttons; revise About text.
author David Barts <n5jrn@me.com>
date Thu, 08 Apr 2021 21:00:57 -0700
parents 20da616dcda0
children
comparison
equal deleted inserted replaced
40:cfb19d4ccf78 41:9231f1a41a59
14 supportFragmentManager 14 supportFragmentManager
15 .beginTransaction() 15 .beginTransaction()
16 .replace(R.id.settings, SettingsFragment()) 16 .replace(R.id.settings, SettingsFragment())
17 .commit() 17 .commit()
18 } 18 }
19 supportActionBar?.setDisplayHomeAsUpEnabled(true)
20 PreferenceManager.setDefaultValues(applicationContext, R.xml.root_preferences, false) 19 PreferenceManager.setDefaultValues(applicationContext, R.xml.root_preferences, false)
21 } 20 }
22 21
23 class SettingsFragment : PreferenceFragmentCompat() { 22 class SettingsFragment : PreferenceFragmentCompat() {
24 override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { 23 override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {