Skip to content

Commit 72e2d39

Browse files
committed
fix: crash when opening sms (closes #491)
1 parent c8fa981 commit 72e2d39

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • app/src/main/java/com/bnyro/contacts/presentation/screens/sms/components

‎app/src/main/java/com/bnyro/contacts/presentation/screens/sms/components/Message.kt‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,10 @@ fun ChatItemBubble(
223223
Text(
224224
style = MaterialTheme.typography.bodyMedium,
225225
color = textColor,
226-
text = DateUtils.getRelativeDateTimeString(
226+
text = TextUtils.formatDateTimestamp(
227227
LocalContext.current,
228228
message.timestamp,
229-
DateUtils.MINUTE_IN_MILLIS,
230-
DateUtils.WEEK_IN_MILLIS,
231-
DateUtils.FORMAT_ABBREV_ALL
232-
).split(", ")[1]
229+
)
233230
)
234231
message.simNumber?.let {
235232
Text(

0 commit comments

Comments
 (0)