Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarta committed Feb 13, 2025
1 parent ec84f1d commit 7e3dddf
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package dev.hotwire.navigation.util

import android.animation.ArgbEvaluator
import android.animation.ValueAnimator
import android.content.Context
import android.util.TypedValue
import android.view.View
Expand Down Expand Up @@ -38,15 +36,6 @@ internal fun Context.colorFromThemeAttr(
return attrValue
}

internal fun Int.animateColorTo(toColor: Int, duration: Long = 150, onUpdate: (Int) -> Unit) {
ValueAnimator.ofObject(ArgbEvaluator(), this, toColor).apply {
this.duration = duration
this.addUpdateListener {
val color = it.animatedValue as Int?
color?.let { onUpdate(color) }
}
}.start()
}
fun View.applyDefaultWindowInsets() {
ViewCompat.setOnApplyWindowInsetsListener(this) { v, insets ->
val insetTypes = WindowInsetsCompat.Type.systemBars() or WindowInsetsCompat.Type.ime()
Expand Down

0 comments on commit 7e3dddf

Please sign in to comment.