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

import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;

/* JADX INFO: loaded from: classes2.dex */
public abstract class nr extends zi implements or {
    public nr() {
        super("com.google.android.gms.ads.internal.formats.client.IOnCustomClickListener");
    }

    @Override // com.google.android.gms.internal.ads.zi
    public final boolean Q2(int i10, Parcel parcel, Parcel parcel2) {
        gr frVar;
        if (i10 != 1) {
            return false;
        }
        IBinder strongBinder = parcel.readStrongBinder();
        if (strongBinder == null) {
            frVar = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.INativeCustomTemplateAd");
            frVar = iInterfaceQueryLocalInterface instanceof gr ? (gr) iInterfaceQueryLocalInterface : new fr(strongBinder);
        }
        String string = parcel.readString();
        aj.e(parcel);
        ((gs) this).V0(frVar, string);
        parcel2.writeNoException();
        return true;
    }
}
