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

import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.account.ui.ContactsSyncUI.a;
import com.tencent.mm.sdk.platformtools.ah;

class ContactsSyncUI$a$2 implements OnClickListener {
    final /* synthetic */ a gAC;
    final /* synthetic */ String gAD;
    final /* synthetic */ Context val$context;

    ContactsSyncUI$a$2(a aVar, Context context, String str) {
        this.gAC = aVar;
        this.val$context = context;
        this.gAD = str;
    }

    public final void onClick(DialogInterface dialogInterface, int i) {
        AppMethodBeat.i(124745);
        g.RP().Ry().set(12322, Boolean.TRUE);
        this.gAC.gAz.getSharedPreferences(ah.doA(), 0).edit().putBoolean("upload_contacts_already_displayed", true).commit();
        this.gAC.P(this.val$context, this.gAD);
        if (this.val$context instanceof Activity) {
            ((Activity) this.val$context).finish();
        }
        AppMethodBeat.o(124745);
    }
}
