Merge pull request #3793 from pr0gr8mm3r/patch-1

Fix attachment menu animation order
This commit is contained in:
Benoit Marty 2021-08-23 10:48:21 +02:00 committed by GitHub
commit ecbf8739cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

1
changelog.d/3793.bugfix Normal file
View File

@ -0,0 +1 @@
Fix order in which the items of the attachement menu appear

View File

@ -103,11 +103,11 @@ class AttachmentTypeSelectorView(context: Context,
animateWindowInCircular(anchor, contentView)
}
animateButtonIn(views.attachmentGalleryButton, ANIMATION_DURATION / 2)
animateButtonIn(views.attachmentCameraButton, ANIMATION_DURATION / 2)
animateButtonIn(views.attachmentFileButton, ANIMATION_DURATION / 4)
animateButtonIn(views.attachmentAudioButton, ANIMATION_DURATION / 2)
animateButtonIn(views.attachmentCameraButton, ANIMATION_DURATION / 4)
animateButtonIn(views.attachmentFileButton, ANIMATION_DURATION / 2)
animateButtonIn(views.attachmentAudioButton, 0)
animateButtonIn(views.attachmentContactButton, ANIMATION_DURATION / 4)
animateButtonIn(views.attachmentStickersButton, 0)
animateButtonIn(views.attachmentStickersButton, ANIMATION_DURATION / 2)
}
override fun dismiss() {