summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2018-06-01 00:00:36 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-01 03:17:29 +0200
commit125f725a03d5205fe86ebcb7db4992b90d81a445 (patch)
treeceecdac6ed9fd7564b24f74bdf65fb3c6f603953 /app
parent3c84b48f088a8c4791c728aea9067a24a42967a9 (diff)
fab: use AppCompatTextView for label
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java5
1 files changed, 3 insertions, 2 deletions
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);