OSDN Git Service

Add comment about flag VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL
authorrongliu <rongliu@google.com>
Fri, 6 Oct 2017 18:01:02 +0000 (11:01 -0700)
committerrongliu <rongliu@google.com>
Fri, 6 Oct 2017 18:20:51 +0000 (11:20 -0700)
as recommended.

Change-Id: I3778eed6f91e3ebf70683f40389c605648444b99
Bug: 67420451
Test: Only add comment.

core/java/android/hardware/display/DisplayManager.java

index ae4f05a..b2af44e 100644 (file)
@@ -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
      */