package com.tencent.mm.plugin.appbrand.ui;

import a.l;
import android.content.Context;
import android.content.DialogInterface.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.appbrand.ipc.AppBrandProxyUIProcessTask;
import com.tencent.mm.plugin.appbrand.ipc.AppBrandProxyUIProcessTask$ProcessRequest;
import com.tencent.mm.plugin.appbrand.ipc.AppBrandProxyUIProcessTask.ProcessResult;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.ui.MMActivity;
import com.tencent.mm.ui.base.h;

@l(dWo = {1, 1, 13}, dWp = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0002\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\b\u0010\u0005\u001a\u00020\u0006H\u0002J\u0012\u0010\u0007\u001a\u00020\b2\b\u0010\t\u001a\u0004\u0018\u00010\nH\u0014R\u000e\u0010\u0003\u001a\u00020\u0004XD¢\u0006\u0002\n\u0000¨\u0006\u000b"}, dWq = {"Lcom/tencent/mm/plugin/appbrand/ui/AccountReleasePromptMMTask;", "Lcom/tencent/mm/plugin/appbrand/ipc/AppBrandProxyUIProcessTask;", "()V", "TAG", "", "checkShouldLogin", "", "handleRequest", "", "request", "Lcom/tencent/mm/plugin/appbrand/ipc/AppBrandProxyUIProcessTask$ProcessRequest;", "plugin-appbrand-integration_release"})
final class a extends AppBrandProxyUIProcessTask {
    private final String TAG = "MicroMsg.AccountReleasePromptMMTask";

    public static final /* synthetic */ void a(a aVar, ProcessResult processResult) {
        AppMethodBeat.i(134980);
        aVar.a(processResult);
        AppMethodBeat.o(134980);
    }

    public static final /* synthetic */ MMActivity b(a aVar) {
        AppMethodBeat.i(134979);
        MMActivity aBQ = aVar.aBQ();
        AppMethodBeat.o(134979);
        return aBQ;
    }

    public final void a(AppBrandProxyUIProcessTask$ProcessRequest appBrandProxyUIProcessTask$ProcessRequest) {
        AppMethodBeat.i(134976);
        if (aMa()) {
            h.a((Context) aBQ(), getString(2131296541), getString(2131297061), getString(2131296583), false, (OnClickListener) new a(this));
            new b(this).dnU();
            AppMethodBeat.o(134976);
            return;
        }
        a((ProcessResult) new AccountReleaseProxyUILaunchResult());
        AppMethodBeat.o(134976);
    }

    private final boolean aMa() {
        AppMethodBeat.i(134977);
        if (com.tencent.mm.kernel.a.QT()) {
            ab.i(this.TAG, "checkShouldLogin account hold, return true");
            AppMethodBeat.o(134977);
            return true;
        } else if (g.RQ().RJ() && g.RN().QY()) {
            ab.i(this.TAG, "checkShouldLogin account initialized, return false");
            AppMethodBeat.o(134977);
            return false;
        } else {
            ab.i(this.TAG, "checkShouldLogin fallback return true");
            AppMethodBeat.o(134977);
            return true;
        }
    }
}
