mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-27 08:16:36 +03:00
Fix #236
This commit is contained in:
parent
723c0e99a5
commit
0c0372dc51
1 changed files with 3 additions and 2 deletions
|
@ -43,10 +43,11 @@ class MyAnimeListFragment : BaseRxFragment<MyAnimeListPresenter>() {
|
||||||
myanimelist_score_layout.setOnClickListener { onScoreClick() }
|
myanimelist_score_layout.setOnClickListener { onScoreClick() }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
fun setMangaSync(mangaSync: MangaSync?) {
|
fun setMangaSync(mangaSync: MangaSync?) {
|
||||||
swipe_refresh.isEnabled = mangaSync != null
|
swipe_refresh.isEnabled = mangaSync != null
|
||||||
mangaSync?.let {
|
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.setAllCaps(false)
|
||||||
myanimelist_title.text = it.title
|
myanimelist_title.text = it.title
|
||||||
myanimelist_chapters.text = if (it.total_chapters > 0)
|
myanimelist_chapters.text = if (it.total_chapters > 0)
|
||||||
|
@ -54,7 +55,7 @@ class MyAnimeListFragment : BaseRxFragment<MyAnimeListPresenter>() {
|
||||||
myanimelist_score.text = if (it.score == 0f) "-" else decimalFormat.format(it.score)
|
myanimelist_score.text = if (it.score == 0f) "-" else decimalFormat.format(it.score)
|
||||||
myanimelist_status.text = presenter.myAnimeList.getStatus(it.status)
|
myanimelist_status.text = presenter.myAnimeList.getStatus(it.status)
|
||||||
} ?: run {
|
} ?: run {
|
||||||
myanimelist_title.setTextAppearance(R.style.TextAppearance_Medium_Button)
|
myanimelist_title.setTextAppearance(context, R.style.TextAppearance_Medium_Button)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue