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

import android.content.Intent;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.f;
import com.tencent.mm.ai.m;
import com.tencent.mm.kernel.g;
import com.tencent.mm.modelsimple.r;
import com.tencent.mm.plugin.account.ui.RegByMobileSetPwdUI;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.al;

class SettingsUI$9 implements f {
    final /* synthetic */ SettingsUI qpA;

    SettingsUI$9(SettingsUI settingsUI) {
        this.qpA = settingsUI;
    }

    public final void onSceneEnd(final int i, final int i2, String str, final m mVar) {
        AppMethodBeat.i(127569);
        ab.d("MicroMsg.SettingsUI", "onSceneEnd " + i + " errCode " + i2 + " errMsg " + str + "  " + mVar.getType());
        al.d(new Runnable() {
            public final void run() {
                AppMethodBeat.i(127568);
                g.Rg().b(255, SettingsUI.q(SettingsUI$9.this.qpA));
                SettingsUI.r(SettingsUI$9.this.qpA);
                if (SettingsUI.s(SettingsUI$9.this.qpA) != null) {
                    SettingsUI.s(SettingsUI$9.this.qpA).stopTimer();
                    SettingsUI.t(SettingsUI$9.this.qpA);
                }
                if (SettingsUI.o(SettingsUI$9.this.qpA) != null) {
                    SettingsUI.o(SettingsUI$9.this.qpA).dismiss();
                }
                if (mVar.getType() == 255 && ((r) mVar).fPr == 2) {
                    if (i2 == -3 && i == 4) {
                        Intent intent = new Intent(SettingsUI$9.this.qpA.mController.ylL, RegByMobileSetPwdUI.class);
                        intent.putExtra("kintent_hint", SettingsUI$9.this.qpA.getString(2131302301));
                        SettingsUI$9.this.qpA.startActivityForResult(intent, 5);
                        AppMethodBeat.o(127568);
                        return;
                    }
                    SettingsUI.u(SettingsUI$9.this.qpA);
                }
                AppMethodBeat.o(127568);
            }
        });
        AppMethodBeat.o(127569);
    }
}
