Skip to content

Commit

Permalink
Ensure permission in-app notification title is single line
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Jun 14, 2024
1 parent e3947f5 commit dd64b01
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.constraintlayout.compose.ConstraintLayout
Expand Down Expand Up @@ -157,6 +158,8 @@ private fun Notification(notificationBannerData: NotificationData) {
.padding(start = Dimens.smallPadding),
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onBackground,
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
message?.let {
Text(
Expand Down

0 comments on commit dd64b01

Please sign in to comment.