@SuppressLint("DefaultLocale")
  public boolean enableFlag(LottieFeatureFlag flag, boolean enable) {
    if (enable) {
      if (Build.VERSION.SDK_INT < flag.minRequiredSdkVersion) {
        Logger.warning(String.format("%s is not supported pre SDK %d", flag.name(), flag.minRequiredSdkVersion));
        return false;
      }
      return enabledFlags.add(flag);
    } else {
      return enabledFlags.remove(flag);
    }
  }
Returns true if the flag was changed.
lottie/src/main/java/com/airbnb/lottie/LottieFeatureFlags.java