Small notification improvements

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

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

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

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

Loading…
Cancel
Save