Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f0d3981 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Controls UI - Constrain status to increment of stepValue" into rvc-dev am: 08f2fc50

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11718818

Change-Id: I9a864ee20c686f7acdd8652b4de4d698872a2cb1
parents fad0c4df 08f2fc50
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 == "") {