Files
rr3-apk/decompiled/sources/com/google/android/gms/ads/nativead/MediaView.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

104 lines
2.9 KiB
Java

package com.google.android.gms.ads.nativead;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.RemoteException;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.ads.MediaContent;
import com.google.android.gms.ads.internal.util.client.zzo;
import com.google.android.gms.dynamic.ObjectWrapper;
import com.google.android.gms.internal.ads.zzbgq;
/* loaded from: classes2.dex */
public class MediaView extends FrameLayout {
@Nullable
private MediaContent zza;
private boolean zzb;
private ImageView.ScaleType zzc;
private boolean zzd;
private zzb zze;
private zzc zzf;
public MediaView(@NonNull Context context) {
super(context);
}
@Nullable
public MediaContent getMediaContent() {
return this.zza;
}
public void setImageScaleType(@NonNull ImageView.ScaleType scaleType) {
this.zzd = true;
this.zzc = scaleType;
zzc zzcVar = this.zzf;
if (zzcVar != null) {
zzcVar.zza.zzc(scaleType);
}
}
public void setMediaContent(@Nullable MediaContent mediaContent) {
boolean zzr;
this.zzb = true;
this.zza = mediaContent;
zzb zzbVar = this.zze;
if (zzbVar != null) {
zzbVar.zza.zzb(mediaContent);
}
if (mediaContent == null) {
return;
}
try {
zzbgq zza = mediaContent.zza();
if (zza != null) {
if (!mediaContent.hasVideoContent()) {
if (mediaContent.zzb()) {
zzr = zza.zzr(ObjectWrapper.wrap(this));
}
removeAllViews();
}
zzr = zza.zzs(ObjectWrapper.wrap(this));
if (zzr) {
return;
}
removeAllViews();
}
} catch (RemoteException e) {
removeAllViews();
zzo.zzh("", e);
}
}
public final synchronized void zza(zzb zzbVar) {
this.zze = zzbVar;
if (this.zzb) {
zzbVar.zza.zzb(this.zza);
}
}
public final synchronized void zzb(zzc zzcVar) {
this.zzf = zzcVar;
if (this.zzd) {
zzcVar.zza.zzc(this.zzc);
}
}
public MediaView(@NonNull Context context, @NonNull AttributeSet attributeSet) {
super(context, attributeSet);
}
public MediaView(@NonNull Context context, @NonNull AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
@TargetApi(21)
public MediaView(@NonNull Context context, @NonNull AttributeSet attributeSet, int i, int i2) {
super(context, attributeSet, i, i2);
}
}