mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
linting
This commit is contained in:
parent
de5e2b7071
commit
2168f9dcd6
@ -78,9 +78,9 @@ class KiwixPrefsFragment : CorePrefsFragment() {
|
||||
private fun setUpStoragePreference(sharedPreferenceUtil: SharedPreferenceUtil) {
|
||||
lifecycleScope.launch {
|
||||
storageDeviceList.forEachIndexed { index, storageDevice ->
|
||||
val preferenceKey = if (index==0) PREF_INTERNAL_STORAGE else PREF_EXTERNAL_STORAGE
|
||||
val preferenceKey = if (index == 0) PREF_INTERNAL_STORAGE else PREF_EXTERNAL_STORAGE
|
||||
val selectedStoragePosition = sharedPreferenceUtil.storagePosition
|
||||
val isChecked = selectedStoragePosition==index
|
||||
val isChecked = selectedStoragePosition == index
|
||||
findPreference<StorageRadioButtonPreference>(preferenceKey)?.apply {
|
||||
this.isChecked = isChecked
|
||||
setOnPreferenceClickListener {
|
||||
|
Loading…
x
Reference in New Issue
Block a user