summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author rongliu <rongliu@google.com> 2017-10-06 23:42:27 +0000
committer android-build-merger <android-build-merger@google.com> 2017-10-06 23:42:27 +0000
commitd6230d3d2a32b1250d43699865c83e3fdc486029 (patch)
treec765a5835813195056db52302537ca1577706106
parent079a9c375b6cc66fc0f3cc687c12563e1c75be2d (diff)
parentbf070a35cd952ccf5e36d556a65e5cfc8ab317c2 (diff)
Merge "Add comment about flag VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL as recommended." into oc-mr1-dev
am: bf070a35cd Change-Id: I88f24ed82459b4cbc03c92a96774636a47509715
-rw-r--r--core/java/android/hardware/display/DisplayManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/hardware/display/DisplayManager.java b/core/java/android/hardware/display/DisplayManager.java
index ae4f05a2ef94..b2af44ecf0fd 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
*/