From 3e9f972fde01f7e321f68f4541c92e5e75146de9 Mon Sep 17 00:00:00 2001 From: rongliu Date: Fri, 6 Oct 2017 11:01:02 -0700 Subject: [PATCH] Add comment about flag VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL as recommended. Change-Id: I3778eed6f91e3ebf70683f40389c605648444b99 Bug: 67420451 Test: Only add comment. --- core/java/android/hardware/display/DisplayManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/hardware/display/DisplayManager.java b/core/java/android/hardware/display/DisplayManager.java index ae4f05a2ef94a..b2af44ecf0fd8 100644 --- a/core/java/android/hardware/display/DisplayManager.java +++ b/core/java/android/hardware/display/DisplayManager.java @@ -282,6 +282,10 @@ public final class DisplayManager { * Virtual display flag: Indicates that the contents will be destroyed once * the display is removed. * + * Public virtual displays without this flag will move their content to main display + * stack once they're removed. Private vistual displays will always destroy their + * content on removal even without this flag. + * * @see #createVirtualDisplay * @hide */