Skip to content
Commit 2c4955bc authored by Mady Mellor's avatar Mady Mellor
Browse files

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
parent 207bc54d
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