Skip to content
Commit 51311816 authored by Adrian Roos's avatar Adrian Roos Committed by Jorim Jaggi
Browse files

WM: Fix broken layout hint calculation

Fixes issues with the layout hint calculation that would end up
dispatching negative insets to applications and either causing a WTF
or previous to the workaround crashing apps.

The somewhat complex way of calculating insets ad-hoc is replaced with
a much clearer and less error prone approach that mirrors how insets
are actually calculated during regular layout. Doing that conveniently
eliminates the code that was buggy in the first place (the intersect in
calculateRelevantTaskInsets did not properly check for the non-interecting
case).

Change-Id: I05682943c7174a6c5a73862152bfbe4876f517f7
Fixes: 110834518
Test: atest PhoneWindowManagerLayoutTest
parent f8585dcb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment