Merge "Controls UI - Constrain status to increment of stepValue" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
08f2fc50c6
@@ -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 == "") {
|
||||
|
||||
Reference in New Issue
Block a user