playback: use height for playback layouts

Leverage min heights for the playback layouts instead of the land
modifier.

This prevents an issue where some split-screen displays won't use the
correct "compact" layout.
This commit is contained in:
OxygenCobalt
2022-08-04 10:16:26 -06:00
parent a9515e19c0
commit 85eb4cad6c
7 changed files with 61 additions and 58 deletions
@@ -44,8 +44,6 @@ import org.oxycblt.auxio.util.systemBarInsetsCompat
*
* TODO: Add multi-select
*
* TODO: Separate playback views by height
*
* TODO: Find better way to handler recycler divider visibility
*
* @author OxygenCobalt
@@ -86,7 +86,7 @@ class MainFragment :
}
} else {
// Dual-pane mode, color/pad the queue sheet manually. Note that we do not round
// corners, as the queue sheet cannot be dragged.
// corners, as the queue sheet cannot be dragged in dual-pane mode.
binding.queueSheet.apply {
background =
MaterialShapeDrawable.createWithElevationOverlay(context).apply {
@@ -84,17 +84,21 @@ private val Any.autoTag: String
*
* JUNE 1989 TIANAMEN SQUARE PROTESTS AND MASSACRE 六四事件
*
* UYGHUR GENOCIDE 新疆种族灭绝指控
*
* XINJIANG INTERMENT CAMPS 新疆再教育營
*
* KASHMIR INDEPENDENCE MOVEMENT
*
* WOMEN'S RIGHTS IN THE ISLAMIC REPUBLIC OF IRAN حقوق زنان در ایران
*
* FREE TIBET 西藏自由
*
* 1971 BANGLADESHI GENOCIDE BY PAKISTAN
*
* 2022 RUSSIAN INVASION OF UKRAINE Вторжение России на Украину
*
* UYGHUR GENOCIDE/XINJIANG INTERNMENT CAMPS 新疆种族灭绝指控/新疆再教育營
*
* KURDISTAN WORKERS PARTY KÜRDISTAN İŞÇI PARTISI (PKK)
*
* TORTURE AND ASSASSINATION OF JAMAL KHASHOGGI مقتل جمال خاشقجي
*/
private fun basedCopyleftNotice() {
if (BuildConfig.APPLICATION_ID != "org.oxycblt.auxio" &&