package com.tencent.mm.plugin.base.stub;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.pluginsdk.model.app.ao;
import com.tencent.mm.pluginsdk.model.app.p;
import com.tencent.mm.sdk.platformtools.ab;

public class WXCommProvider$1 extends BroadcastReceiver {
    final /* synthetic */ WXCommProvider jDR;

    WXCommProvider$1(WXCommProvider wXCommProvider) {
        this.jDR = wXCommProvider;
    }

    public void onReceive(Context context, Intent intent) {
        ao aoVar;
        AppMethodBeat.i(18162);
        if (System.currentTimeMillis() - ao.vdh >= 600000) {
            ab.e("MicroMsg.AppUtil", "hy: get comm model time expired");
            aoVar = null;
        } else {
            aoVar = ao.vdg;
        }
        if (aoVar != null) {
            ab.i("MicroMsg.WXCommProvider", "hy: has wxcomm query request. start to continue requesting");
            Cursor a = this.jDR.a(aoVar.uri, aoVar.projection, aoVar.selection, aoVar.selectionArgs, aoVar.vde, aoVar.code, aoVar.vdf);
            if (a != null) {
                a.close();
            }
            p.dhH();
        }
        AppMethodBeat.o(18162);
    }
}
