summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Charles Chen <charlesccchen@google.com> 2023-03-29 19:20:25 +0800
committer Charles Chen <charlesccchen@google.com> 2023-03-30 00:55:53 +0800
commit3249642489286a7685285379b2e0216fd60d0b0c (patch)
tree898222d9917203549f92a25dde67c86a99a0b241 /libs/androidfw/ApkParsing.cpp
parent9ed16e1beed64986cb0847439ffeae1dc2f208fc (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 SplitPresenterTest Bug: 263565586 fixes: 275714114 Merged-In: Ibb826c25f072cdffd5b5adcd19571fe446d64f51 Change-Id: Ibb826c25f072cdffd5b5adcd19571fe446d64f51
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions