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

Commit c698e729 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Adds DESTROY_CONTENT_ON_REMOVAL to VirtualDisplay flags"

parents b5e58c24 97fcc180
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -361,7 +361,8 @@ public class ActivityView extends ViewGroup {
                DISPLAY_NAME + "@" + System.identityHashCode(this),
                DISPLAY_NAME + "@" + System.identityHashCode(this),
                width, height, getBaseDisplayDensity(), mTmpSurface,
                width, height, getBaseDisplayDensity(), mTmpSurface,
                DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC
                DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC
                        | DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY);
                        | DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY
                        | DisplayManager.VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL);
        if (mVirtualDisplay == null) {
        if (mVirtualDisplay == null) {
            Log.e(TAG, "Failed to initialize ActivityView");
            Log.e(TAG, "Failed to initialize ActivityView");
            return;
            return;