248 lines
5.6 KiB
Smali
248 lines
5.6 KiB
Smali
.class public final Lcom/google/android/gms/internal/ads/zzcfo;
|
|
.super Ljava/lang/Object;
|
|
.source "com.google.android.gms:play-services-ads@@19.1.0"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x13
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private zzfxm:Landroid/widget/PopupWindow;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private zzvf:Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static zzd(Landroid/content/Context;Landroid/view/View;)Landroid/widget/PopupWindow;
|
|
.locals 5
|
|
|
|
.line 1
|
|
instance-of v0, p0, Landroid/app/Activity;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Landroid/app/Activity;
|
|
|
|
invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v0, v1
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
.line 4
|
|
:cond_1
|
|
move-object v2, p0
|
|
|
|
check-cast v2, Landroid/app/Activity;
|
|
|
|
invoke-virtual {v2}, Landroid/app/Activity;->isDestroyed()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
return-object v1
|
|
|
|
.line 5
|
|
:cond_2
|
|
new-instance v2, Landroid/widget/FrameLayout;
|
|
|
|
invoke-direct {v2, p0}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 6
|
|
new-instance p0, Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
const/4 v3, -0x1
|
|
|
|
invoke-direct {p0, v3, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
|
|
|
|
invoke-virtual {v2, p0}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 7
|
|
invoke-virtual {v2, p1, v3, v3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;II)V
|
|
|
|
.line 8
|
|
new-instance p0, Landroid/widget/PopupWindow;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-direct {p0, v2, p1, p1, v4}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;IIZ)V
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p1}, Landroid/widget/PopupWindow;->setOutsideTouchable(Z)V
|
|
|
|
.line 10
|
|
invoke-virtual {p0, v4}, Landroid/widget/PopupWindow;->setClippingEnabled(Z)V
|
|
|
|
const-string p1, "Displaying the 1x1 popup off the screen."
|
|
|
|
.line 11
|
|
invoke-static {p1}, Lcom/google/android/gms/internal/ads/zzazw;->zzed(Ljava/lang/String;)V
|
|
|
|
.line 12
|
|
:try_start_0
|
|
invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1, v4, v3, v3}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
:cond_3
|
|
:goto_1
|
|
return-object v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final zzamy()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/gms/internal/ads/zzcfo;->zzvf:Landroid/content/Context;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v1, p0, Lcom/google/android/gms/internal/ads/zzcfo;->zzfxm:Landroid/widget/PopupWindow;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
instance-of v1, v0, Landroid/app/Activity;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
check-cast v0, Landroid/app/Activity;
|
|
|
|
invoke-virtual {v0}, Landroid/app/Activity;->isDestroyed()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 3
|
|
iput-object v2, p0, Lcom/google/android/gms/internal/ads/zzcfo;->zzvf:Landroid/content/Context;
|
|
|
|
.line 4
|
|
iput-object v2, p0, Lcom/google/android/gms/internal/ads/zzcfo;->zzfxm:Landroid/widget/PopupWindow;
|
|
|
|
return-void
|
|
|
|
.line 5
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/android/gms/internal/ads/zzcfo;->zzfxm:Landroid/widget/PopupWindow;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 6
|
|
iget-object v0, p0, Lcom/google/android/gms/internal/ads/zzcfo;->zzfxm:Landroid/widget/PopupWindow;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V
|
|
|
|
.line 7
|
|
:cond_2
|
|
iput-object v2, p0, Lcom/google/android/gms/internal/ads/zzcfo;->zzvf:Landroid/content/Context;
|
|
|
|
.line 8
|
|
iput-object v2, p0, Lcom/google/android/gms/internal/ads/zzcfo;->zzfxm:Landroid/widget/PopupWindow;
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final zzc(Landroid/content/Context;Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastKitKat()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastLollipop()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-static {p1, p2}, Lcom/google/android/gms/internal/ads/zzcfo;->zzd(Landroid/content/Context;Landroid/view/View;)Landroid/widget/PopupWindow;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lcom/google/android/gms/internal/ads/zzcfo;->zzfxm:Landroid/widget/PopupWindow;
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
.line 3
|
|
:goto_0
|
|
iput-object p1, p0, Lcom/google/android/gms/internal/ads/zzcfo;->zzvf:Landroid/content/Context;
|
|
|
|
:cond_2
|
|
:goto_1
|
|
return-void
|
|
.end method
|