Skip to content

Commit 055cac5

Browse files
committed
prefix に b/n
1 parent a04e1f4 commit 055cac5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/io/github/takusan23/newradiosupporter/ui/component/LogcatPhysicalChannelConfigInfo.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,14 @@ private fun NotExpandedInfo(
165165

166166
BandChip(
167167
borderColor = MaterialTheme.colorScheme.primary,
168+
isNr = primaryCell.isNR,
168169
band = primaryCell.band
169170
)
170171

171172
secondaryCellList.forEach { cell ->
172173
BandChip(
173174
borderColor = MaterialTheme.colorScheme.secondary,
175+
isNr = primaryCell.isNR,
174176
band = cell.band
175177
)
176178
}
@@ -351,6 +353,7 @@ private fun Table(
351353
private fun BandChip(
352354
modifier: Modifier = Modifier,
353355
borderColor: Color,
356+
isNr: Boolean,
354357
band: String
355358
) {
356359
Surface(
@@ -362,7 +365,7 @@ private fun BandChip(
362365
) {
363366
Text(
364367
modifier = Modifier.padding(horizontal = 10.dp, vertical = 3.dp),
365-
text = band
368+
text = if (isNr) "n$band" else "b$band"
366369
)
367370
}
368371
}

0 commit comments

Comments
 (0)