summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkeunyoung <keunyoung@google.com>2014-08-12 17:50:19 -0700
committerKeun-young Park <keunyoung@google.com>2014-08-13 01:14:19 +0000
commit48054241eb70b4319f8df6575e838f64d6b2c05a (patch)
tree9a0febf14f4e04b089ab2cf79c4ee9131b1f66f3
parente253fabbc76779b26475fe40ea91e7359085920e (diff)
downloadframeworks_base-48054241eb70b4319f8df6575e838f64d6b2c05a.zip
frameworks_base-48054241eb70b4319f8df6575e838f64d6b2c05a.tar.gz
frameworks_base-48054241eb70b4319f8df6575e838f64d6b2c05a.tar.bz2
fix wrong flag check for virtual display
- FLAG_NEVER_BLANK was always set for non-public display bug: 16958538 Change-Id: Ia147ac3ca39d687e60ec4b77726f6b6e4c3aeb3b
-rw-r--r--services/core/java/com/android/server/display/VirtualDisplayAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/display/VirtualDisplayAdapter.java b/services/core/java/com/android/server/display/VirtualDisplayAdapter.java
index 72ac29a..e39f0b1 100644
--- a/services/core/java/com/android/server/display/VirtualDisplayAdapter.java
+++ b/services/core/java/com/android/server/display/VirtualDisplayAdapter.java
@@ -265,7 +265,7 @@ final class VirtualDisplayAdapter extends DisplayAdapter {
mInfo.flags |= DisplayDeviceInfo.FLAG_PRIVATE
| DisplayDeviceInfo.FLAG_NEVER_BLANK;
}
- if ((mInfo.flags & DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR) != 0) {
+ if ((mFlags & DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR) != 0) {
mInfo.flags &= ~DisplayDeviceInfo.FLAG_NEVER_BLANK;
} else {
mInfo.flags |= DisplayDeviceInfo.FLAG_OWN_CONTENT_ONLY;