summaryrefslogtreecommitdiff
path: root/core/java/android/content/ComponentCallbacksController.java
Commit message (Collapse)AuthorAgeFilesLines
* Enable to listen to WindowContext's config changesCharles Chen2021-03-191-0/+127
This CL overrides registerComponentCallbacks for WindowContext. Users can use below code snippet to listen to Configuration changes. ``` Context windowContext = context.createWindowContext( display, ...); windowContext.registerComponentCallbacks( new ComponentCallbacks() { @Override public void onConfigurationChanged( Configuration newConfig) { // Do Something } }); ``` Bug: 181134729 Test: atest WindowContextTests Test: atest ComponentCallbacksControllerTest Change-Id: Iff46607bae3c942a96b64dcc97708f3a8c33f23a