v2026.05.19.2 — hotfix: restore media notification (remove broken custom favorite) #55

Merged
bvandeusen merged 262 commits from dev into main 2026-05-19 07:48:10 -04:00
Showing only changes of commit 118c687847 - Show all commits
@@ -1,10 +1,11 @@
package com.fabledsword.minstrel.shared.widgets
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
@@ -25,6 +26,12 @@ import com.composables.icons.lucide.Lucide
* Per the FabledSword design system: sentence case copy, understated
* tone. The icon defaults to Lucide's `Inbox`; callers pass their own
* when a more topical icon helps.
*
* Renders inside a single-item LazyColumn so the widget participates
* in nested-scroll dispatch when wrapped by PullToRefreshBox —
* pull-to-refresh fires on Empty / Error states without the content
* actually scrolling. The fillParentMaxSize on the inner Box keeps
* the centered visual identical to the pre-LazyColumn layout.
*/
@Composable
fun EmptyState(
@@ -33,13 +40,15 @@ fun EmptyState(
modifier: Modifier = Modifier,
icon: ImageVector = Lucide.Inbox,
) {
Column(
modifier = modifier
.fillMaxSize()
LazyColumn(modifier = modifier.fillMaxSize()) {
item {
Box(
modifier = Modifier
.fillParentMaxSize()
.padding(32.dp),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally,
contentAlignment = Alignment.Center,
) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Icon(
imageVector = icon,
contentDescription = null,
@@ -61,4 +70,7 @@ fun EmptyState(
textAlign = TextAlign.Center,
)
}
}
}
}
}