Fixed library snackbar in landscape

This commit is contained in:
Jay 2020-02-10 23:36:20 -08:00
parent dfe02234f2
commit a86611c644

View file

@ -167,7 +167,7 @@ class SortFilterBottomSheet @JvmOverloads constructor(context: Context, attrs: A
val height = context.resources.getDimensionPixelSize(R.dimen.rounder_radius) val height = context.resources.getDimensionPixelSize(R.dimen.rounder_radius)
pager?.setPadding(0, 0, 0, if (phoneLandscape) 0 else pager?.setPadding(0, 0, 0, if (phoneLandscape) 0 else
(top_bar.height - height)) (top_bar.height - height))
coordLayout.setPadding(0, 0, 0, top_bar.height) coordLayout.setPadding(0, 0, 0, peekingHeight)
} }
else { else {
updateRootPadding() updateRootPadding()