mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 12:11:35 +00:00
Better sentence and interactive permanent notification
This commit is contained in:
parent
005adc6521
commit
be748d8981
@ -110,14 +110,19 @@ public class NotificationsService extends Service {
|
||||
}
|
||||
|
||||
private Notification buildServiceNotification() {
|
||||
Intent intent = new Intent(this, MainActivity.class);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
||||
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_IMMUTABLE);
|
||||
|
||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(this, CHANNEL_ID)
|
||||
.setContentTitle("Tor Notifications")
|
||||
.setContentText("The app will run in the background to send notifications about your orders.")
|
||||
.setContentText("Running in the background to check every 5 minutes for notifications.")
|
||||
.setSmallIcon(R.mipmap.ic_icon)
|
||||
.setTicker("Robosats")
|
||||
.setPriority(NotificationCompat.PRIORITY_MIN)
|
||||
.setOngoing(true)
|
||||
.setAutoCancel(false);
|
||||
.setAutoCancel(false)
|
||||
.setContentIntent(pendingIntent);
|
||||
|
||||
return builder.build();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user