Skip to content

Commit

Permalink
Add ObjectAnimator convenience wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
janseeger committed Dec 16, 2024
1 parent 4cf3409 commit 7df92f7
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package de.sipgate.dachlatten.datetime

import android.animation.ObjectAnimator
import kotlin.time.Duration

@Suppress("unused")
fun ObjectAnimator.setDuration(duration: Duration): ObjectAnimator =
setDuration(duration.inWholeMilliseconds)

0 comments on commit 7df92f7

Please sign in to comment.