From 0c0372dc5154e1da91ebb57e078252d9e2b43be3 Mon Sep 17 00:00:00 2001 From: len Date: Wed, 30 Mar 2016 18:17:00 +0200 Subject: [PATCH] Fix #236 --- .../tachiyomi/ui/manga/myanimelist/MyAnimeListFragment.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/myanimelist/MyAnimeListFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/myanimelist/MyAnimeListFragment.kt index 596f83a913..f3f5cab707 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/myanimelist/MyAnimeListFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/myanimelist/MyAnimeListFragment.kt @@ -43,10 +43,11 @@ class MyAnimeListFragment : BaseRxFragment() { myanimelist_score_layout.setOnClickListener { onScoreClick() } } + @Suppress("DEPRECATION") fun setMangaSync(mangaSync: MangaSync?) { swipe_refresh.isEnabled = mangaSync != null mangaSync?.let { - myanimelist_title.setTextAppearance(R.style.TextAppearance_Regular_Body1_Secondary) + myanimelist_title.setTextAppearance(context, R.style.TextAppearance_Regular_Body1_Secondary) myanimelist_title.setAllCaps(false) myanimelist_title.text = it.title myanimelist_chapters.text = if (it.total_chapters > 0) @@ -54,7 +55,7 @@ class MyAnimeListFragment : BaseRxFragment() { myanimelist_score.text = if (it.score == 0f) "-" else decimalFormat.format(it.score) myanimelist_status.text = presenter.myAnimeList.getStatus(it.status) } ?: run { - myanimelist_title.setTextAppearance(R.style.TextAppearance_Medium_Button) + myanimelist_title.setTextAppearance(context, R.style.TextAppearance_Medium_Button) } }