summaryrefslogtreecommitdiffstats
path: root/src/com/cyngn
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-04-09 12:02:08 -0700
committerAndy Mast <andy@cyngn.com>2015-04-10 16:28:14 +0000
commit55b7acc31fd9205a3fddfb1ad1bf6f962c3088dd (patch)
treece0e7573fbaa893526b5a84ae732fae1afa2eb94 /src/com/cyngn
parent5e9cc5fa726d7e551fce94bf60afab869036fc62 (diff)
downloadpackages_apps_ThemeChooser-55b7acc31fd9205a3fddfb1ad1bf6f962c3088dd.zip
packages_apps_ThemeChooser-55b7acc31fd9205a3fddfb1ad1bf6f962c3088dd.tar.gz
packages_apps_ThemeChooser-55b7acc31fd9205a3fddfb1ad1bf6f962c3088dd.tar.bz2
Re-use existing typeface when setting to bold
We set the text for the "default" entry in the component selector to bold but pass in null for the typeface. This ends up using the DEFAULT_BOLD typeface rather than lato and can result in a native crash in libminikin. There is still an issue with fonts at the native layer but this patch helps mitigate the issue from crashing the chooser. Change-Id: I9e4cde2452c18d538db5d27ea2acf8c92ff27aad REF: THEMES-537
Diffstat (limited to 'src/com/cyngn')
-rw-r--r--src/com/cyngn/theme/chooser/ComponentSelector.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/cyngn/theme/chooser/ComponentSelector.java b/src/com/cyngn/theme/chooser/ComponentSelector.java
index ecf5d87..7423dde 100644
--- a/src/com/cyngn/theme/chooser/ComponentSelector.java
+++ b/src/com/cyngn/theme/chooser/ComponentSelector.java
@@ -688,7 +688,7 @@ public class ComponentSelector extends LinearLayout
String pkgName = cursor.getString(cursor.getColumnIndex(ThemesColumns.PKG_NAME));
if (ThemeUtils.getDefaultThemePackageName(mContext).equals(pkgName)) {
titleView.setText(mContext.getString(R.string.default_tag_text));
- titleView.setTypeface(null, Typeface.BOLD);
+ titleView.setTypeface(titleView.getTypeface(), Typeface.BOLD);
} else {
titleView.setText(cursor.getString(cursor.getColumnIndex(ThemesColumns.TITLE)));
}