mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-03-06 04:17:41 +01:00
lets remove the fab icon animation, as it is no longer circle
This commit is contained in:
parent
8ed107bd5b
commit
ecbb2c68d5
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user