Implemented the Android notification-privacy part of Phase 1:
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user