package com.google.android.gms.internal.ads;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import java.util.List;

/* JADX INFO: loaded from: classes2.dex */
public final class uh extends li {

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final /* synthetic */ int f17252h = 1;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public Object f17253i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final Object f17254j;

    public uh(mh mhVar, we weVar, int i10, Context context) {
        super(mhVar, "t0O1yTkaf8U85RYVI/Iw764S7xVo2UnzoC6xqdKHezEduB25T+k9NlupfapwCNk2", "NAFu5DHVi3o3yaFx1OCpv/KBsMCIhscKWxn1MzThPRk=", weVar, i10, 31);
        this.f17253i = null;
        this.f17254j = context;
    }

    @Override // com.google.android.gms.internal.ads.li
    public final void a() {
        switch (this.f17252h) {
            case 0:
                View view = (View) this.f17254j;
                if (view == null) {
                    return;
                }
                boolean zBooleanValue = ((Boolean) n7.y.f31093e.f31096c.b(ao.f8866g3)).booleanValue();
                Object[] objArr = (Object[]) this.f13704e.invoke(null, view, (Activity) this.f17253i, Boolean.valueOf(zBooleanValue));
                we weVar = this.f13703d;
                synchronized (weVar) {
                    try {
                        long jLongValue = ((Long) objArr[0]).longValue();
                        weVar.c();
                        ((pf) weVar.f8617b).e0(jLongValue);
                        long jLongValue2 = ((Long) objArr[1]).longValue();
                        weVar.c();
                        ((pf) weVar.f8617b).f0(jLongValue2);
                        if (zBooleanValue) {
                            String str = (String) objArr[2];
                            weVar.c();
                            ((pf) weVar.f8617b).g0(str);
                        }
                    } finally {
                    }
                    break;
                }
                return;
            default:
                we weVar2 = this.f13703d;
                weVar2.c();
                ((pf) weVar2.f8617b).C(-1L);
                weVar2.c();
                ((pf) weVar2.f8617b).D(-1L);
                Context context = (Context) this.f17254j;
                if (context == null) {
                    context = this.f13700a.f14219a;
                }
                if (((List) this.f17253i) == null) {
                    this.f17253i = (List) this.f13704e.invoke(null, context);
                }
                List list = (List) this.f17253i;
                if (list == null || list.size() != 2) {
                    return;
                }
                synchronized (weVar2) {
                    long jLongValue3 = ((Long) ((List) this.f17253i).get(0)).longValue();
                    weVar2.c();
                    ((pf) weVar2.f8617b).C(jLongValue3);
                    long jLongValue4 = ((Long) ((List) this.f17253i).get(1)).longValue();
                    weVar2.c();
                    ((pf) weVar2.f8617b).D(jLongValue4);
                    break;
                }
                return;
        }
    }

    public uh(mh mhVar, we weVar, int i10, View view, Activity activity) {
        super(mhVar, "v55I7GonHWsamYbBtyIFKaZFQR/sofAKKTQsUzMKV1C6iCJ1v6Vqzq9x9meUl2ez", "Z7zWno+0eCAtcsPK71T7clKp8ZTgICQrdpeo5cTQYQo=", weVar, i10, 62);
        this.f17254j = view;
        this.f17253i = activity;
    }
}
