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

Commit ead43373 authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

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

parents 1b59e111 4e81b5fb
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -265,6 +265,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),
                                )
                            }
                        }
                    }