Log foreground status

This commit is contained in:
M66B
2024-04-13 09:24:22 +02:00
parent 6422b7924f
commit 704a994c7d
2 changed files with 18 additions and 0 deletions

View File

@@ -468,6 +468,10 @@ public class Log {
event.addMetadata("extra", "theme", theme);
event.addMetadata("extra", "package", BuildConfig.APPLICATION_ID);
event.addMetadata("extra", "locale", Locale.getDefault().toString());
Boolean foreground = Helper.isOnForeground();
if (foreground != null)
event.addMetadata("extra", "foreground", Boolean.toString(foreground));
}
return should;