mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Prevent overlay from opening for unopened gifts.
This commit is contained in:
committed by
Cody Henthorne
parent
e03b54ac0f
commit
02ea5ac806
@@ -53,6 +53,10 @@ class OpenableGiftItemDecoration(context: Context) : RecyclerView.ItemDecoration
|
||||
private val bowHeight = DimensionUnit.DP.toPixels(60f)
|
||||
private val bowDrawable: Drawable = AppCompatResources.getDrawable(context, R.drawable.ic_gift_bow)!!
|
||||
|
||||
fun hasOpenedGiftThisSession(messageRecordId: Long): Boolean {
|
||||
return messageIdsOpenedThisSession.contains(messageRecordId)
|
||||
}
|
||||
|
||||
override fun onDestroy(owner: LifecycleOwner) {
|
||||
super.onDestroy(owner)
|
||||
animationState.clear()
|
||||
|
||||
Reference in New Issue
Block a user