package app.revanced.extension.youtube.patches.utils;

import com.airbnb.lottie.LottieAnimationView;

import app.revanced.extension.shared.utils.Logger;

public class LottieAnimationViewPatch {

    public static void setLottieAnimationRawResources(LottieAnimationView lottieAnimationView, int rawRes) {
        if (lottieAnimationView == null) {
            Logger.printDebug(() -> "View is null");
            return;
        }
        if (rawRes == 0) {
            Logger.printDebug(() -> "Resource is not found");
            return;
        }
        setAnimation(lottieAnimationView, rawRes);
    }

    @SuppressWarnings("unused")
    private static void setAnimation(LottieAnimationView lottieAnimationView, int rawRes) {
        // Rest of the implementation added by patch.
    }
}
