kopia lustrzana https://github.com/ryukoposting/Signal-Android
Ensure callback is registered for shaking gifts.
rodzic
a0b89051cf
commit
307be5c75e
|
@ -72,7 +72,6 @@ class OpenableGiftItemDecoration(context: Context) : RecyclerView.ItemDecoration
|
||||||
notAnimated.filterNot { messageIdsOpenedThisSession.contains(it.getGiftId()) }.forEach { child ->
|
notAnimated.filterNot { messageIdsOpenedThisSession.contains(it.getGiftId()) }.forEach { child ->
|
||||||
val projection = child.getOpenableGiftProjection(false)
|
val projection = child.getOpenableGiftProjection(false)
|
||||||
if (projection != null) {
|
if (projection != null) {
|
||||||
if (messageIdsShakenThisSession.contains(child.getGiftId())) {
|
|
||||||
child.setOpenGiftCallback {
|
child.setOpenGiftCallback {
|
||||||
child.clearOpenGiftCallback()
|
child.clearOpenGiftCallback()
|
||||||
val proj = it.getOpenableGiftProjection(true)
|
val proj = it.getOpenableGiftProjection(true)
|
||||||
|
@ -83,6 +82,7 @@ class OpenableGiftItemDecoration(context: Context) : RecyclerView.ItemDecoration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (messageIdsShakenThisSession.contains(child.getGiftId())) {
|
||||||
drawGiftBox(c, projection)
|
drawGiftBox(c, projection)
|
||||||
drawGiftBow(c, projection)
|
drawGiftBow(c, projection)
|
||||||
} else {
|
} else {
|
||||||
|
|
Ładowanie…
Reference in New Issue