summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2023-05-10 14:27:21 -0700
committer Mady Mellor <madym@google.com> 2023-05-11 16:20:40 -0700
commit2c4955bcf664e9ed5b9fa5b7fb201c923f9a9b68 (patch)
tree4d7426aa4c1cb5d73ab41546c9949d00fa6ae2ec /libs/androidfw/AssetsProvider.cpp
parent207bc54d297ec38e46e10aed6541cb49b9aa3684 (diff)
Use ComponentCallbacks instead of ConfigurationChangeListener
ConfigurationChangeListener can be out of sync with theme so instead use ComponentCallbacks listener. For this to work, it needs to be registered with a window context. Updates tests to use the window context bubble controller creates. Adds a new test to ensure component callback is added / removed appropriately. Updates SysuiTestableContext to create a window context, this ensures that registered recievers for bubbles get tracked. Test: atest BubblesTest Test: manual - have a bubble, expand it, change the theme, check that the manage button & contents is in correct theme along with the overflow button & contents and flyout - repeat above with font size, display size, density, and RTL and verify bubble UI elements update for those changes Bug: 281748524 Change-Id: Ibdcb680e64bbe81af72ec04318f091941da5fe89
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions