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

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

class JsApiStartRecordVoice$4 implements a {
    final /* synthetic */ int eIl;
    final /* synthetic */ JsApiStartRecordVoice hBk;
    final /* synthetic */ q hsD;
    final /* synthetic */ JSONObject hsm;

    JsApiStartRecordVoice$4(JsApiStartRecordVoice jsApiStartRecordVoice, q qVar, JSONObject jSONObject, int i) {
        this.hBk = jsApiStartRecordVoice;
        this.hsD = qVar;
        this.hsm = jSONObject;
        this.eIl = i;
    }

    public final void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
        AppMethodBeat.i(130787);
        if (i != 116) {
            AppMethodBeat.o(130787);
        } else if (iArr == null || iArr.length <= 0 || iArr[0] != 0) {
            this.hsD.M(this.eIl, this.hBk.j("fail:system permission denied", null));
            AppMethodBeat.o(130787);
        } else {
            this.hBk.a(this.hsD, this.hsm, this.eIl);
            AppMethodBeat.o(130787);
        }
    }
}
