In order to make sure the badge counts were center aligned with their badges we need to use fontMetrics.bottom instead of fontMetrics.descent for an accurate y-position when drawing the label. Using fontMetrics.bottom for this calculation is safe since number characters never get drawn below the baseline.
Also removed an unused dimen and fixed a lambda name shadow.
In order to make sure the badge counts were center aligned with their badges we need to use
fontMetrics.bottom
instead offontMetrics.descent
for an accurate y-position when drawing the label. UsingfontMetrics.bottom
for this calculation is safe since number characters never get drawn below the baseline.Also removed an unused dimen and fixed a lambda name shadow.