mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 22:21:52 +01:00
Minor UI fixes
This commit is contained in:
parent
a809b05808
commit
e04596c668
@ -46,14 +46,17 @@ class MyAnimeListFragment : BaseRxFragment<MyAnimeListPresenter>() {
|
|||||||
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.setAllCaps(false)
|
||||||
myanimelist_title.text = it.title
|
myanimelist_title.text = it.title
|
||||||
val chaptersText = if (it.total_chapters > 0)
|
myanimelist_chapters.text = if (it.total_chapters > 0)
|
||||||
"${it.last_chapter_read}/${it.total_chapters}" else "${it.last_chapter_read}/-"
|
"${it.last_chapter_read}/${it.total_chapters}" else "${it.last_chapter_read}/-"
|
||||||
|
|
||||||
myanimelist_chapters.text = chaptersText
|
|
||||||
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 {
|
||||||
|
myanimelist_title.setTextAppearance(R.style.TextAppearance_Medium_Button)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun onRefreshDone() {
|
fun onRefreshDone() {
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical"
|
||||||
|
android:background="?attr/selectable_list_drawable">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/myanimelist_result_title"
|
android:id="@+id/myanimelist_result_title"
|
||||||
|
Loading…
Reference in New Issue
Block a user