Files
frameworks_base/core/java/android
Riddle Hsu e59483dc1c 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
2022-08-08 23:06:28 +08:00
..
…
2022-06-23 17:33:10 +00:00
…