package com.tencent.mm.plugin.story.f;

import a.f.a.a;
import a.f.b.j;
import a.l;
import a.y;
import android.content.Context;
import android.content.DialogInterface.OnCancelListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ui.base.p;

@l(dWo = {1, 1, 13}, dWp = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0006\u0010\b\u001a\u00020\u0007J\u000e\u0010\t\u001a\u00020\u00072\u0006\u0010\n\u001a\u00020\u000bJ\u0014\u0010\f\u001a\u00020\u00072\f\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006J\u000e\u0010\u000e\u001a\u00020\u00072\u0006\u0010\u000f\u001a\u00020\u0010J&\u0010\u000e\u001a\u00020\u00072\u0006\u0010\u000f\u001a\u00020\u00102\b\b\u0002\u0010\u0011\u001a\u00020\u000b2\f\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006R\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u000e¢\u0006\u0002\n\u0000R\u0014\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006X\u000e¢\u0006\u0002\n\u0000¨\u0006\u0013"}, dWq = {"Lcom/tencent/mm/plugin/story/presenter/EditorPresenter$StoryProgressDialog;", "", "()V", "loading", "Lcom/tencent/mm/ui/base/MMProgressDialog;", "mCancel", "Lkotlin/Function0;", "", "dismiss", "setCancelable", "enable", "", "setOnCancel", "onCancel", "show", "context", "Landroid/content/Context;", "cancelAble", "cancel", "plugin-story_release"})
public final class c$a {
    p llm;
    a<y> rYx = ((a) a.rYy);

    public c$a() {
        AppMethodBeat.i(109523);
        AppMethodBeat.o(109523);
    }

    public final void a(Context context, boolean z, a<y> aVar) {
        AppMethodBeat.i(109521);
        j.p(context, "context");
        j.p(aVar, "cancel");
        this.rYx = aVar;
        if (this.llm == null) {
            this.llm = p.b(context, context.getString(2131300968), z, (OnCancelListener) new c(this));
        }
        AppMethodBeat.o(109521);
    }

    public final void dismiss() {
        AppMethodBeat.i(109522);
        p pVar = this.llm;
        if (pVar != null) {
            pVar.dismiss();
        }
        this.llm = null;
        AppMethodBeat.o(109522);
    }
}
