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

Skip to content
Commit eeb1b258 authored by Gaurav Bhola's avatar Gaurav Bhola
Browse files

Add APIs to add/remove local InsetsSourceProviders in WindowContainer.

- updateAboveInsetsState() now updates the entire hierarchy everytime
  it is called.
- updateAboveInsetsState() also takes care of passing the local Insets
  Sources to the insets-state of every children in the subtree of the
  WindowContainer for which the API was called.
- addLocalInsetsSourceProvider() adds a new local InsetsSourceProvider
  to the WindowContainer.
- removeLocalInsetsSourceProvider() removes a local InsetsSourceProvider
- Made InsetsSourceProvider abstract and added a
  WindowContainerInsetsSourceProvider to be used instead. Eventually
  all the window specific logic will be moved to WindowContainerInsets-
  -SourceProvider.

Bug: 199449177
Test: atest InsetsStateControllerTest WindowContainerTests WindowManagerServiceTests
Test: atest ActivityRecordTests
Change-Id: I8d93b739df6d5f18a0d2219d9b00d96a2829746c
parent f60944f1
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