Fix background color in webttoon mode #832

master
Koitharu 2 years ago
parent a15197f69d
commit 2b26f944d0
Signed by: Koitharu
GPG Key ID: 676DEE768C17A9D7

@ -189,7 +189,7 @@ class DetailsFragment :
isVisible = false isVisible = false
} }
} }
if (manga.source == MangaSource.LOCAL) { if (manga.source == MangaSource.LOCAL || manga.source == MangaSource.DUMMY) {
infoLayout.textViewSource.isVisible = false infoLayout.textViewSource.isVisible = false
} else { } else {
infoLayout.textViewSource.text = manga.source.title infoLayout.textViewSource.text = manga.source.title
@ -223,7 +223,7 @@ class DetailsFragment :
} }
binding.approximateReadTime.text = time.format(resources) binding.approximateReadTime.text = time.format(resources)
binding.approximateReadTimeTitle.setText( binding.approximateReadTimeTitle.setText(
if (time.isContinue) R.string.approximate_remaining_time else R.string.approximate_reading_time if (time.isContinue) R.string.approximate_remaining_time else R.string.approximate_reading_time,
) )
binding.approximateReadTimeLayout.isVisible = true binding.approximateReadTimeLayout.isVisible = true
} }

@ -59,6 +59,9 @@ class WebtoonReaderFragment : BaseReaderFragment<FragmentReaderWebtoonBinding>()
viewModel.defaultWebtoonZoomOut.take(1).observe(viewLifecycleOwner) { viewModel.defaultWebtoonZoomOut.take(1).observe(viewLifecycleOwner) {
binding.frame.zoom = 1f - it binding.frame.zoom = 1f - it
} }
viewModel.readerSettings.observe(viewLifecycleOwner) {
it.applyBackground(binding.root)
}
} }
override fun onDestroyView() { override fun onDestroyView() {

Loading…
Cancel
Save