Utilize isSeparating for better foldable device support.

fork-5.53.8
Cesar Valiente 2021-12-15 19:02:25 +01:00 zatwierdzone przez Cody Henthorne
rodzic b34ca8ca2f
commit 092b30f64f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 {