Merge "Check for mSurfaceController in setWallpaperPositionAndScale" into rvc-dev am: c45de5abfa am: c754a3207d
Change-Id: Ib66c3ef28dc792ba005b605f3d64dd15fa404e95
This commit is contained in:
@@ -1257,19 +1257,25 @@ class WindowStateAnimator {
|
||||
mYOffset = dy;
|
||||
mWallpaperScale = scale;
|
||||
|
||||
try {
|
||||
if (SHOW_LIGHT_TRANSACTIONS) Slog.i(TAG, ">>> OPEN TRANSACTION setWallpaperOffset");
|
||||
mService.openSurfaceTransaction();
|
||||
setWallpaperPositionAndScale(dx, dy, scale, false);
|
||||
} catch (RuntimeException e) {
|
||||
Slog.w(TAG, "Error positioning surface of " + mWin
|
||||
+ " pos=(" + dx + "," + dy + ")", e);
|
||||
} finally {
|
||||
mService.closeSurfaceTransaction("setWallpaperOffset");
|
||||
if (SHOW_LIGHT_TRANSACTIONS) Slog.i(TAG,
|
||||
"<<< CLOSE TRANSACTION setWallpaperOffset");
|
||||
return true;
|
||||
if (mSurfaceController != null) {
|
||||
try {
|
||||
if (SHOW_LIGHT_TRANSACTIONS) {
|
||||
Slog.i(TAG, ">>> OPEN TRANSACTION setWallpaperOffset");
|
||||
}
|
||||
mService.openSurfaceTransaction();
|
||||
setWallpaperPositionAndScale(dx, dy, scale, false);
|
||||
} catch (RuntimeException e) {
|
||||
Slog.w(TAG, "Error positioning surface of " + mWin
|
||||
+ " pos=(" + dx + "," + dy + ")", e);
|
||||
} finally {
|
||||
mService.closeSurfaceTransaction("setWallpaperOffset");
|
||||
if (SHOW_LIGHT_TRANSACTIONS) {
|
||||
Slog.i(TAG, "<<< CLOSE TRANSACTION setWallpaperOffset");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private void setWallpaperPositionAndScale(int dx, int dy, float scale,
|
||||
|
||||
Reference in New Issue
Block a user