Don't set notification content to app name

pull/513/head
Alex Baker 8 years ago
parent 5533371cc5
commit fd376e37fc

@ -372,7 +372,6 @@ public class NotificationManager {
new NotificationCompat.Builder(context, NotificationManager.NOTIFICATION_CHANNEL_DEFAULT) new NotificationCompat.Builder(context, NotificationManager.NOTIFICATION_CHANNEL_DEFAULT)
.setCategory(NotificationCompat.CATEGORY_REMINDER) .setCategory(NotificationCompat.CATEGORY_REMINDER)
.setContentTitle(taskTitle) .setContentTitle(taskTitle)
.setContentText(context.getString(R.string.app_name))
.setColor(checkBoxes.getPriorityColor(task.getPriority())) .setColor(checkBoxes.getPriorityColor(task.getPriority()))
.setSmallIcon(R.drawable.ic_check_white_24dp) .setSmallIcon(R.drawable.ic_check_white_24dp)
.setWhen(when) .setWhen(when)
@ -389,7 +388,9 @@ public class NotificationManager {
PendingIntent.getActivity(context, (int) id, intent, PendingIntent.FLAG_UPDATE_CURRENT)); PendingIntent.getActivity(context, (int) id, intent, PendingIntent.FLAG_UPDATE_CURRENT));
if (!Strings.isNullOrEmpty(taskDescription)) { if (!Strings.isNullOrEmpty(taskDescription)) {
builder.setStyle(new NotificationCompat.BigTextStyle().bigText(taskDescription)); builder
.setContentText(taskDescription)
.setStyle(new NotificationCompat.BigTextStyle().bigText(taskDescription));
} }
Intent completeIntent = new Intent(context, CompleteTaskReceiver.class); Intent completeIntent = new Intent(context, CompleteTaskReceiver.class);
completeIntent.putExtra(CompleteTaskReceiver.TASK_ID, id); completeIntent.putExtra(CompleteTaskReceiver.TASK_ID, id);

Loading…
Cancel
Save