Small notification improvements

This commit is contained in:
M66B 2019-10-16 15:18:59 +02:00
parent 1e200e3e10
commit eaef4843dd
3 changed files with 4 additions and 3 deletions

View File

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

View File

@ -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;
}

View File

@ -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(