fab: Use themed context to set style

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2018-06-05 03:23:08 +05:30 committed by Jason A. Donenfeld
parent 27072972ab
commit dba8d0305e

View File

@ -415,7 +415,7 @@ public class FloatingActionsMenu extends ViewGroup {
button.getTag(R.id.fab_label) != null) continue;
final AppCompatTextView label = new AppCompatTextView(context);
label.setTextAppearance(getContext(), mLabelsStyle);
label.setTextAppearance(context, mLabelsStyle);
label.setText(button.getTitle());
addView(label);