Commit e17bbcfc authored by Ryan Harg's avatar Ryan Harg Committed by Ryan Harg
Browse files

#46: Adjust top margin of now playing view

parent 2706dcaa
......@@ -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 {
......
Adjust top margin of Now Playing view so that status bar doesn't get covered on some screens (#46)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment