Skip to content
Commit 430b258b authored by ryanlwlin's avatar ryanlwlin
Browse files

Fix incorrect boundary/appearance after folding the device

When the device is folded, the screen size is changed.
We need to compute the magnification frame and its boundary
based on current window metrics. Besides, to keep
the magnified center, we rescale the former center and apply it
to the center of the new magnification frame.

Folding the device also triggers orietation changes, which is
the unexpected case. To avoid handling this case, we also check
whethe it is the window hieght/width  exchanging case.

Bug: 185728667
Bug: 185536537
Bug: 180054792
Test: atest WindowMagnificationControllerTest
      manually test with follow cases
      1. change display size or font size
      2. orientate the device
Change-Id: If2a93ad14bf8e07cf149180e639b35fc0bedfd10
parent ba2d2a3d
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