Merge "Revert "Only apply server visible to split screen"" into rvc-dev am: cf1dd0cd49
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11986789 Change-Id: I476ce105dede44e14352f747e09e90362b180238
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user