Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1405558 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato Committed by Nicolò Mazzucato
Browse files

Fix clock handling of configuration change

The `Configuration` instance passed to onConfigurationChange was always the same (in most cases), so caching it in the `Clock` class didn't work.

With this we're just caching the field we care about (instead of the entire configuration, which would be cleaner but less efficient), and comparing them one by one.

Bug: 429007403
Flag: com.android.systemui.shade_window_goes_around
Test: change font scale and density with `adb shell settings put system font_scale 2` and check the clock font size changes.
Change-Id: Id6694bdca813a53c5d6a2e35eec29d95d3d3b7c7
parent 92fc94e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment