Small notification improvements

pull/163/head
M66B 6 years ago
parent 1e200e3e10
commit eaef4843dd

@ -3084,7 +3084,6 @@ class Core {
.setSummaryText(Helper.formatThrowable(ex))); .setSummaryText(Helper.formatThrowable(ex)));
} }
else { else {
//mbuilder.setLocalOnly(true);
if (!TextUtils.isEmpty(message.subject)) if (!TextUtils.isEmpty(message.subject))
mbuilder.setContentText(message.subject); mbuilder.setContentText(message.subject);
} }

@ -136,7 +136,8 @@ public class ServiceExternal extends Service {
.setShowWhen(false) .setShowWhen(false)
.setPriority(NotificationCompat.PRIORITY_MIN) .setPriority(NotificationCompat.PRIORITY_MIN)
.setCategory(NotificationCompat.CATEGORY_SERVICE) .setCategory(NotificationCompat.CATEGORY_SERVICE)
.setVisibility(NotificationCompat.VISIBILITY_SECRET); .setVisibility(NotificationCompat.VISIBILITY_SECRET)
.setLocalOnly(true);
return builder; return builder;
} }

@ -403,7 +403,8 @@ public class ServiceSynchronize extends ServiceBase {
.setShowWhen(false) .setShowWhen(false)
.setPriority(NotificationCompat.PRIORITY_MIN) .setPriority(NotificationCompat.PRIORITY_MIN)
.setCategory(NotificationCompat.CATEGORY_SERVICE) .setCategory(NotificationCompat.CATEGORY_SERVICE)
.setVisibility(NotificationCompat.VISIBILITY_SECRET); .setVisibility(NotificationCompat.VISIBILITY_SECRET)
.setLocalOnly(true);
if (lastStats.operations > 0) if (lastStats.operations > 0)
builder.setContentText(getResources().getQuantityString( builder.setContentText(getResources().getQuantityString(

Loading…
Cancel
Save