diff options
author | Wale Ogunwale <ogunwale@google.com> | 2015-06-05 16:55:33 -0700 |
---|---|---|
committer | Wale Ogunwale <ogunwale@google.com> | 2015-06-06 11:26:33 -0700 |
commit | 26698514fbac587675221149aca98f3ea6414d55 (patch) | |
tree | ab85e311e5ccdd38730bf2f79d40c6d8247c4ae6 /core/java/android/view/Display.java | |
parent | 18d669dc597dc4997ee8d96f38cf138ae31a0cdf (diff) | |
download | frameworks_base-26698514fbac587675221149aca98f3ea6414d55.zip frameworks_base-26698514fbac587675221149aca98f3ea6414d55.tar.gz frameworks_base-26698514fbac587675221149aca98f3ea6414d55.tar.bz2 |
Use DisplayAdjustments when creating display in ResourceManager
We were previous only taking the Configuration into account when
creating Display objects in the ResourceManager. This led to the
Display object not containing critical CompatibilityInfo. We now
take the entire DisplayAdjustment into account.
Bug: 21637615
Change-Id: Ide5ff49bfa12791ad17993764f312836216b1dd8
Diffstat (limited to 'core/java/android/view/Display.java')
-rw-r--r-- | core/java/android/view/Display.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/view/Display.java b/core/java/android/view/Display.java index 5a587fe..35c4192 100644 --- a/core/java/android/view/Display.java +++ b/core/java/android/view/Display.java @@ -89,6 +89,11 @@ public final class Display { public static final int DEFAULT_DISPLAY = 0; /** + * Invalid display id. + */ + public static final int INVALID_DISPLAY = -1; + + /** * Display flag: Indicates that the display supports compositing content * that is stored in protected graphics buffers. * <p> |