summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-09-24 15:01:47 -0700
committerJeff Brown <jeffbrown@google.com>2012-09-24 15:02:15 -0700
commit8d0243a3d0269d3a57d90eb2e7b12b41f53b27d9 (patch)
tree742bb4c5c7d2b65fefac6e6f692736e2cb7c0be9 /core/java/android
parent14a9f2b9d23976b7aae5330b56c633a03181c710 (diff)
downloadframeworks_base-8d0243a3d0269d3a57d90eb2e7b12b41f53b27d9.zip
frameworks_base-8d0243a3d0269d3a57d90eb2e7b12b41f53b27d9.tar.gz
frameworks_base-8d0243a3d0269d3a57d90eb2e7b12b41f53b27d9.tar.bz2
Fix surface view on secondary display.
Bug: 7183618 Change-Id: I8d743b5db8f362afb97f720846d990f9a722b3bd
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/SurfaceView.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/view/SurfaceView.java b/core/java/android/view/SurfaceView.java
index 973c7f6..3be63d5 100644
--- a/core/java/android/view/SurfaceView.java
+++ b/core/java/android/view/SurfaceView.java
@@ -456,11 +456,12 @@ public class SurfaceView extends View {
}
if (mWindow == null) {
+ Display display = getDisplay();
mWindow = new MyWindow(this);
mLayout.type = mWindowType;
mLayout.gravity = Gravity.START|Gravity.TOP;
mSession.addToDisplayWithoutInputChannel(mWindow, mWindow.mSeq, mLayout,
- mVisible ? VISIBLE : GONE, Display.DEFAULT_DISPLAY, mContentInsets);
+ mVisible ? VISIBLE : GONE, display.getDisplayId(), mContentInsets);
}
boolean realSizeChanged;