Loading app/src/main/java/net/fabiszewski/ulogger/NotificationHelper.java +2 −2 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ class NotificationHelper { new NotificationCompat.Builder(context, channelId) .setSmallIcon(R.drawable.ic_stat_notify_24dp) .setContentTitle(context.getString(R.string.app_name)) .setPriority(NotificationCompat.PRIORITY_HIGH) .setPriority(NotificationCompat.PRIORITY_LOW) .setCategory(NotificationCompat.CATEGORY_SERVICE) .setOnlyAlertOnce(true) .setContentText(String.format(context.getString(R.string.is_running), context.getString(R.string.app_name))); Loading @@ -84,7 +84,7 @@ class NotificationHelper { */ @RequiresApi(Build.VERSION_CODES.O) private void createNotificationChannel(String channelId) { NotificationChannel channel = new NotificationChannel(channelId, context.getString(R.string.app_name), NotificationManager.IMPORTANCE_HIGH); NotificationChannel channel = new NotificationChannel(channelId, context.getString(R.string.app_name), NotificationManager.IMPORTANCE_LOW); notificationManager.createNotificationChannel(channel); } Loading Loading
app/src/main/java/net/fabiszewski/ulogger/NotificationHelper.java +2 −2 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ class NotificationHelper { new NotificationCompat.Builder(context, channelId) .setSmallIcon(R.drawable.ic_stat_notify_24dp) .setContentTitle(context.getString(R.string.app_name)) .setPriority(NotificationCompat.PRIORITY_HIGH) .setPriority(NotificationCompat.PRIORITY_LOW) .setCategory(NotificationCompat.CATEGORY_SERVICE) .setOnlyAlertOnce(true) .setContentText(String.format(context.getString(R.string.is_running), context.getString(R.string.app_name))); Loading @@ -84,7 +84,7 @@ class NotificationHelper { */ @RequiresApi(Build.VERSION_CODES.O) private void createNotificationChannel(String channelId) { NotificationChannel channel = new NotificationChannel(channelId, context.getString(R.string.app_name), NotificationManager.IMPORTANCE_HIGH); NotificationChannel channel = new NotificationChannel(channelId, context.getString(R.string.app_name), NotificationManager.IMPORTANCE_LOW); notificationManager.createNotificationChannel(channel); } Loading