Skip to content

Commit f83e8b4

Browse files
committed
Update EmailSwipeActionDrawable to use motion theming
1 parent ba127f0 commit f83e8b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Reply/app/src/main/java/com/materialstudies/reply/ui/home/EmailSwipeActionDrawable.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ import android.graphics.RectF
2727
import android.graphics.drawable.Drawable
2828
import androidx.annotation.ColorInt
2929
import androidx.appcompat.content.res.AppCompatResources
30-
import androidx.interpolator.view.animation.FastOutSlowInInterpolator
3130
import com.materialstudies.reply.R
3231
import com.materialstudies.reply.util.lerp
3332
import com.materialstudies.reply.util.lerpArgb
3433
import com.materialstudies.reply.util.themeColor
34+
import com.materialstudies.reply.util.themeInterpolator
3535
import kotlin.math.abs
3636
import kotlin.math.hypot
3737
import kotlin.math.sin
@@ -79,7 +79,7 @@ class EmailSwipeActionDrawable(context: Context) : Drawable() {
7979
}
8080
private var progressAnim: ValueAnimator? = null
8181
private val dur = context.resources.getInteger(R.integer.reply_motion_duration_medium)
82-
private val interp = FastOutSlowInInterpolator()
82+
private val interp = context.themeInterpolator(R.attr.motionInterpolatorPersistent)
8383

8484
override fun onBoundsChange(bounds: Rect?) {
8585
if (bounds == null) return

0 commit comments

Comments
 (0)