summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2019-04-11 16:58:50 -0700
committerHyunyoung Song <hyunyoungs@google.com>2019-04-11 17:01:51 -0700
commitf952095a2efd5b1978c69e9df788a037f71924c7 (patch)
tree601255728b99919b88afebb2c11a3eda97c0d58b /src
parent0d7b0159b37361f8483ea2120d286ec249a82673 (diff)
downloadandroid_packages_apps_Trebuchet-f952095a2efd5b1978c69e9df788a037f71924c7.tar.gz
android_packages_apps_Trebuchet-f952095a2efd5b1978c69e9df788a037f71924c7.tar.bz2
android_packages_apps_Trebuchet-f952095a2efd5b1978c69e9df788a037f71924c7.zip
"No recent items" font should use themed font
Bug: 126822309 Change-Id: I0311b0b002fa1dcda88b87da31019f4ecbb94f62
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/util/Themes.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/launcher3/util/Themes.java b/src/com/android/launcher3/util/Themes.java
index 59fd8595e..a45f17d32 100644
--- a/src/com/android/launcher3/util/Themes.java
+++ b/src/com/android/launcher3/util/Themes.java
@@ -32,6 +32,14 @@ import com.android.launcher3.R;
*/
public class Themes {
+ public static String getDefaultBodyFont(Context context) {
+ TypedArray ta = context.obtainStyledAttributes(android.R.style.TextAppearance_DeviceDefault,
+ new int[]{android.R.attr.fontFamily});
+ String value = ta.getString(0);
+ ta.recycle();
+ return value;
+ }
+
public static float getDialogCornerRadius(Context context) {
return getDimension(context, android.R.attr.dialogCornerRadius,
context.getResources().getDimension(R.dimen.default_dialog_corner_radius));