mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 00:35:26 +02:00
Don't show AM/PM for 24 hour systems
This commit is contained in:
parent
7c53768c01
commit
0d9a3226f5
@ -99,20 +99,22 @@ internal fun DateTimeSelectorBlock(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
AnimatedContent(
|
if (is24Hour) {
|
||||||
targetState = dateTime,
|
AnimatedContent(
|
||||||
transitionSpec = {
|
targetState = dateTime,
|
||||||
slideInVertically { height -> height } + fadeIn() togetherWith
|
transitionSpec = {
|
||||||
slideOutVertically { height -> -height } + fadeOut() using
|
slideInVertically { height -> height } + fadeIn() togetherWith
|
||||||
SizeTransform()
|
slideOutVertically { height -> -height } + fadeOut() using
|
||||||
},
|
SizeTransform()
|
||||||
label = "Animated am/pm",
|
},
|
||||||
) { time ->
|
label = "Animated am/pm",
|
||||||
Text(
|
) { time ->
|
||||||
text = time.formatTimeAmPm(locale),
|
Text(
|
||||||
style = MaterialTheme.typography.bodyLarge,
|
text = time.formatTimeAmPm(locale),
|
||||||
maxLines = 1
|
style = MaterialTheme.typography.bodyLarge,
|
||||||
)
|
maxLines = 1
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user