mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-29 04:06:42 +02:00
Improved logging
This commit is contained in:
@@ -983,7 +983,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
|
||||
last = stats;
|
||||
|
||||
EntityLog.log(ServiceSynchronize.this, "Widget update");
|
||||
Widget.update(ServiceSynchronize.this);
|
||||
|
||||
boolean badge = prefs.getBoolean("badge", true);
|
||||
|
||||
@@ -254,6 +254,7 @@ public class Widget extends AppWidgetProvider {
|
||||
intent.setAction(AppWidgetManager.ACTION_APPWIDGET_UPDATE);
|
||||
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, appWidgetIds);
|
||||
context.sendBroadcast(intent);
|
||||
EntityLog.log(context, "Updated widgets count=" + appWidgetIds.length);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
/*
|
||||
|
||||
@@ -22,6 +22,7 @@ package eu.faircode.email;
|
||||
import android.app.PendingIntent;
|
||||
import android.appwidget.AppWidgetManager;
|
||||
import android.appwidget.AppWidgetProvider;
|
||||
import android.appwidget.AppWidgetProviderInfo;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
@@ -29,6 +30,7 @@ import android.content.SharedPreferences;
|
||||
import android.graphics.Color;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.text.TextUtils;
|
||||
import android.util.TypedValue;
|
||||
import android.view.View;
|
||||
import android.widget.RemoteViews;
|
||||
@@ -271,6 +273,7 @@ public class WidgetUnified extends AppWidgetProvider {
|
||||
try {
|
||||
int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(context, WidgetUnified.class));
|
||||
appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetIds, R.id.lv);
|
||||
EntityLog.log(context, "Updated widget data count=" + appWidgetIds.length);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user