When trying to use a text size in sp for xml attribute uxsdk_singlePercentTextSize or uxsdk_dualPercentTextSize, the font size is much larger than anticipated. It seems to be because DisplayUtil.pxToSp(context, it) is missing in initAttributes() in BatteryWidget.kt when setting the text size.
This behavior is inconsistent with similar widgets like FlightModeWidget
When trying to use a text size in sp for xml attribute
uxsdk_singlePercentTextSize
oruxsdk_dualPercentTextSize
, the font size is much larger than anticipated. It seems to be becauseDisplayUtil.pxToSp(context, it)
is missing ininitAttributes()
inBatteryWidget.kt
when setting the text size.This behavior is inconsistent with similar widgets like
FlightModeWidget