Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
briar
Briar Desktop
Commits
cb2e796b
Commit
cb2e796b
authored
Jan 19, 2022
by
Mikolai Gütschow
Committed by
Nico
Jan 19, 2022
Browse files
Apply Kotlin suggestion by ialokim
parent
d8a9195b
Pipeline
#9347
passed with stage
in 2 minutes and 26 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/org/briarproject/briar/desktop/expiration/ExpirationBanner.kt
View file @
cb2e796b
...
...
@@ -78,10 +78,10 @@ fun ExpirationBanner(
modifier
=
Modifier
.
padding
(
horizontal
=
16
.
dp
,
vertical
=
8
.
dp
)
)
{
Icon
(
Icons
.
Filled
.
Warning
,
i18n
(
"warning"
),
Modifier
.
size
(
40
.
dp
))
va
r
text
=
"${i18nP("
expiration
.
banner
.
part1
.
nozero
", daysLeft)} ${i18n("
expiration
.
banner
.
part2
")}"
if
(
daysLeft
==
0
)
{
text
=
"${i18n("
expiration
.
banner
.
part1
.
zero
")} ${i18n("
expiration
.
banner
.
part2
")}"
}
va
l
text
=
if
(
daysLeft
==
0
)
"${i18n("
expiration
.
banner
.
part1
.
zero
")} ${i18n("
expiration
.
banner
.
part2
")}"
else
"${i18nP("
expiration
.
banner
.
part1
.
nozero
", daysLeft)} ${i18n("
expiration
.
banner
.
part2
")}"
Text
(
text
=
text
,
style
=
MaterialTheme
.
typography
.
body2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment