We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fun calculateQuality(context: Context): Int { val dm = DisplayMetrics() (context.getSystemService(Context.WINDOW_SERVICE) as WindowManager) .defaultDisplay.getMetrics(dm) val density = dm.density return if (density > 3f) { DEFAULT_LOW_QUALITY } else if (density > 2.5f && density <= 3f) { DEFAULT_QUALITY } else if (density > 2f && density <= 2.5f) { DEFAULT_HEIGHT_QUALITY } else if (density > 1.5f && density <= 2f) { DEFAULT_X_HEIGHT_QUALITY } else { DEFAULT_XX_HEIGHT_QUALITY } }
按我的理解,应该越低dpi的手机才应该压缩的越狠吧
The text was updated successfully, but these errors were encountered:
No branches or pull requests
按我的理解,应该越低dpi的手机才应该压缩的越狠吧
The text was updated successfully, but these errors were encountered: