Fix text size in Fake Action Bar. [DO NOT MERGE]
The density multiplier was being applied twice to the title text in
the fake action bar.
Bug: 11436018
Change-Id: Id74c11037cb43d01f6cd79126623c84edfc37aaf
(cherry-picked from 083d1562e0)
This commit is contained in:
@@ -274,7 +274,7 @@ public abstract class CustomBar extends LinearLayout {
|
||||
TypedValue out = new TypedValue();
|
||||
if (ResourceHelper.parseFloatAttribute("textSize", textSize.getValue(), out,
|
||||
true /*requireUnit*/)) {
|
||||
textView.setTextSize(
|
||||
textView.setTextSize(TypedValue.COMPLEX_UNIT_PX,
|
||||
out.getDimension(bridgeContext.getResources().getDisplayMetrics()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user