package com.android.billingclient.api; import android.content.Context; import com.google.android.gms.internal.play_billing.zzb; import com.google.android.gms.internal.play_billing.zzhe; /* loaded from: classes.dex */ final class w { /* renamed from: a, reason: collision with root package name */ private boolean f4102a; /* renamed from: b, reason: collision with root package name */ private o2.f f4103b; w(Context context) { try { q2.t.f(context); this.f4103b = q2.t.c().g(com.google.android.datatransport.cct.a.f4241g).a("PLAY_BILLING_LIBRARY", zzhe.class, o2.b.b("proto"), new o2.e() { // from class: n1.b0 @Override // o2.e public final Object apply(Object obj) { return ((zzhe) obj).zzc(); } }); } catch (Throwable unused) { this.f4102a = true; } } public final void a(zzhe zzheVar) { if (this.f4102a) { zzb.zzk("BillingLogger", "Skipping logging since initialization failed."); return; } try { this.f4103b.a(o2.c.d(zzheVar)); } catch (Throwable unused) { zzb.zzk("BillingLogger", "logging failed."); } } }