kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale-android
#46: Adjust top margin of now playing view
rodzic
2706dcaa8e
commit
e17bbcfce4
|
@ -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 {
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Adjust top margin of Now Playing view so that status bar doesn't get covered on some screens (#46)
|
Ładowanie…
Reference in New Issue