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