From 125f725a03d5205fe86ebcb7db4992b90d81a445 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 1 Jun 2018 00:00:36 +0530 Subject: fab: use AppCompatTextView for label Signed-off-by: Harsh Shandilya --- .../java/com/wireguard/android/widget/fab/FloatingActionsMenu.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java b/app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java index 0eec988e..a2152c64 100644 --- a/app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java +++ b/app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java @@ -22,6 +22,7 @@ import android.os.Parcelable; import android.support.annotation.ColorRes; import android.support.annotation.Keep; import android.support.annotation.NonNull; +import android.support.v7.widget.AppCompatTextView; import android.util.AttributeSet; import android.view.ContextThemeWrapper; import android.view.TouchDelegate; @@ -415,8 +416,8 @@ public class FloatingActionsMenu extends ViewGroup { if (button == mAddButton || title == null || button.getTag(R.id.fab_label) != null) continue; - final TextView label = new TextView(context); - label.setTextAppearance(context, mLabelsStyle); + final AppCompatTextView label = new AppCompatTextView(context); + label.setTextAppearance(getContext(), mLabelsStyle); label.setText(button.getTitle()); addView(label); -- cgit v1.2.3