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

Commit f8ba95fc authored by Vladimir Komsiyski's avatar Vladimir Komsiyski
Browse files

Make DESTROY_CONTENT_ON_REMOVAL default VDM flag.

Again.

Test: presubmit
Bug: 294837146
Change-Id: I46d65318e45e4f87cc74ce7df000bef77d17c965
parent cdc2faeb
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ final class VirtualDeviceImpl extends IVirtualDevice.Stub

    private static final int DEFAULT_VIRTUAL_DISPLAY_FLAGS =
            DisplayManager.VIRTUAL_DISPLAY_FLAG_TOUCH_FEEDBACK_DISABLED
                    | DisplayManager.VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL
                    | DisplayManager.VIRTUAL_DISPLAY_FLAG_SUPPORTS_TOUCH
                    | DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_FOCUS;

@@ -283,10 +284,6 @@ final class VirtualDeviceImpl extends IVirtualDevice.Stub
        if (mParams.getLockState() == VirtualDeviceParams.LOCK_STATE_ALWAYS_UNLOCKED) {
            flags |= DisplayManager.VIRTUAL_DISPLAY_FLAG_ALWAYS_UNLOCKED;
        }
        if (mParams.getDevicePolicy(VirtualDeviceParams.POLICY_TYPE_RECENTS)
                == VirtualDeviceParams.DEVICE_POLICY_CUSTOM) {
            flags |= DisplayManager.VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL;
        }
        return flags;
    }