diff options
| author | 2023-03-29 19:20:25 +0800 | |
|---|---|---|
| committer | 2023-03-29 23:32:55 +0800 | |
| commit | a296b769b2f772f27bea4d8db59f8218d3973bf2 (patch) | |
| tree | 060513511a3779b1e29bcc49c1f7f47910ab8a13 /libs/androidfw/ObbFile.cpp | |
| parent | 6745428bc6909882f2d8e4c6a6f0d81f88728a06 (diff) | |
Fix NPE when using hinge split type without FoldingFeature
Before this CL, we only compute SplitType in getRelBounds.
However, we actually obtain the bounds to check minimum
dimensions in #computeSplitAttributes.
This CL moves the splitType calculation to
#getPrimaryBounds and #getSecondaryBounds to cover the
minimum dimensions to fix NPE.
Test: atest ActivityEmbeddingBoundsTests
on device without foldingFeature
Test: atest SplitPresenterTest
Bug: 263565586
Change-Id: Ibb826c25f072cdffd5b5adcd19571fe446d64f51
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions