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
Loading
Please register or sign in to comment