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

Skip to content
Commit 5c6b6ce4 authored by Nick Chameyev's avatar Nick Chameyev
Browse files

Use application context in DeviceFoldStateProvider

Get application context from the passed context in
DeviceFoldStateProvider as in case of using display context
the configuration won't be updated automatically.

We use display context in live wallpapers because Service
context doesn't return a display (Context#getDisplay) as Service
is not a UI context.

Application context will use default display's configuration which
should be acceptable as the rest of the code relies on the default
display too (e.g. screen callbacks are delivered only for the
default display). Application context's configuration is updated
normally on fold/unfold.

Bug: 377280470
Test: check that we don't play animation on rear camera selfie mode
Flag: EXEMPT bugfix
Change-Id: I989c2be83187816b247b3f41e5a3755be361592e
parent 6e776a24
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