* commit '8075fe48bf345e4014de9b7bee8def5f4373457c': Fix various places that were using the wrong display metrics.
This commit is contained in:
@@ -69,7 +69,7 @@ class ScreenRotationAnimation {
|
||||
mContext = context;
|
||||
mDisplay = display;
|
||||
|
||||
display.getMetrics(mDisplayMetrics);
|
||||
display.getRealMetrics(mDisplayMetrics);
|
||||
|
||||
Bitmap screenshot = Surface.screenshot(0, 0);
|
||||
|
||||
@@ -244,7 +244,7 @@ class ScreenRotationAnimation {
|
||||
break;
|
||||
}
|
||||
|
||||
mDisplay.getMetrics(mDisplayMetrics);
|
||||
mDisplay.getRealMetrics(mDisplayMetrics);
|
||||
|
||||
// Initialize the animations. This is a hack, redefining what "parent"
|
||||
// means to allow supplying the last and next size. In this definition
|
||||
|
||||
@@ -39,7 +39,7 @@ class StrictModeFlash {
|
||||
|
||||
public StrictModeFlash(Display display, SurfaceSession session) {
|
||||
final DisplayMetrics dm = new DisplayMetrics();
|
||||
display.getMetrics(dm);
|
||||
display.getRealMetrics(dm);
|
||||
|
||||
try {
|
||||
mSurface = new Surface(session, 0, "StrictModeFlash", -1, 1, 1, PixelFormat.TRANSLUCENT, 0);
|
||||
|
||||
@@ -52,7 +52,7 @@ class Watermark {
|
||||
|
||||
Watermark(Display display, SurfaceSession session, String[] tokens) {
|
||||
final DisplayMetrics dm = new DisplayMetrics();
|
||||
display.getMetrics(dm);
|
||||
display.getRealMetrics(dm);
|
||||
|
||||
if (false) {
|
||||
Log.i(WindowManagerService.TAG, "*********************** WATERMARK");
|
||||
|
||||
Reference in New Issue
Block a user