#46: Adjust top margin of now playing view

bugfix/46-adjust-now-playing-top-margin
Ryan Harg 2021-09-03 14:06:28 +02:00 zatwierdzone przez Ryan Harg
rodzic 2706dcaa8e
commit e17bbcfce4
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -91,7 +91,7 @@ class NowPlayingView : MaterialCardView {
init {
(layoutParams as? MarginLayoutParams)?.let {
maxMargin = it.marginStart
maxMargin = it.topMargin
}
minHeight = TypedValue().let {
@ -100,7 +100,7 @@ class NowPlayingView : MaterialCardView {
TypedValue.complexToDimensionPixelSize(it.data, resources.displayMetrics)
}
maxHeight = binding.nowPlayingDetails.measuredHeight + (2 * maxMargin)
maxHeight = binding.nowPlayingDetails.measuredHeight - height - maxMargin
}
override fun onDown(e: MotionEvent): Boolean {

Wyświetl plik

@ -0,0 +1 @@
Adjust top margin of Now Playing view so that status bar doesn't get covered on some screens (#46)