mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 18:46:39 +02:00
cleaner code, fewer warnings
This commit is contained in:
@@ -274,7 +274,6 @@ fun RenderThreadFeed(
|
|||||||
val modifier =
|
val modifier =
|
||||||
Modifier
|
Modifier
|
||||||
.drawReplyLevel(
|
.drawReplyLevel(
|
||||||
note = item,
|
|
||||||
level = level,
|
level = level,
|
||||||
color = MaterialTheme.colorScheme.placeholderText,
|
color = MaterialTheme.colorScheme.placeholderText,
|
||||||
selected =
|
selected =
|
||||||
@@ -322,7 +321,6 @@ fun RenderThreadFeed(
|
|||||||
|
|
||||||
// Creates a Zebra pattern where each bar is a reply level.
|
// Creates a Zebra pattern where each bar is a reply level.
|
||||||
fun Modifier.drawReplyLevel(
|
fun Modifier.drawReplyLevel(
|
||||||
note: Note,
|
|
||||||
level: State<Int>,
|
level: State<Int>,
|
||||||
color: Color,
|
color: Color,
|
||||||
selected: Color,
|
selected: Color,
|
||||||
@@ -662,9 +660,8 @@ private fun FullBleedNoteCompose(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val noteEvent = baseNote.event
|
val zapSplits = remember(noteEvent) { noteEvent.hasZapSplitSetup() }
|
||||||
val zapSplits = remember(noteEvent) { noteEvent?.hasZapSplitSetup() ?: false }
|
if (zapSplits) {
|
||||||
if (zapSplits && noteEvent != null) {
|
|
||||||
Spacer(modifier = DoubleVertSpacer)
|
Spacer(modifier = DoubleVertSpacer)
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.padding(horizontal = 12.dp),
|
modifier = Modifier.padding(horizontal = 12.dp),
|
||||||
|
Reference in New Issue
Block a user