Skip to content

Commit

Permalink
do not show time of Notification
Browse files Browse the repository at this point in the history
  • Loading branch information
hajoha committed Jan 13, 2025
1 parent 7801e90 commit ce380e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ private void setupNotification() {
.setContentIntent(pendingIntent)
// prevent to swipe the notification away
.setOngoing(true)
.setShowWhen(false)

.setOnlyAlertOnce(true)
.setContentText(getText(R.string.loggin_notifaction))
.setStyle(new NotificationCompat.BigTextStyle()
Expand All @@ -223,6 +225,8 @@ private void setupNotification() {
.setColor(Color.WHITE)
.setContentIntent(pendingIntent)
.setOnlyAlertOnce(true)
.setShowWhen(false)

.setContentText(getText(R.string.loggin_notifaction))
.setStyle(new NotificationCompat.BigTextStyle()
.bigText(s))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ private void setupNotification() {
.setOngoing(true)
.setOnlyAlertOnce(true)
.setContentText(getText(R.string.cell_notifcation))
.setShowWhen(false)
.setStyle(new NotificationCompat.BigTextStyle()
.bigText(s))
// don't wait 10 seconds to show the notification
Expand All @@ -126,6 +127,7 @@ private void setupNotification() {
.setColor(Color.WHITE)
.setContentIntent(pendingIntent)
.setOnlyAlertOnce(true)
.setShowWhen(false)
.setStyle(new NotificationCompat.BigTextStyle()
.bigText(s))
// prevent to swipe the notification away
Expand Down

0 comments on commit ce380e3

Please sign in to comment.