Skip to content

Commit ae9d56e

Browse files
authored
fix: In call video flickering on opening emojy drawer #WPB-15549 (#3853)
1 parent eaedf33 commit ae9d56e

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

app/src/main/kotlin/com/wire/android/ui/calling/ongoing/OngoingCallScreen.kt

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ import android.content.pm.PackageManager
2222
import android.view.View
2323
import androidx.activity.compose.BackHandler
2424
import androidx.appcompat.app.AppCompatActivity
25-
import androidx.compose.animation.AnimatedContent
26-
import androidx.compose.animation.slideInVertically
27-
import androidx.compose.animation.slideOutVertically
28-
import androidx.compose.animation.togetherWith
2925
import androidx.compose.foundation.layout.Arrangement
3026
import androidx.compose.foundation.layout.Box
3127
import androidx.compose.foundation.layout.BoxWithConstraints
@@ -496,21 +492,11 @@ private fun OngoingCallContent(
496492
}
497493
}
498494

499-
AnimatedContent(
500-
targetState = showInCallReactionsPanel && !inPictureInPictureMode,
501-
transitionSpec = {
502-
val enter = slideInVertically(initialOffsetY = { it })
503-
val exit = slideOutVertically(targetOffsetY = { it })
504-
enter.togetherWith(exit)
505-
},
506-
label = "InCallReactions"
507-
) { show ->
508-
if (show) {
509-
InCallReactionsPanel(
510-
onReactionClick = onReactionClick,
511-
onMoreClick = { showEmojiPicker = true }
512-
)
513-
}
495+
if (showInCallReactionsPanel && !inPictureInPictureMode) {
496+
InCallReactionsPanel(
497+
onReactionClick = onReactionClick,
498+
onMoreClick = { showEmojiPicker = true }
499+
)
514500
}
515501

516502
EmojiPickerBottomSheet(

0 commit comments

Comments
 (0)