1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Added logging

This commit is contained in:
M66B 2020-07-29 08:32:15 +02:00
parent ae0c2478cf
commit b331c69331

View file

@ -97,6 +97,7 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
public void onChanged(TupleUnsent unsent) { public void onChanged(TupleUnsent unsent) {
if (unsent == null || !unsent.equals(lastUnsent)) { if (unsent == null || !unsent.equals(lastUnsent)) {
lastUnsent = unsent; lastUnsent = unsent;
EntityLog.log(ServiceSend.this, "Unsent=" + (unsent == null ? null : unsent.count));
try { try {
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);