Skip to content

Commit

Permalink
Leave density=1.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Jul 4, 2019
1 parent f07870c commit 6c3c594
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6c3c594

Please sign in to comment.