MangaInfo: Don't apply appbar padding on tablet ui (#6464)

This commit is contained in:
Ivan Iskandar 2022-01-15 10:24:55 +07:00 committed by GitHub
parent 8ad98b67d2
commit 49cb3b6aa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,7 @@ class MangaInfoHeaderAdapter(
} }
private fun updateCoverPosition() { private fun updateCoverPosition() {
if (isTablet) return
val appBarHeight = controller.getMainAppBarHeight() val appBarHeight = controller.getMainAppBarHeight()
binding.mangaCover.updateLayoutParams<ViewGroup.MarginLayoutParams> { binding.mangaCover.updateLayoutParams<ViewGroup.MarginLayoutParams> {
topMargin += appBarHeight topMargin += appBarHeight