Skip to content

Commit

Permalink
hide useless "when" from notification
Browse files Browse the repository at this point in the history
  • Loading branch information
sal0max committed Dec 2, 2021
1 parent 9146b79 commit 39fda52
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class TimerNotification(private val context: Context) {
.setSmallIcon(R.drawable.ic_timer_white_24dp)
.setTicker("${context.getString(R.string.app_name)} ${context.getString(R.string.title_timer)}") // NDx Timer
.setContentText(context.getString(R.string.title_timer)) // Timer
.setShowWhen(false)
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
.setOnlyAlertOnce(true)
// click on notification: go back to activity
Expand Down

0 comments on commit 39fda52

Please sign in to comment.