Skip to content
Commit 28cc351e authored by chihtinglo's avatar chihtinglo
Browse files

Re-inflating view in onConfigurationChange

We change the behavior of adapting to theme changes to re-inflate the
view and hook the method "onConfigurationChange" for the setting panel
to the controller. All resources are configurated in resource files.

To achieve theme change for setting panel:
1. We hide/remove the panel from screen if it is visible.
2. We inflate the view again. The contents in "inflateView" are
   extracted from the origin constructor.
3. We show the panel if it is opened before the theme changes.

We only move resource configurations to resource files and the contents
of resources remain the same.

Bug: 257272333
Test: manual - attach screenshots with the bug
Change-Id: I6fe7b800a9fabc25a192749896480446347f99d7
parent 9ba77666
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