mirror of
https://github.com/bitwarden/android.git
synced 2024-11-21 17:05:44 +03:00
PM-14429 Set the min and max range of the slider to match the restrictions not update the min with the computed min. (#4305)
This commit is contained in:
parent
3c4ac8b01a
commit
13210343db
1 changed files with 6 additions and 2 deletions
|
@ -455,8 +455,12 @@ private fun ColumnScope.PasswordTypeContent(
|
|||
|
||||
BitwardenSlider(
|
||||
value = passwordTypeState.length,
|
||||
onValueChange = passwordHandlers.onPasswordSliderLengthChange,
|
||||
range = passwordTypeState.computedMinimumLength..passwordTypeState.maxLength,
|
||||
onValueChange = { newValue, isUserInteracting ->
|
||||
if (newValue >= passwordTypeState.computedMinimumLength) {
|
||||
passwordHandlers.onPasswordSliderLengthChange(newValue, isUserInteracting)
|
||||
}
|
||||
},
|
||||
range = passwordTypeState.minLength..passwordTypeState.maxLength,
|
||||
sliderTag = "PasswordLengthSlider",
|
||||
valueTag = "PasswordLengthLabel",
|
||||
modifier = Modifier
|
||||
|
|
Loading…
Reference in a new issue