fix(non linear font scaling): clock & battery textviews might be cutoff in...
fix(non linear font scaling): clock & battery textviews might be cutoff in status bar when larger font size Originally the clock and battery textviews contain inner padding. With larger font scaling and limited status bar height, the space would not be enough for the text and the padding in textview, then the top padding would cause the text to not be able to display center vertically, so it might look shifted down or even cutoff. Therefore, we adjust the textview line height and layout param height to only contain the font height, then the inner padding should be elimitated and the text should display center vertically. Besides, when density (display size) is changed, the status bar view and the internal clock are not notified, then the clock height could not update in time. Therefore, we fix the notify-path so that the PhoneStatusBarViewController can detect the config changed then notify the status bar view and the clock. Bug: 298064328 Bug: 291168760 Test: manually - attached videos in bug atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ atest SystemUIGoogleScreenshotTests atest ClockTest Change-Id: I653584d5963b38ce2ef2ba05ca9df63280aac128
Loading
Please register or sign in to comment