Skip to content

Commit

Permalink
Set notifications priority
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Jul 13, 2024
1 parent 2983f45 commit bff1c74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private void displayOrderNotification(Integer order_id, String message, String c
.setContentTitle("Order #" + order_id)
.setContentText(message)
.setSmallIcon(R.mipmap.ic_icon)
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
.setPriority(NotificationCompat.PRIORITY_HIGH)
.setContentIntent(pendingIntent)
.setAutoCancel(true);

Expand All @@ -258,7 +258,7 @@ private void displayErrorNotification() {
.setContentTitle("Connection Error")
.setContentText("There was an error while connecting to the Tor network.")
.setSmallIcon(R.mipmap.ic_icon)
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
.setPriority(NotificationCompat.PRIORITY_HIGH)
.setAutoCancel(true);

notificationManager.notify(0, builder.build());
Expand Down

0 comments on commit bff1c74

Please sign in to comment.