Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e5ce8365 authored by Christian Göllner's avatar Christian Göllner Committed by Android Build Coastguard Worker
Browse files

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
(cherry picked from commit 6928a934)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5e462004771fb5fa88c0333b90f2cc595f8e6765)
Merged-In: I3c6be62ef673b674f3305ae254494dd41c5cce29
Change-Id: I3c6be62ef673b674f3305ae254494dd41c5cce29
parent fda901d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment