Skip to content

Commit bff1c74

Browse files
committed
Set notifications priority
1 parent 2983f45 commit bff1c74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mobile/android/app/src/main/java/com/robosats/NotificationsService.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ private void displayOrderNotification(Integer order_id, String message, String c
242242
.setContentTitle("Order #" + order_id)
243243
.setContentText(message)
244244
.setSmallIcon(R.mipmap.ic_icon)
245-
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
245+
.setPriority(NotificationCompat.PRIORITY_HIGH)
246246
.setContentIntent(pendingIntent)
247247
.setAutoCancel(true);
248248

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

264264
notificationManager.notify(0, builder.build());

0 commit comments

Comments
 (0)