Revert "Debug: badger"

This reverts commit 7e762d0deb.
This commit is contained in:
M66B 2023-06-16 16:41:00 +02:00
parent 07c2dc8e27
commit 3cb9ebb7c8
2 changed files with 1 additions and 14 deletions

View File

@ -67,7 +67,7 @@ public class EntityLog {
public enum Type {General, Statistics, Scheduling, Network, Account, Protocol, Classification, Notification, Rules, Cloud, Debug}
public static void log(final Context context, String data) {
static void log(final Context context, String data) {
log(context, Type.General, data);
}

View File

@ -78,12 +78,8 @@ public final class ShortcutBadger {
public static boolean applyCount(Context context, int badgeCount) {
try {
applyCountOrThrow(context, badgeCount);
eu.faircode.email.EntityLog.log(context, "Applied badge count=" + badgeCount +
" badger=" + sShortcutBadger.getClass());
return true;
} catch (ShortcutBadgeException e) {
eu.faircode.email.EntityLog.log(context, "badger=" + sShortcutBadger.getClass() + "\n" +
e + "\n" + Log.getStackTraceString(e));
if (Log.isLoggable(LOG_TAG, Log.DEBUG)) {
Log.d(LOG_TAG, "Unable to execute badge", e);
}
@ -214,10 +210,6 @@ public final class ShortcutBadger {
ResolveInfo resolveInfoDefault = context.getPackageManager().resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY);
validateInfoList(resolveInfoDefault, resolveInfos);
for (ResolveInfo ri : resolveInfos)
eu.faircode.email.EntityLog.log(context, "Badger pkg=" + ri.activityInfo.packageName +
(ri.activityInfo.packageName.equals(resolveInfoDefault.activityInfo.packageName) ? "*" : ""));
for (ResolveInfo resolveInfo : resolveInfos) {
String currentHomePackage = resolveInfo.activityInfo.packageName;
@ -239,9 +231,6 @@ public final class ShortcutBadger {
}
}
eu.faircode.email.EntityLog.log(context, "Selected badger=" +
(sShortcutBadger == null ? null : sShortcutBadger.getClass()));
if (sShortcutBadger == null) {
if (Build.MANUFACTURER.equalsIgnoreCase("ZUK"))
sShortcutBadger = new ZukHomeBadger();
@ -255,8 +244,6 @@ public final class ShortcutBadger {
sShortcutBadger = new DefaultBadger();
}
eu.faircode.email.EntityLog.log(context, "Using badger=" + sShortcutBadger.getClass());
return true;
}