Skip to content

Commit

Permalink
fix: In call video flickering on opening emojy drawer #WPB-15549 (#3853)
Browse files Browse the repository at this point in the history
  • Loading branch information
borichellow authored Feb 3, 2025
1 parent eaedf33 commit ae9d56e
Showing 1 changed file with 5 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ import android.content.pm.PackageManager
import android.view.View
import androidx.activity.compose.BackHandler
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.slideInVertically
import androidx.compose.animation.slideOutVertically
import androidx.compose.animation.togetherWith
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxWithConstraints
Expand Down Expand Up @@ -496,21 +492,11 @@ private fun OngoingCallContent(
}
}

AnimatedContent(
targetState = showInCallReactionsPanel && !inPictureInPictureMode,
transitionSpec = {
val enter = slideInVertically(initialOffsetY = { it })
val exit = slideOutVertically(targetOffsetY = { it })
enter.togetherWith(exit)
},
label = "InCallReactions"
) { show ->
if (show) {
InCallReactionsPanel(
onReactionClick = onReactionClick,
onMoreClick = { showEmojiPicker = true }
)
}
if (showInCallReactionsPanel && !inPictureInPictureMode) {
InCallReactionsPanel(
onReactionClick = onReactionClick,
onMoreClick = { showEmojiPicker = true }
)
}

EmojiPickerBottomSheet(
Expand Down

0 comments on commit ae9d56e

Please sign in to comment.