Added debug info

This commit is contained in:
M66B
2019-07-15 09:18:03 +02:00
parent 631fc07b8d
commit c9b46d6ecb

View File

@@ -248,7 +248,8 @@ public class Log {
Point size = new Point();
display.getSize(size);
float density = context.getResources().getDisplayMetrics().density;
sb.append(String.format("Resolution: %.2f x %.2f dp %b\r\n",
sb.append(String.format("Density %f resolution: %.2f x %.2f dp %b\r\n",
density,
size.x / density, size.y / density,
context.getResources().getConfiguration().isLayoutSizeAtLeast(Configuration.SCREENLAYOUT_SIZE_NORMAL)));