Use dimen instead of Utils.dpToPx

This commit is contained in:
Mygod
2017-01-20 03:46:43 +08:00
parent 99d97d1dbd
commit b95bee968a
5 changed files with 7 additions and 8 deletions
@@ -56,8 +56,6 @@ object Utils {
new String(Base64.encode(mdg.digest, 0))
}
def dpToPx(context: Context, dp: Int): Int = Math.round(dp * context.getResources.getDisplayMetrics.density)
/*
* round or floor depending on whether you are using offsets(floor) or
* widths(round)