public static float dpScale() {
    return Resources.getSystem().getDisplayMetrics().density;
  }
Wrap in Local Thread is necessary for prevent race condition in multi-threaded mode
lottie/src/main/java/com/airbnb/lottie/utils/Utils.java