mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
lets remove the fab icon animation, as it is no longer circle
This commit is contained in:
@@ -959,26 +959,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
R.drawable.ic_today_vector
|
R.drawable.ic_today_vector
|
||||||
}
|
}
|
||||||
val newDrawable = resources.getColoredDrawableWithColor(newDrawableId, getProperPrimaryColor())
|
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.setImageDrawable(newDrawable)
|
||||||
|
|
||||||
calendar_fab.animate()
|
|
||||||
.rotationBy(rotation)
|
|
||||||
.setDuration(duration)
|
|
||||||
.start()
|
|
||||||
}
|
|
||||||
.start()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun openNewEvent() {
|
private fun openNewEvent() {
|
||||||
|
Reference in New Issue
Block a user