Include screen measures in rageshakes for UI issues

Change-Id: I8d659b8150211b67aa8f563ef6f59a47665bc45f
This commit is contained in:
SpiritCroc 2023-01-15 14:35:28 +01:00
parent ba77e7fcc9
commit 72cca114d3
1 changed files with 8 additions and 0 deletions

View File

@ -323,6 +323,14 @@ class BugReporter @Inject constructor(
builder.addFormDataPart("enabledDebugSettings", enabledDebugSettings.joinToString())
.addFormDataPart("reportTime", reportTime)
.addFormDataPart("packageName", buildMeta.applicationId)
// Device characteristics
context.resources.displayMetrics.apply {
builder.addFormDataPart("device_density", density.toString())
.addFormDataPart("device_width_px", widthPixels.toString())
.addFormDataPart("device_height_px", heightPixels.toString())
.addFormDataPart("device_width_dp", (widthPixels/density).toString())
.addFormDataPart("device_height_dp", (heightPixels/density).toString())
}
// add the gzipped files
for (file in gzippedFiles) {