16 lines
531 B
Kotlin
16 lines
531 B
Kotlin
package studio.daybreak.mail
|
|
|
|
internal object NotificationPrivacyPolicy {
|
|
const val DEFAULT_SHOW_DETAILS = false
|
|
|
|
fun newMailText(showDetails: Boolean, email: String, count: Int): String =
|
|
if (showDetails) {
|
|
if (count == 1) email else "$count new messages · $email"
|
|
} else {
|
|
"Open ep-mail to check your inbox"
|
|
}
|
|
|
|
fun reminderText(showDetails: Boolean, subject: String): String =
|
|
if (showDetails && subject.isNotBlank()) subject else "A snoozed message is due"
|
|
}
|