Skip to content

Commit

Permalink
Sets visibility to gone when not a milestone to prevent hiding other …
Browse files Browse the repository at this point in the history
…notification types
  • Loading branch information
Antonis Lilis committed Mar 22, 2024
1 parent c10060b commit 2a7e26f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,12 @@ class NotificationsDetailListFragment : ListFragment(), NotificationFragment {
showErrorToastAndFinish()
}

val animation = view?.findViewById<LottieAnimationView>(R.id.confetti)
if (note?.isViewMilestoneType == true) {
view?.findViewById<LottieAnimationView>(R.id.confetti)?.playAnimation()
animation?.visibility = View.VISIBLE
animation?.playAnimation()
} else {
animation?.visibility = View.GONE
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
android:layout_height="match_parent"
android:layout_gravity="top"
android:scaleType="centerCrop"
android:visibility="gone"
app:lottie_autoPlay="false"
app:lottie_loop="false"
app:lottie_rawRes="@raw/confetti" />
Expand Down

0 comments on commit 2a7e26f

Please sign in to comment.