mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 10:03:51 +02:00
Debug: notifications' status
This commit is contained in:
@@ -2580,6 +2580,16 @@ public class Log {
|
||||
try (OutputStream os = new BufferedOutputStream(new FileOutputStream(file))) {
|
||||
NotificationManager nm = Helper.getSystemService(context, NotificationManager.class);
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||
boolean enabled = nm.areNotificationsEnabled();
|
||||
size += write(os, String.format("Enabled=%b %s\r\n",
|
||||
enabled, (enabled ? "" : "!!!")));
|
||||
}
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||
boolean paused = nm.areNotificationsPaused();
|
||||
size += write(os, String.format("Paused=%b %s\r\n",
|
||||
paused, (paused ? "!!!" : "")));
|
||||
}
|
||||
|
||||
String name;
|
||||
int filter = nm.getCurrentInterruptionFilter();
|
||||
|
||||
Reference in New Issue
Block a user