package ca.canadapost.core.common.customView;

import android.app.Activity;
import android.view.View;
import com.google.android.material.snackbar.Snackbar;

/* loaded from: classes.dex */
public final class l {

    /* renamed from: d, reason: collision with root package name */
    public static final a f7730d = new a(null);

    /* renamed from: e, reason: collision with root package name */
    public static final int f7731e = 8;

    /* renamed from: a, reason: collision with root package name */
    private View f7732a;

    /* renamed from: b, reason: collision with root package name */
    private String f7733b = "";

    /* renamed from: c, reason: collision with root package name */
    private int f7734c = -1;

    /* loaded from: classes.dex */
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(kotlin.jvm.internal.k kVar) {
            this();
        }

        public final void a(Activity activity, String message) {
            kotlin.jvm.internal.t.g(activity, "activity");
            kotlin.jvm.internal.t.g(message, "message");
            l lVar = new l();
            lVar.a(message);
            lVar.c(activity);
        }
    }

    public final void a(String str) {
        kotlin.jvm.internal.t.g(str, "<set-?>");
        this.f7733b = str;
    }

    public final void b(View view) {
        this.f7732a = view;
    }

    public final void c(Activity activity) {
        kotlin.jvm.internal.t.g(activity, "activity");
        View view = this.f7732a;
        if (view == null) {
            view = activity.findViewById(h7.i.f21077v0);
            kotlin.jvm.internal.t.f(view, "findViewById(...)");
        }
        Snackbar.e0(view, this.f7733b, this.f7734c).R();
    }
}
