Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: In call video flickering on opening emojy drawer #WPB-15549 #3853

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading