diff options
| author | 2023-07-27 19:33:22 +0800 | |
|---|---|---|
| committer | 2023-07-27 21:29:14 +0800 | |
| commit | 2d44a29fa9e7030efbb18b5e56d0ebbd3b3c53b9 (patch) | |
| tree | 0dcc0a265d6f7f14004a996082ca61fe3b309c71 /libs/androidfw/ZipFileRO.cpp | |
| parent | bb33d7cb25b44bc2185437e5c4bf07fdfb055ca5 (diff) | |
Refine equals of both InsetsState and WindowInsets
InsetsState:
It had logic errors in InsetsState#equals while excludesCaptionBar or
excludesInvisibleIme is true. For example, if the last source in one
InsetsState.mSources is captionBar() or ime(), but the other one doesn't
have a source of the same type, the type of source won't be excluded,
which make it always returns false, regardless of excludesCaptionBar or
excludesInvisibleIme.
WindowInsets:
Two WindowInsets could be considered as non-equal while they provide the
same insets of each type from WindowInsets#getInsets if one WindowInsets
has Insets.NONE for a type and the other one has null for the same type.
This CL fixes both problems.
Fix: 284406283
Test: OnApplyWindowInsetsListenerTest
Test: atest InsetsStateTest
Change-Id: I31b078737def461bd51eab9bb1114307a8ab994f
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions