Let setFrames can take frames passed from the client
This is a step to move the window layout to the client.
If the frames passed to WindowState#setFrames are from the client, we
need to apply mGlobalScale to them; if the frames are from the server,
we only need to apply mInvGlobalScale to mCompatFrame.
This CL also
- moves logic from mPerformLayout to setFrames, such as updateLastFrames
and layoutLetterbox, because we won't need mPerformLayout when
LOCAL_LAYOUT is enabled.
- removes a redundant performLayout from getNavBarPosition, because we
don't update mNavigationBarPosition in performLayout now.
Bug: 161810301
Test: ApiDemos > App > Activity > Max Aspect Ratio > 1:1, verify navbar
is visible
Change-Id: I0d892b4773d950c4f1f85503c43742f5990f6117
Loading
Please register or sign in to comment