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(
|
BitwardenSlider(
|
||||||
value = passwordTypeState.length,
|
value = passwordTypeState.length,
|
||||||
onValueChange = passwordHandlers.onPasswordSliderLengthChange,
|
onValueChange = { newValue, isUserInteracting ->
|
||||||
range = passwordTypeState.computedMinimumLength..passwordTypeState.maxLength,
|
if (newValue >= passwordTypeState.computedMinimumLength) {
|
||||||
|
passwordHandlers.onPasswordSliderLengthChange(newValue, isUserInteracting)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
range = passwordTypeState.minLength..passwordTypeState.maxLength,
|
||||||
sliderTag = "PasswordLengthSlider",
|
sliderTag = "PasswordLengthSlider",
|
||||||
valueTag = "PasswordLengthLabel",
|
valueTag = "PasswordLengthLabel",
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|
Loading…
Reference in a new issue