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)

View File

@@ -17,8 +17,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:minHeight="16dp"
android:paddingHorizontal="6dp"
android:textSize="12sp"
android:visibility="gone"
tools:visibility="visible" />