Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Smith committed Apr 19, 2016
1 parent 08aadf4 commit f9793e6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Xamarin.Forms.Platform.Android/Cells/TextViewExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Android.Content;
using Android.OS;
using Android.Widget;

namespace Xamarin.Forms.Platform.Android
{
internal static class TextViewExtensions
{
public static void SetTextAppearanceCompat(this TextView textView, Context context, int resId)
{
if ((int)Build.VERSION.SdkInt < 23)
{
#pragma warning disable 618 // Using older version of SetTextAppearance for compatibility with API 15-22
textView.SetTextAppearance(context, resId);
#pragma warning restore 618
}
else
textView.SetTextAppearance(resId);
}
}
}

0 comments on commit f9793e6

Please sign in to comment.