Skip to content
Commit ead6d20c authored by Tiger Huang's avatar Tiger Huang
Browse files

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
parent 5b19a158
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment