Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e81b5fb authored by Tianfan Zhang's avatar Tianfan Zhang
Browse files

Show "+N" label when Cue Bar has >2 MR.

Bug: 431800863
Test: atest ShortPillScreenshotTest
Flag: EXEMPT bugfix
Change-Id: Iebb401cdb5762f52e41ce0fb25c2401f77d9c168
parent ecd80149
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -248,6 +248,25 @@ fun ShortPill(
                                    maxLines = 1,
                                    modifier = Modifier.padding(horizontal = 8.dp),
                                )
                            } else if (
                                filteredActions.size == 1 &&
                                    action.actionType == ActionType.MR &&
                                    action.icon.repeatCount > 0
                            ) {
                                Text(
                                    text = action.label,
                                    color = outlineColor,
                                    style = actionTextStyle,
                                    overflow = TextOverflow.Ellipsis,
                                    maxLines = 1,
                                    modifier = Modifier.padding(start = 8.dp).weight(1f),
                                )
                                Text(
                                    text = "+${action.icon.repeatCount}",
                                    style = MaterialTheme.typography.labelMedium,
                                    color = MaterialTheme.colorScheme.onSurfaceVariant,
                                    modifier = Modifier.padding(start = 6.dp, end = 3.dp),
                                )
                            }
                        }
                    }