Merge "Revert "Only apply server visible to split screen"" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-24 23:07:48 +00:00
committed by Android (Google) Code Review

View File

@@ -351,13 +351,9 @@ class InsetsSourceProvider {
} }
private void updateVisibility() { private void updateVisibility() {
// TODO(b/159699383): remove the client controlled check when the insets visibility can be
// driven by the system UI.
final boolean isClientControlled = mControlTarget != null final boolean isClientControlled = mControlTarget != null
&& mControlTarget.isClientControlled(); && mControlTarget.isClientControlled();
mSource.setVisible(mServerVisible mSource.setVisible(mServerVisible && (!isClientControlled || mClientVisible));
&& ((!isClientControlled && mDisplayContent.inMultiWindowMode())
|| mClientVisible));
ProtoLog.d(WM_DEBUG_IME, ProtoLog.d(WM_DEBUG_IME,
"InsetsSource updateVisibility serverVisible: %s clientVisible: %s", "InsetsSource updateVisibility serverVisible: %s clientVisible: %s",
mServerVisible, mClientVisible); mServerVisible, mClientVisible);