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

Commit e53ecdbe authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Apply final value in more case" into main

parents 1e0e9dfc 5b0115ff
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -52,9 +52,8 @@ data class PhysicsProperty

    fun setFinalValue(view: View, finalValue: Float) {
        val propertyData = obtainPropertyData(view, this)
        val previousValue = propertyData.finalValue
        if (previousValue != finalValue) {
        propertyData.finalValue = finalValue
        if (propertyData.finalValue + propertyData.offset != property.get(view)) {
            property.set(view, propertyData.finalValue + propertyData.offset)
        }
    }