summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Christian Göllner <chrisgollner@google.com> 2023-06-23 12:49:01 +0100
committer Christian Göllner <chrisgollner@google.com> 2023-06-27 11:21:28 +0000
commit5e462004771fb5fa88c0333b90f2cc595f8e6765 (patch)
treec455e248b721730269e02a45864a68fd1ce2cf5f /libs/androidfw/ApkParsing.cpp
parent68c74f4c51f3d630b1f1d5293603a006c7911ca2 (diff)
Fix letterbox overlapping with status bar icons after rotating device
When the device rotates or status bar icon bounds change, we re-use the previously cached letterbox details that were sent from WindowManager. Also, when calculating whether there was an overlap between the icons and the letterbox, we were using the Rect#intersect API instead of Rect#instersects, which actually mutates the Rect, which was then cached, and used for the next calculation. The fix is to use the API that doesn't mutate the Rect. Fixes: 287508741 Test: LetterboxAppearanceCalculatorTest.kt Change-Id: I3c6be62ef673b674f3305ae254494dd41c5cce29 (cherry picked from commit 6928a93447ae54c64ed22cf904e3fe6b1639edfd)
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions