mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Improved debug info
This commit is contained in:
parent
b5b5a9a70c
commit
fec61b415e
1 changed files with 15 additions and 1 deletions
|
@ -22,6 +22,7 @@ package eu.faircode.email;
|
|||
import android.app.ActivityManager;
|
||||
import android.app.ApplicationExitInfo;
|
||||
import android.app.Dialog;
|
||||
import android.app.Notification;
|
||||
import android.app.NotificationChannel;
|
||||
import android.app.NotificationManager;
|
||||
import android.app.usage.UsageStatsManager;
|
||||
|
@ -2312,7 +2313,20 @@ public class Log {
|
|||
size += write(os, ex.toString() + "\r\n");
|
||||
}
|
||||
|
||||
size += write(os, "Importance none=0; min=1; low=2; default=3; high=4; max=5\r\n\r\n");
|
||||
size += write(os,
|
||||
String.format("Importance none=%d; min=%d; low=%d; default=%d; high=%d; max=%d; unspecified=%d\r\n",
|
||||
NotificationManager.IMPORTANCE_NONE,
|
||||
NotificationManager.IMPORTANCE_MIN,
|
||||
NotificationManager.IMPORTANCE_LOW,
|
||||
NotificationManager.IMPORTANCE_DEFAULT,
|
||||
NotificationManager.IMPORTANCE_HIGH,
|
||||
NotificationManager.IMPORTANCE_MAX,
|
||||
NotificationManager.IMPORTANCE_UNSPECIFIED));
|
||||
size += write(os,
|
||||
String.format("Visibility private=%d; public=%d; secret=%d\r\n",
|
||||
Notification.VISIBILITY_PRIVATE,
|
||||
Notification.VISIBILITY_PUBLIC,
|
||||
Notification.VISIBILITY_SECRET));
|
||||
}
|
||||
|
||||
db.attachment().setDownloaded(attachment.id, size);
|
||||
|
|
Loading…
Reference in a new issue