Skip to content

Commit

Permalink
Improve AutoSizeCompat#autoConvertDensity
Browse files Browse the repository at this point in the history
  • Loading branch information
JessYanCoding committed Jan 8, 2019
1 parent 6a28212 commit a159646
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@
import android.content.res.Resources;
import android.util.DisplayMetrics;

import java.util.Locale;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import me.jessyan.autosize.external.ExternalAdaptInfo;
import me.jessyan.autosize.external.ExternalAdaptManager;
import me.jessyan.autosize.internal.CustomAdapt;
import me.jessyan.autosize.utils.LogUtils;
import me.jessyan.autosize.utils.Preconditions;

/**
Expand Down Expand Up @@ -180,11 +178,6 @@ public static void autoConvertDensity(Resources resources, float sizeInDp, boole
}

setDensity(resources, targetDensity, targetDensityDpi, targetScaledDensity, targetXdpi);

LogUtils.d(String.format(Locale.ENGLISH, "AutoSizeCompat is running! \nAdapt Info: isBaseOnWidth = %s, %s = %f, %s = %f, targetDensity = %f, targetScaledDensity = %f, targetDensityDpi = %d, targetXdpi = %f"
, isBaseOnWidth, isBaseOnWidth ? "designWidthInDp"
: "designHeightInDp", sizeInDp, isBaseOnWidth ? "designWidthInSubunits" : "designHeightInSubunits", subunitsDesignSize
, targetDensity, targetScaledDensity, targetDensityDpi, targetXdpi));
}

/**
Expand Down

0 comments on commit a159646

Please sign in to comment.