diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt index be4e8ae1a..f610c134e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt @@ -64,15 +64,10 @@ class SettingsActivity : SimpleActivity() { } private fun setupShowMedia() { - var isInitialSetup = true settings_show_media.setSelection(config.showMedia) settings_show_media.onItemSelectedListener = object : AdapterView.OnItemSelectedListener { override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) { - if (isInitialSetup) - settings_show_media.setSelection(config.showMedia) - else - config.showMedia = settings_show_media.selectedItemPosition - isInitialSetup = false + config.showMedia = settings_show_media.selectedItemPosition } override fun onNothingSelected(parent: AdapterView<*>?) {