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

Set fit insets type for decor insets test

Otherwise because since the key of InsetsState#mSources is based
on hashcode (InsetsSource.createId), the order to iterate mSources
may be indeterministic for the same insets type.
Then WindowLayout#computeFrames may compute different results
according to the hashcode, that causes the test to be flaky.

By setting fit insets type to 0, the insets won't affect each other.

Fix: 284435531
Test: DisplayPolicyTests#testUpdateDisplayConfigurationByDecor

Change-Id: I30ea22c051f84264a03d0b698d50d83c62059869
parent 25aa2d3c
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