Fix reader info bar text size

This commit is contained in:
Koitharu
2024-02-18 09:26:49 +02:00
parent e7af4e8450
commit 258dbf3dc3
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ abstract class BaseReaderFragment<B : ViewBinding> : BaseFragment<B>(), ZoomCont
viewModel.content.observe(viewLifecycleOwner) {
var pendingState = restoredState ?: it.state
if (pendingState == null && readerAdapter?.hasItems != true) {
if (pendingState == null && it.pages.isNotEmpty() && readerAdapter?.hasItems != true) {
pendingState = viewModel.getCurrentState()
}
onPagesChanged(it.pages, pendingState)