package com.ss.android.ugc.aweme.shortvideo.model;

import X.0Bs;
import X.0Bt;
import X.0Bv;
import X.0Bx;
import X.0By;
import X.1hK;
import X.2GD;
import X.2HN;
import android.content.Context;
import com.bytedance.covode.number.Covode;

public final class CanvasVideoEditorTrackViewModel extends 0Bt {
    public static final Companion Companion = new Companion((2HN) null);
    public int filterIndex = Integer.MIN_VALUE;

    static {
        Covode.recordClassIndex(110980);
    }

    public static final class Companion {
        static {
            Covode.recordClassIndex(110981);
        }

        public Companion() {
        }

        public /* synthetic */ Companion(2HN r1) {
            this();
        }

        public static 0Bx INVOKESTATIC_com_ss_android_ugc_aweme_shortvideo_model_CanvasVideoEditorTrackViewModel$Companion_androidx_lifecycle_VScopeLancet_of(1hK r2) {
            0Bx LIZ = 0By.LIZ(r2, (0Bv) null);
            if (2GD.LIZ) {
                0Bs.LIZ(LIZ, r2);
            }
            return LIZ;
        }

        public final CanvasVideoEditorTrackViewModel get(Context context) {
            if (context instanceof 1hK) {
                return INVOKESTATIC_com_ss_android_ugc_aweme_shortvideo_model_CanvasVideoEditorTrackViewModel$Companion_androidx_lifecycle_VScopeLancet_of((1hK) context).LIZ(CanvasVideoEditorTrackViewModel.class);
            }
            return null;
        }
    }

    public final boolean isFilterIndexValid() {
        if (this.filterIndex != Integer.MIN_VALUE) {
            return true;
        }
        return false;
    }
}
