Small step towards supporting multiple displays
Change-Id: I353449c2b464394988c7e0203656b5851a0c9127
diff --git a/services/java/com/android/server/wm/WindowAnimator.java b/services/java/com/android/server/wm/WindowAnimator.java
index 0b76fec..b0c858c 100644
--- a/services/java/com/android/server/wm/WindowAnimator.java
+++ b/services/java/com/android/server/wm/WindowAnimator.java
@@ -16,6 +16,7 @@
import android.os.SystemClock;
import android.util.Log;
import android.util.Slog;
+import android.view.Display;
import android.view.Surface;
import android.view.WindowManagerPolicy;
import android.view.animation.Animation;
@@ -121,8 +122,9 @@
}
};
- mWindowAnimationBackgroundSurface = new DimSurface(mService.mFxSession);
- mDimAnimator = new DimAnimator(mService.mFxSession);
+ mWindowAnimationBackgroundSurface =
+ new DimSurface(mService.mFxSession, Display.DEFAULT_DISPLAY);
+ mDimAnimator = new DimAnimator(mService.mFxSession, Display.DEFAULT_DISPLAY);
}
/** Locked on mAnimToLayout */