diff options
| author | 2024-07-22 12:54:02 +0000 | |
|---|---|---|
| committer | 2024-08-02 08:12:44 +0000 | |
| commit | 6c4ac83101991e92ecfddd3a86bce6464b0bb37b (patch) | |
| tree | fdff927c5e32cdd237b6cc52132ebf22e2a3424b /libs/androidfw/StringPool.cpp | |
| parent | 096cbaa97f6059c4aef41df2e31baa2b67c054c3 (diff) | |
Create inset adjusted alternative to `topActivityLetterboxHeight`
`topActivityLetterboxHeight` does not exclude insets and thus
inaccurately represents the apps true height. For non resizable
applications we must calculate their aspect ratio in order to respect
in throughout desktop windowing. `topActivityLetterboxHeight` when used
leads the wrong aspect ratio and causes the application to no fit the
window leading to black bars being shown.
Instead introduce `topActivityLetterboxAppHeight` and
`topActivityLetterboxAppWidth` (for consistency) which reflect the
configuration appBouunds as apposed to the bounds.
Flag: NONE(bug fix)
Test: presubmit
Fixes: 354918868
Change-Id: I18703d287fd77a640a30d45d9f927f41b3c91b43
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions