Show "None" for media auto-download when all options are disabled.

Co-authored-by: jeffrey-signal <jeffrey@signal.org>

Closes signalapp/Signal-Android#14678
This commit is contained in:
thomasboom
2026-03-21 15:04:15 +00:00
committed by jeffrey-signal
parent 8c4f614d17
commit 330a5aece2
3 changed files with 14 additions and 4 deletions

View File

@@ -142,6 +142,7 @@ private fun DataAndStorageSettingsScreen(
labels = stringArrayResource(R.array.pref_media_download_entries),
values = stringArrayResource(R.array.pref_media_download_values),
selection = state.mobileAutoDownloadValues.toTypedArray(),
noSelectionLabel = stringResource(R.string.preferences__none),
onSelectionChanged = callbacks::onMobileDataAutoDownloadSelectionChanged
)
}
@@ -152,6 +153,7 @@ private fun DataAndStorageSettingsScreen(
labels = stringArrayResource(R.array.pref_media_download_entries),
values = stringArrayResource(R.array.pref_media_download_values),
selection = state.wifiAutoDownloadValues.toTypedArray(),
noSelectionLabel = stringResource(R.string.preferences__none),
onSelectionChanged = callbacks::onWifiDataAutoDownloadSelectionChanged
)
}
@@ -162,6 +164,7 @@ private fun DataAndStorageSettingsScreen(
labels = stringArrayResource(R.array.pref_media_download_entries),
values = stringArrayResource(R.array.pref_media_download_values),
selection = state.roamingAutoDownloadValues.toTypedArray(),
noSelectionLabel = stringResource(R.string.preferences__none),
onSelectionChanged = callbacks::onRoamingDataAutoDownloadSelectionChanged
)
}