Workaround android SurfaceView bug

Fixes #6225
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-02-16 13:01:45 -08:00
parent 0adce89eec
commit 7d10560575

View File

@ -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;
}