Utilze visibility instead of isVisible for restoration of view visibility after long press.
This commit is contained in:
parent
5bdd3ce47a
commit
c0fed1498e
1 changed files with 2 additions and 3 deletions
|
@ -6,7 +6,6 @@
|
|||
package org.thoughtcrime.securesms.conversation.v2.items
|
||||
|
||||
import android.graphics.Canvas
|
||||
import androidx.core.view.isVisible
|
||||
import org.thoughtcrime.securesms.util.visible
|
||||
|
||||
/**
|
||||
|
@ -43,12 +42,12 @@ class V2ConversationItemSnapshotStrategy(
|
|||
it.scaleY = 1f
|
||||
}
|
||||
|
||||
val originalIsVisible = viewsToHide.associateWith { it.isVisible }
|
||||
val originalVisibility = viewsToHide.associateWith { it.visibility }
|
||||
viewsToHide.forEach { it.visible = false }
|
||||
|
||||
binding.root.draw(canvas)
|
||||
|
||||
originalIsVisible.forEach { (view, isVisible) -> view.isVisible = isVisible }
|
||||
originalVisibility.forEach { (view, visibility) -> view.visibility = visibility }
|
||||
originalScales.forEach { view, (scaleX, scaleY) ->
|
||||
view.scaleX = scaleX
|
||||
view.scaleY = scaleY
|
||||
|
|
Loading…
Add table
Reference in a new issue