Skip to content

Commit

Permalink
Add ViewPropertyAnimator convenience wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
janseeger committed Dec 16, 2024
1 parent 178a0eb commit 129b51d
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.view.ViewPropertyAnimator
import kotlin.time.Duration

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

0 comments on commit 129b51d

Please sign in to comment.