summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge/src
diff options
context:
space:
mode:
authorDeepanshu Gupta <deepanshu@google.com>2013-11-08 16:43:07 +0530
committerDeepanshu Gupta <deepanshu@google.com>2013-11-08 16:43:07 +0530
commitf4800bc3b122828d61a34caecbf782eee170ae59 (patch)
tree81a73effab5ebcece5c561adc83b129d2c9ad99c /tools/layoutlib/bridge/src
parent499c7eeb9ad59e5449481eb871db24a176f2ccdb (diff)
downloadframeworks_base-f4800bc3b122828d61a34caecbf782eee170ae59.zip
frameworks_base-f4800bc3b122828d61a34caecbf782eee170ae59.tar.gz
frameworks_base-f4800bc3b122828d61a34caecbf782eee170ae59.tar.bz2
Fix text size in Fake Action Bar
The density multiplier was being applied twice to the title text in the fake action bar. Bug: 11436018 Change-Id: Id74c11037cb43d01f6cd79126623c84edfc37aaf
Diffstat (limited to 'tools/layoutlib/bridge/src')
-rw-r--r--tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
index 17b0eb6..bcd08eb4 100644
--- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
+++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
@@ -290,7 +290,7 @@ 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()));
}
}