package com.tencent.mm.plugin.appbrand.jsapi.contact;

import android.support.v4.app.a.a;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.jsapi.c;
import org.json.JSONObject;

class c$2 implements a {
    final /* synthetic */ int eIl;
    final /* synthetic */ c hIj;
    final /* synthetic */ JSONObject hsm;
    final /* synthetic */ c hxc;

    c$2(c cVar, c cVar2, JSONObject jSONObject, int i) {
        this.hIj = cVar;
        this.hxc = cVar2;
        this.hsm = jSONObject;
        this.eIl = i;
    }

    public final void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
        AppMethodBeat.i(126270);
        if (i != 48) {
            AppMethodBeat.o(126270);
        } else if (iArr == null || iArr.length <= 0 || iArr[0] != 0) {
            this.hxc.M(this.eIl, this.hIj.j("permission_denied", null));
            AppMethodBeat.o(126270);
        } else {
            this.hIj.a(this.hxc, this.hsm, this.eIl);
            AppMethodBeat.o(126270);
        }
    }
}
