Commit 291feba5 authored by Bartek Fabiszewski's avatar Bartek Fabiszewski
Browse files

Prevent alerts on subsequent notifications

parent 717f3499
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ class NotificationHelper {
                        .setContentTitle(context.getString(R.string.app_name))
                        .setPriority(NotificationCompat.PRIORITY_HIGH)
                        .setCategory(NotificationCompat.CATEGORY_SERVICE)
                        .setOnlyAlertOnce(true)
                        .setContentText(String.format(context.getString(R.string.is_running), context.getString(R.string.app_name)));
        Intent resultIntent = new Intent(context, MainActivity.class);