From 092b30f64f4e8eaf29a133e2901a312d9e52e9d6 Mon Sep 17 00:00:00 2001 From: Cesar Valiente Date: Wed, 15 Dec 2021 19:02:25 +0100 Subject: [PATCH] Utilize isSeparating for better foldable device support. --- .../java/org/thoughtcrime/securesms/WebRtcCallActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/WebRtcCallActivity.java b/app/src/main/java/org/thoughtcrime/securesms/WebRtcCallActivity.java index 554da0d4a..42a39e5e1 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/WebRtcCallActivity.java +++ b/app/src/main/java/org/thoughtcrime/securesms/WebRtcCallActivity.java @@ -836,7 +836,7 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan if (feature.isPresent()) { FoldingFeature foldingFeature = (FoldingFeature) feature.get(); Rect bounds = foldingFeature.getBounds(); - if (foldingFeature.getState() == FoldingFeature.State.HALF_OPENED && bounds.top == bounds.bottom) { + if (foldingFeature.isSeparating()) { Log.d(TAG, "OnWindowLayoutInfo accepted: ensure call view is in table-top display mode"); viewModel.setFoldableState(WebRtcControls.FoldableState.folded(bounds.top)); } else {