Merge "Controls UI - Constrain status to increment of stepValue" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-03 15:55:52 +00:00
committed by Android (Google) Code Review

View File

@@ -268,7 +268,7 @@ class ToggleRangeBehavior : Behavior {
private fun format(primaryFormat: String, backupFormat: String, value: Float): String {
return try {
String.format(primaryFormat, value)
String.format(primaryFormat, findNearestStep(value))
} catch (e: IllegalFormatException) {
Log.w(ControlsUiController.TAG, "Illegal format in range template", e)
if (backupFormat == "") {