diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/DetailsActivity.kt b/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/DetailsActivity.kt index 1efb40479..02980f9c4 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/DetailsActivity.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/DetailsActivity.kt @@ -301,7 +301,6 @@ class DetailsActivity : oldBottom: Int ) { with(viewBinding) { - buttonDescriptionMore.isVisible = textViewDescription.isTextTruncated containerBottomSheet?.let { sheet -> val peekHeight = BottomSheetBehavior.from(sheet).peekHeight if (scrollView.paddingBottom != peekHeight) { diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/pager/ChaptersPagesSheet.kt b/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/pager/ChaptersPagesSheet.kt index 9a5171d4e..a1f7f22b7 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/pager/ChaptersPagesSheet.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/pager/ChaptersPagesSheet.kt @@ -7,7 +7,6 @@ import android.view.ViewGroup import androidx.appcompat.view.ActionMode import androidx.core.view.WindowInsetsCompat import androidx.core.view.isVisible -import androidx.transition.TransitionManager import com.google.android.material.tabs.TabLayout import com.google.android.material.tabs.TabLayoutMediator import dagger.hilt.android.AndroidEntryPoint @@ -27,7 +26,6 @@ import org.koitharu.kotatsu.core.ui.util.RecyclerViewOwner import org.koitharu.kotatsu.core.ui.util.ReversibleActionObserver import org.koitharu.kotatsu.core.util.ext.doOnPageChanged import org.koitharu.kotatsu.core.util.ext.findCurrentPagerFragment -import org.koitharu.kotatsu.core.util.ext.isAnimationsEnabled import org.koitharu.kotatsu.core.util.ext.menuView import org.koitharu.kotatsu.core.util.ext.observe import org.koitharu.kotatsu.core.util.ext.observeEvent @@ -106,9 +104,6 @@ class ChaptersPagesSheet : BaseAdaptiveSheet(), } val binding = viewBinding ?: return val isActionModeStarted = actionModeDelegate?.isActionModeStarted == true - if (sheet.context.isAnimationsEnabled) { - TransitionManager.beginDelayedTransition(binding.toolbar) - } binding.toolbar.menuView?.isVisible = newState == STATE_EXPANDED && !isActionModeStarted binding.splitButtonRead.isVisible = newState != STATE_EXPANDED && !isActionModeStarted && viewModel is DetailsViewModel diff --git a/app/src/main/res/layout/sheet_chapters_pages.xml b/app/src/main/res/layout/sheet_chapters_pages.xml index d8d4fc7e7..0a552fdd3 100644 --- a/app/src/main/res/layout/sheet_chapters_pages.xml +++ b/app/src/main/res/layout/sheet_chapters_pages.xml @@ -47,7 +47,9 @@ android:id="@+id/split_button_read" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="end|center_vertical"> + android:layout_gravity="end|center_vertical" + android:paddingTop="0dp" + android:paddingBottom="0dp">