Skip to content
Commit 097829d3 authored by Oleg Blinnikov's avatar Oleg Blinnikov
Browse files

DisplayPolicy: Check that window provided insets

This is the fix to a problem in WindowState.removeIfPossible(boolean)

The core of the problem is that WindowState.removeImmediately call removes
providedInsetsSources, but these are important for
WindowState.providesNonDecorInsets to check if the window provided
insets.

This solution makes the call to WindowState.providesNonDecorInsets
before calling WindowState.removeImmediately

The result is that sendNewConfiguration consistently triggered during
removal of navbar.

Bug: 211763738
Test: atest WindowStateTests
Change-Id: I2b92688437ffab02f4aee8519eb2a8e3deeb6484
parent b3fe3948
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