kopia lustrzana https://github.com/ryukoposting/Signal-Android
Utilize isSeparating for better foldable device support.
rodzic
b34ca8ca2f
commit
092b30f64f
|
@ -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 {
|
||||
|
|
Ładowanie…
Reference in New Issue