Skip to content

Commit

Permalink
Utilize fade instead of just setting alpha to 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-signal committed Feb 15, 2023
1 parent 9610339 commit 6f1b03e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class MediaPreviewV2Activity : PassphraseRequiredActivity(), VoiceNoteMediaContr
}.distinctUntilChanged().subscribe { (isInSharedAnimation, loadState) ->
if (!isInSharedAnimation && loadState == MediaPreviewV2State.LoadState.MEDIA_READY) {
transitionImageView.clearAnimation()
transitionImageView.alpha = 0f
transitionImageView.animate().alpha(0f)
}
}

Expand Down

0 comments on commit 6f1b03e

Please sign in to comment.