lets remove the fab icon animation, as it is no longer circle

This commit is contained in:
tibbi 2022-07-26 15:33:15 +02:00
parent 8ed107bd5b
commit ecbb2c68d5

View file

@ -959,26 +959,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
R.drawable.ic_today_vector
}
val newDrawable = resources.getColoredDrawableWithColor(newDrawableId, getProperPrimaryColor())
val duration = 75L
var rotation = 90f
if (showPlus) {
rotation *= -1
}
calendar_fab.animate()
.rotationBy(rotation)
.setDuration(duration)
.withEndAction {
calendar_fab.rotation = -rotation
calendar_fab.setImageDrawable(newDrawable)
calendar_fab.animate()
.rotationBy(rotation)
.setDuration(duration)
.start()
}
.start()
calendar_fab.setImageDrawable(newDrawable)
}
private fun openNewEvent() {