#292 - Refactoring getThreshold() to use DisplayMetrics instead of API Conditional and deprecated getWidth()