mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Utilize isSeparating for better foldable device support.
This commit is contained in:
committed by
Cody Henthorne
parent
b34ca8ca2f
commit
092b30f64f
@@ -836,7 +836,7 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
|
|||||||
if (feature.isPresent()) {
|
if (feature.isPresent()) {
|
||||||
FoldingFeature foldingFeature = (FoldingFeature) feature.get();
|
FoldingFeature foldingFeature = (FoldingFeature) feature.get();
|
||||||
Rect bounds = foldingFeature.getBounds();
|
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");
|
Log.d(TAG, "OnWindowLayoutInfo accepted: ensure call view is in table-top display mode");
|
||||||
viewModel.setFoldableState(WebRtcControls.FoldableState.folded(bounds.top));
|
viewModel.setFoldableState(WebRtcControls.FoldableState.folded(bounds.top));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user