- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
104 lines
2.9 KiB
Java
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);
|
|
}
|
|
}
|