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

Commit ad910978 authored by Lingyu Feng's avatar Lingyu Feng
Browse files

Disable content mode switch on wifi displays

This change disables desktop mode on wifi displays.
Note that activities / tasks are still allowed to be launched on wifi
display after this change.

Bug: 436722344
Test: manaually
Flag: EXEMPT bug fix
Change-Id: I6897dce24468eafa779c3f379b79bd14eabe8d92
parent b238d2d1
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -666,12 +666,6 @@ final class WifiDisplayAdapter extends DisplayAdapter {
                mInfo.setAssumedDensityForExternalDisplay(mWidth, mHeight);
                // The display is trusted since it is created by system.
                mInfo.flags |= DisplayDeviceInfo.FLAG_TRUSTED;
                if (getFeatureFlags().isDisplayContentModeManagementEnabled()) {
                    // The wifi display is allowed to switch content mode since FLAG_PRIVATE,
                    // FLAG_OWN_CONTENT_ONLY, and FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS are not
                    // enabled in WifiDisplayDevice#getDisplayDeviceInfoLocked().
                    mInfo.flags |= DisplayDeviceInfo.FLAG_ALLOWS_CONTENT_MODE_SWITCH;
                }
                mInfo.displayShape =
                        DisplayShape.createDefaultDisplayShape(mInfo.width, mInfo.height, false);
            }