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

import android.content.Intent;
import android.provider.ContactsContract.Contacts;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ah;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.ui.base.h;
import com.tencent.ytcommon.BuildConfig;

class PhoneRechargeUI$15 implements OnClickListener {
    final /* synthetic */ PhoneRechargeUI pHs;

    PhoneRechargeUI$15(PhoneRechargeUI phoneRechargeUI) {
        this.pHs = phoneRechargeUI;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(44269);
        if ((this.pHs.getPackageManager().checkPermission("android.permission.READ_CONTACTS", ah.getPackageName()) == 0 ? 1 : 0) != 0) {
            Intent intent = new Intent("android.intent.action.PICK", Contacts.CONTENT_URI);
            if (bo.k(this.pHs, intent)) {
                this.pHs.startActivityForResult(intent, 1);
            }
            AppMethodBeat.o(44269);
            return;
        }
        h.b(this.pHs, this.pHs.getString(2131305281), BuildConfig.FLAVOR, true);
        AppMethodBeat.o(44269);
    }
}
