package com.google.android.gms.internal.ads; import android.content.Context; import com.google.android.gms.ads.internal.overlay.AdOverlayInfoParcel; import com.google.android.gms.ads.internal.util.client.VersionInfoParcel; import com.google.common.util.concurrent.ListenableFuture; /* loaded from: classes3.dex */ final class zzedj implements zzdgc { private final VersionInfoParcel zza; private final ListenableFuture zzb; private final zzfbo zzc; private final zzcex zzd; private final zzfcj zze; private final zzbjs zzf; private final boolean zzg; private final zzebv zzh; private final zzdrw zzi; public zzedj(VersionInfoParcel versionInfoParcel, ListenableFuture listenableFuture, zzfbo zzfboVar, zzcex zzcexVar, zzfcj zzfcjVar, boolean z, zzbjs zzbjsVar, zzebv zzebvVar, zzdrw zzdrwVar) { this.zza = versionInfoParcel; this.zzb = listenableFuture; this.zzc = zzfboVar; this.zzd = zzcexVar; this.zze = zzfcjVar; this.zzg = z; this.zzf = zzbjsVar; this.zzh = zzebvVar; this.zzi = zzdrwVar; } @Override // com.google.android.gms.internal.ads.zzdgc public final void zza(boolean z, Context context, zzcwg zzcwgVar) { zzcnx zzcnxVar = (zzcnx) zzgch.zzq(this.zzb); this.zzd.zzaq(true); boolean zze = this.zzg ? this.zzf.zze(true) : true; boolean z2 = this.zzg; com.google.android.gms.ads.internal.zzl zzlVar = new com.google.android.gms.ads.internal.zzl(zze, true, z2 ? this.zzf.zzd() : false, z2 ? this.zzf.zza() : 0.0f, -1, z, this.zzc.zzO, false); if (zzcwgVar != null) { zzcwgVar.zzf(); } com.google.android.gms.ads.internal.zzv.zzj(); zzdfr zzg = zzcnxVar.zzg(); zzcex zzcexVar = this.zzd; int i = this.zzc.zzQ; if (i == -1) { com.google.android.gms.ads.internal.client.zzy zzyVar = this.zze.zzj; if (zzyVar != null) { int i2 = zzyVar.zza; if (i2 == 1) { i = 7; } else if (i2 == 2) { i = 6; } } com.google.android.gms.ads.internal.util.client.zzo.zze("Error setting app open orientation; no targeting orientation available."); i = this.zzc.zzQ; } int i3 = i; VersionInfoParcel versionInfoParcel = this.zza; zzfbo zzfboVar = this.zzc; String str = zzfboVar.zzB; zzfbt zzfbtVar = zzfboVar.zzs; com.google.android.gms.ads.internal.overlay.zzn.zza(context, new AdOverlayInfoParcel(null, zzg, null, zzcexVar, i3, versionInfoParcel, str, zzlVar, zzfbtVar.zzb, zzfbtVar.zza, this.zze.zzf, zzcwgVar, zzfboVar.zzb() ? this.zzh : null, this.zzd.zzr()), true, this.zzi); } }