From 7d10560575254be11471a851bbacca7f4a70ea3b Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Thu, 16 Feb 2017 13:01:45 -0800 Subject: [PATCH] Workaround android SurfaceView bug Fixes #6225 // FREEBIE --- .../securesms/components/webrtc/WebRtcCallScreen.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/components/webrtc/WebRtcCallScreen.java b/src/org/thoughtcrime/securesms/components/webrtc/WebRtcCallScreen.java index 1ed0be4082..99ab5451f8 100644 --- a/src/org/thoughtcrime/securesms/components/webrtc/WebRtcCallScreen.java +++ b/src/org/thoughtcrime/securesms/components/webrtc/WebRtcCallScreen.java @@ -335,7 +335,13 @@ public class WebRtcCallScreen extends FrameLayout implements Recipient.Recipient ViewCompat.animate(callHeader).translationY(0); ViewCompat.animate(status).alpha(1); ViewCompat.animate(endCallButton).translationY(0); - ViewCompat.animate(endCallButton).alpha(1); + ViewCompat.animate(endCallButton).alpha(1).withEndAction(new Runnable() { + @Override + public void run() { + // Note: This is to work around an Android bug, see #6225 + endCallButton.requestLayout(); + } + }); this.minimized = false; }