Always store last inset values in relayoutWindow
Last insets are currently set when updateResizingWindowIfNeeded is called. However, sometimes the precondition in that method fails so the method returns early before updating last inset values. This causes issues if the call stack was from relayoutWindow since relayoutWindow sends the new insets back to the client. The client will then get the new values, but the server didn't store them as the last seen values. This will cause bad behavior because the next time insets are changed, the server may not update the client since it doesn't think anything has changed. This fix ensures that the server always updates the last inset values when the client gets and update to ensure the value are always the same. Fixes: 70518605 Test: Issue in bug is fixed Test: atest WindowManagerSmokeTest Change-Id: Ic70da0b3caa02462df29395799d305eee7baf42d
Loading
Please register or sign in to comment