diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/tools/feature/generator/GeneratorScreen.kt b/app/src/main/java/com/x8bit/bitwarden/ui/tools/feature/generator/GeneratorScreen.kt index 6b67f6f81d4..61e617ed4bc 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/tools/feature/generator/GeneratorScreen.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/tools/feature/generator/GeneratorScreen.kt @@ -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