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

Commit e47f4ece authored by Aaron Liu's avatar Aaron Liu
Browse files

Fix index out of bounds exception

There was an error where we are removing the element instead of
subtracting the value of the element.

Fixes: 331231728
Test: Go to large clock in portrait
Flag: ACONFIG com.android.systemui.compose_lockscreen DEVELOPMENT

Change-Id: I82b12ebd202a0d777b1e1079761ed4aa1f0a3175
parent 4f47e3bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -555,7 +555,7 @@ class AnimatableClockView @JvmOverloads constructor(
            if (distance > 0) {
                // If distance > 0 then we are moving from the left towards the center.
                // We need ensure that the glyphs are offset to the initial position.
                glyphOffsets -= dir * distance
                glyphOffsets[i] -= dir * distance
            }
        }
        invalidate()