summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Nick Chameyev <nickchameyev@google.com> 2024-11-05 15:22:47 +0000
committer Nick Chameyev <nickchameyev@google.com> 2024-11-06 11:50:24 +0000
commit5c6b6ce4e8660f8c2b7ecf32fb7dccd54bbba71e (patch)
treee9c20e2ccb8575755cf21dd0ea6893b2fb92a5a2 /libs/androidfw/FileStream.cpp
parent6e776a247695058f22000509916b7efacf33a867 (diff)
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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions