From 6c3c594b7acddbc726573aecb2c1200b1a254af5 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Tue, 14 May 2019 09:23:55 +0200 Subject: [PATCH] Leave density=1. #12 --- .../tablelayout/android/AndroidToolkit.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tablelayout-android/src/com/esotericsoftware/tablelayout/android/AndroidToolkit.java b/tablelayout-android/src/com/esotericsoftware/tablelayout/android/AndroidToolkit.java index 2596453..911f834 100644 --- a/tablelayout-android/src/com/esotericsoftware/tablelayout/android/AndroidToolkit.java +++ b/tablelayout-android/src/com/esotericsoftware/tablelayout/android/AndroidToolkit.java @@ -120,9 +120,9 @@ static public void setup (Activity activity, Class drawableClass) { // if (!drawableClass.getName().endsWith(".R$drawable")) // throw new RuntimeException("The drawable class must be R.drawable: " + drawableClass); - DisplayMetrics metrics = new DisplayMetrics(); - activity.getWindowManager().getDefaultDisplay().getMetrics(metrics); - density = metrics.density; + // DisplayMetrics metrics = new DisplayMetrics(); + // activity.getWindowManager().getDefaultDisplay().getMetrics(metrics); + // density = metrics.density; drawableToID.clear(); Field[] fields = drawableClass.getFields();