Files
rr3-apk/smali_classes2/com/google/android/gms/ads/nativead/MediaView.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

310 lines
8.4 KiB
Smali

.class public Lcom/google/android/gms/ads/nativead/MediaView;
.super Landroid/widget/FrameLayout;
.source "SourceFile"
# instance fields
.field private zza:Lcom/google/android/gms/ads/MediaContent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field private zzb:Z
.field private zzc:Landroid/widget/ImageView$ScaleType;
.field private zzd:Z
.field private zze:Lcom/google/android/gms/ads/nativead/zzb;
.field private zzf:Lcom/google/android/gms/ads/nativead/zzc;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 2
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 3
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroid/annotation/TargetApi;
value = 0x15
.end annotation
.line 4
invoke-direct {p0, p1, p2, p3, p4}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
return-void
.end method
# virtual methods
.method public getMediaContent()Lcom/google/android/gms/ads/MediaContent;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zza:Lcom/google/android/gms/ads/MediaContent;
return-object v0
.end method
.method public setImageScaleType(Landroid/widget/ImageView$ScaleType;)V
.locals 1
.param p1 # Landroid/widget/ImageView$ScaleType;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zzd:Z
iput-object p1, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zzc:Landroid/widget/ImageView$ScaleType;
iget-object v0, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zzf:Lcom/google/android/gms/ads/nativead/zzc;
if-eqz v0, :cond_0
.line 1
iget-object v0, v0, Lcom/google/android/gms/ads/nativead/zzc;->zza:Lcom/google/android/gms/ads/nativead/NativeAdView;
invoke-virtual {v0, p1}, Lcom/google/android/gms/ads/nativead/NativeAdView;->zzc(Landroid/widget/ImageView$ScaleType;)V
:cond_0
return-void
.end method
.method public setMediaContent(Lcom/google/android/gms/ads/MediaContent;)V
.locals 2
.param p1 # Lcom/google/android/gms/ads/MediaContent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zzb:Z
iput-object p1, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zza:Lcom/google/android/gms/ads/MediaContent;
iget-object v0, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zze:Lcom/google/android/gms/ads/nativead/zzb;
if-eqz v0, :cond_0
.line 1
iget-object v0, v0, Lcom/google/android/gms/ads/nativead/zzb;->zza:Lcom/google/android/gms/ads/nativead/NativeAdView;
invoke-virtual {v0, p1}, Lcom/google/android/gms/ads/nativead/NativeAdView;->zzb(Lcom/google/android/gms/ads/MediaContent;)V
:cond_0
if-nez p1, :cond_1
goto :goto_1
:cond_1
:try_start_0
invoke-interface {p1}, Lcom/google/android/gms/ads/MediaContent;->zza()Lcom/google/android/gms/internal/ads/zzbgq;
move-result-object v0
if-eqz v0, :cond_4
.line 2
invoke-interface {p1}, Lcom/google/android/gms/ads/MediaContent;->hasVideoContent()Z
move-result v1
if-eqz v1, :cond_2
.line 3
invoke-static {p0}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
move-result-object p1
invoke-interface {v0, p1}, Lcom/google/android/gms/internal/ads/zzbgq;->zzs(Lcom/google/android/gms/dynamic/IObjectWrapper;)Z
move-result p1
goto :goto_0
:catch_0
move-exception p1
goto :goto_2
.line 4
:cond_2
invoke-interface {p1}, Lcom/google/android/gms/ads/MediaContent;->zzb()Z
move-result p1
if-eqz p1, :cond_3
.line 5
invoke-static {p0}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
move-result-object p1
invoke-interface {v0, p1}, Lcom/google/android/gms/internal/ads/zzbgq;->zzr(Lcom/google/android/gms/dynamic/IObjectWrapper;)Z
move-result p1
:goto_0
if-nez p1, :cond_4
.line 6
:cond_3
invoke-virtual {p0}, Landroid/view/ViewGroup;->removeAllViews()V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
:cond_4
:goto_1
return-void
.line 7
:goto_2
invoke-virtual {p0}, Landroid/view/ViewGroup;->removeAllViews()V
const-string v0, ""
.line 8
invoke-static {v0, p1}, Lcom/google/android/gms/ads/internal/util/client/zzo;->zzh(Ljava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method
.method public final declared-synchronized zza(Lcom/google/android/gms/ads/nativead/zzb;)V
.locals 1
monitor-enter p0
:try_start_0
iput-object p1, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zze:Lcom/google/android/gms/ads/nativead/zzb;
iget-boolean v0, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zzb:Z
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zza:Lcom/google/android/gms/ads/MediaContent;
.line 1
iget-object p1, p1, Lcom/google/android/gms/ads/nativead/zzb;->zza:Lcom/google/android/gms/ads/nativead/NativeAdView;
invoke-virtual {p1, v0}, Lcom/google/android/gms/ads/nativead/NativeAdView;->zzb(Lcom/google/android/gms/ads/MediaContent;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
goto :goto_0
:cond_0
monitor-exit p0
return-void
:goto_0
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized zzb(Lcom/google/android/gms/ads/nativead/zzc;)V
.locals 1
monitor-enter p0
:try_start_0
iput-object p1, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zzf:Lcom/google/android/gms/ads/nativead/zzc;
iget-boolean v0, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zzd:Z
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/android/gms/ads/nativead/MediaView;->zzc:Landroid/widget/ImageView$ScaleType;
.line 1
iget-object p1, p1, Lcom/google/android/gms/ads/nativead/zzc;->zza:Lcom/google/android/gms/ads/nativead/NativeAdView;
invoke-virtual {p1, v0}, Lcom/google/android/gms/ads/nativead/NativeAdView;->zzc(Landroid/widget/ImageView$ScaleType;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
goto :goto_0
:cond_0
monitor-exit p0
return-void
:goto_0
monitor-exit p0
throw p1
.end method