Skip to content
Commit e59483dc authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Detect layout change of paramsForRotation precisely

WindowManager.LayoutParams doesn't override equals(). It returns
false if the instances are different. So after writing/reading
from parcel, even if the fields are identical, the comparison
of Arrays.equals(paramsForRotation, o.paramsForRotation) always
returns false.

This is the first step as a signal to decide whether the screen
configuration needs to be recomputed according to if there is a
layout change from decor windows.

Bug: 238399969
Test: atest FrameworksCoreTests:android.view.WindowParamsTest

Change-Id: I82582ff48064bbf009403d2c0980a69157860f90
parent c2b6d449
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