Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbf5164e authored by Yunfan Chen's avatar Yunfan Chen Committed by Automerger Merge Worker
Browse files

Merge "Only apply server visible to split screen" into rvc-dev am: 71f13947...

Merge "Only apply server visible to split screen" into rvc-dev am: 71f13947 am: 1ae74130 am: dee2cc99 am: 870259db

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11929879

Change-Id: I52b5c96fefb3d3e57f071953ba8b3db20e509caf
parents c876fffd 870259db
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -351,9 +351,13 @@ class InsetsSourceProvider {
    }

    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
                && mControlTarget.isClientControlled();
        mSource.setVisible(mServerVisible && (!isClientControlled || mClientVisible));
        mSource.setVisible(mServerVisible
                && ((!isClientControlled && mDisplayContent.inMultiWindowMode())
                    || mClientVisible));
        ProtoLog.d(WM_DEBUG_IME,
                "InsetsSource updateVisibility serverVisible: %s clientVisible: %s",
                mServerVisible, mClientVisible);