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
Loading
Please register or sign in to comment