summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author chihtinglo <chihtinglo@google.com> 2023-01-09 10:26:54 +0800
committer Candice Lo <chihtinglo@google.com> 2023-03-07 04:25:27 +0000
commita2c24a988f4f53473567263c737b72f8a0ed8198 (patch)
tree86952028f840e7c0626c6feef8a532b6fe2e521b /libs/input/PointerController.cpp
parent529d82eb01a2ab15838ede9fa92c79b652388f66 (diff)
Trigger re-inflation when configuration changed
We re-inflate the layout when font or display size are scaled and do follow fixes: 1. Listen to CONFIG_FONT_SCALE and CONFIG_DENSITY for layout re-inflaction. 2. Remove the configurations of image button and Done button paddings, and set the size of icons and center the text directly so the contents instead of the paddings inside the button will scale up when we increase the display size. 3. Reconstruct the layout to guarantee all components will stay in the settings panel without being cut. Bug: 257272333 Test: manual - attach videos with the bug Change-Id: Id3f120dbdd1afb3863a85f105059beee1ec460da Merged-In: Id3f120dbdd1afb3863a85f105059beee1ec460da
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions