am 03850591: Handle outsets when resized is called due to rotation.
* commit '03850591954faf5280fd581dd04cd6958eda0124': Handle outsets when resized is called due to rotation.
This commit is contained in:
@@ -273,8 +273,8 @@ public abstract class WallpaperService extends Service {
|
|||||||
public void resized(Rect frame, Rect overscanInsets, Rect contentInsets,
|
public void resized(Rect frame, Rect overscanInsets, Rect contentInsets,
|
||||||
Rect visibleInsets, Rect stableInsets, Rect outsets, boolean reportDraw,
|
Rect visibleInsets, Rect stableInsets, Rect outsets, boolean reportDraw,
|
||||||
Configuration newConfig) {
|
Configuration newConfig) {
|
||||||
Message msg = mCaller.obtainMessageI(MSG_WINDOW_RESIZED,
|
Message msg = mCaller.obtainMessageIO(MSG_WINDOW_RESIZED,
|
||||||
reportDraw ? 1 : 0);
|
reportDraw ? 1 : 0, outsets);
|
||||||
mCaller.sendMessage(msg);
|
mCaller.sendMessage(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1194,6 +1194,7 @@ public abstract class WallpaperService extends Service {
|
|||||||
} break;
|
} break;
|
||||||
case MSG_WINDOW_RESIZED: {
|
case MSG_WINDOW_RESIZED: {
|
||||||
final boolean reportDraw = message.arg1 != 0;
|
final boolean reportDraw = message.arg1 != 0;
|
||||||
|
mEngine.mOutsets.set((Rect) message.obj);
|
||||||
mEngine.updateSurface(true, false, reportDraw);
|
mEngine.updateSurface(true, false, reportDraw);
|
||||||
mEngine.doOffsetsChanged(true);
|
mEngine.doOffsetsChanged(true);
|
||||||
} break;
|
} break;
|
||||||
|
|||||||
@@ -9563,6 +9563,7 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
if (w.mContentInsetsChanged
|
if (w.mContentInsetsChanged
|
||||||
|| w.mVisibleInsetsChanged
|
|| w.mVisibleInsetsChanged
|
||||||
|| winAnimator.mSurfaceResized
|
|| winAnimator.mSurfaceResized
|
||||||
|
|| w.mOutsetsChanged
|
||||||
|| configChanged) {
|
|| configChanged) {
|
||||||
if (DEBUG_RESIZE || DEBUG_ORIENTATION) {
|
if (DEBUG_RESIZE || DEBUG_ORIENTATION) {
|
||||||
Slog.v(TAG, "Resize reasons for w=" + w + ": "
|
Slog.v(TAG, "Resize reasons for w=" + w + ": "
|
||||||
@@ -9572,6 +9573,8 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
+ " " + w.mVisibleInsets.toShortString()
|
+ " " + w.mVisibleInsets.toShortString()
|
||||||
+ " stableInsetsChanged=" + w.mStableInsetsChanged
|
+ " stableInsetsChanged=" + w.mStableInsetsChanged
|
||||||
+ " " + w.mStableInsets.toShortString()
|
+ " " + w.mStableInsets.toShortString()
|
||||||
|
+ " outsetsChanged=" + w.mOutsetsChanged
|
||||||
|
+ " " + w.mOutsets.toShortString()
|
||||||
+ " surfaceResized=" + winAnimator.mSurfaceResized
|
+ " surfaceResized=" + winAnimator.mSurfaceResized
|
||||||
+ " configChanged=" + configChanged);
|
+ " configChanged=" + configChanged);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user