BigoInterstitialActivity.smali
.class public Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;
.super Landroid/app/Activity;
# instance fields
.field private a:Lcom/proxy/ad/impl/interstitial/a;
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
return-void
.end method
# virtual methods
.method public final a()V
.registers 3
invoke-virtual {p0}, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->getFragmentManager()Landroid/app/FragmentManager;
move-result-object v0
const-string v1, "bigoad"
invoke-virtual {v0, v1}, Landroid/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/app/Fragment;
move-result-object v0
instance-of v1, v0, Lcom/proxy/ad/impl/interstitial/ui/b;
if-eqz v1, :cond_13
check-cast v0, Lcom/proxy/ad/impl/interstitial/ui/b;
invoke-virtual {v0}, Lcom/proxy/ad/impl/interstitial/ui/b;->e()V
:cond_13
return-void
.end method
.method public final a(Ljava/lang/String;)V
.registers 3
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string v0, "Interstitial Ad show error: "
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string v0, "BigoAd"
invoke-static {v0, p1}, Lcom/proxy/ad/log/Logger;->e(Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {p0}, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->finish()V
return-void
.end method
.method public onBackPressed()V
.registers 1
invoke-virtual {p0}, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->a()V
return-void
.end method
.method protected onCreate(Landroid/os/Bundle;)V
.registers 6
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
sget p1, Lcom/proxy/ad/bigoadsdk/R$layout;->bigo_ad_activity_interstitial:I
invoke-virtual {p0, p1}, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->setContentView(I)V
invoke-virtual {p0}, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->getIntent()Landroid/content/Intent;
move-result-object p1
const/4 v0, -0x1
const-string v1, "interstitial_ad_identifier"
invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
move-result p1
invoke-static {}, Lcom/proxy/ad/impl/d$a;->a()Lcom/proxy/ad/impl/d;
move-result-object v2
invoke-virtual {v2, p1}, Lcom/proxy/ad/impl/d;->a(I)Lcom/proxy/ad/impl/interstitial/a;
move-result-object p1
iput-object p1, p0, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->a:Lcom/proxy/ad/impl/interstitial/a;
const/4 v2, 0x0
if-eqz p1, :cond_23
iget-object p1, p1, Lcom/proxy/ad/impl/a;->b:Lcom/proxy/ad/impl/b;
goto :goto_24
:cond_23
move-object p1, v2
:goto_24
iget-object v3, p0, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->a:Lcom/proxy/ad/impl/interstitial/a;
if-eqz v3, :cond_86
if-nez p1, :cond_2b
goto :goto_86
:cond_2b
iget p1, p1, Lcom/proxy/ad/impl/b;->k:I
const/4 v3, 0x1
if-eq p1, v3, :cond_3d
const/4 v3, 0x2
if-ne p1, v3, :cond_34
goto :goto_3d
:cond_34
const/4 v3, 0x3
if-ne p1, v3, :cond_42
new-instance v2, Lcom/proxy/ad/impl/interstitial/ui/a;
invoke-direct {v2}, Lcom/proxy/ad/impl/interstitial/ui/a;-><init>()V
goto :goto_42
:cond_3d
:goto_3d
new-instance v2, Lcom/proxy/ad/impl/interstitial/ui/c;
invoke-direct {v2}, Lcom/proxy/ad/impl/interstitial/ui/c;-><init>()V
:cond_42
:goto_42
if-nez v2, :cond_4a
const-string p1, "Unsupported type in bigo interstitial ad."
invoke-virtual {p0, p1}, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->a(Ljava/lang/String;)V
return-void
:cond_4a
iget-object p1, p0, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->a:Lcom/proxy/ad/impl/interstitial/a;
instance-of v3, p1, Lcom/proxy/ad/impl/interstitial/c;
if-eqz v3, :cond_5a
check-cast p1, Lcom/proxy/ad/impl/interstitial/c;
new-instance v3, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity$1;
invoke-direct {v3, p0}, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity$1;-><init>(Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;)V
invoke-virtual {p1, v3}, Lcom/proxy/ad/impl/interstitial/c;->a(Lcom/proxy/ad/impl/banner/mraid/e;)V
:cond_5a
iget-object p1, p0, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->a:Lcom/proxy/ad/impl/interstitial/a;
invoke-virtual {p1}, Lcom/proxy/ad/impl/interstitial/a;->h()V
new-instance p1, Landroid/os/Bundle;
invoke-direct {p1}, Landroid/os/Bundle;-><init>()V
invoke-virtual {p0}, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->getIntent()Landroid/content/Intent;
move-result-object v3
invoke-virtual {v3, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
move-result v0
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
invoke-virtual {v2, p1}, Lcom/proxy/ad/impl/interstitial/ui/b;->setArguments(Landroid/os/Bundle;)V
invoke-virtual {p0}, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->getFragmentManager()Landroid/app/FragmentManager;
move-result-object p1
invoke-virtual {p1}, Landroid/app/FragmentManager;->beginTransaction()Landroid/app/FragmentTransaction;
move-result-object p1
sget v0, Lcom/proxy/ad/bigoadsdk/R$id;->container:I
const-string v1, "bigoad"
invoke-virtual {p1, v0, v2, v1}, Landroid/app/FragmentTransaction;->add(ILandroid/app/Fragment;Ljava/lang/String;)Landroid/app/FragmentTransaction;
move-result-object p1
invoke-virtual {p1}, Landroid/app/FragmentTransaction;->commit()I
return-void
:cond_86
:goto_86
const-string p1, "AdData is null."
invoke-virtual {p0, p1}, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->a(Ljava/lang/String;)V
return-void
.end method
.method protected onDestroy()V
.registers 4
iget-object v0, p0, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->a:Lcom/proxy/ad/impl/interstitial/a;
if-eqz v0, :cond_10
instance-of v1, v0, Lcom/proxy/ad/impl/interstitial/c;
const/4 v2, 0x0
if-eqz v1, :cond_e
check-cast v0, Lcom/proxy/ad/impl/interstitial/c;
invoke-virtual {v0, v2}, Lcom/proxy/ad/impl/interstitial/c;->a(Lcom/proxy/ad/impl/banner/mraid/e;)V
:cond_e
iput-object v2, p0, Lcom/proxy/ad/impl/interstitial/ui/BigoInterstitialActivity;->a:Lcom/proxy/ad/impl/interstitial/a;
:cond_10
invoke-super {p0}, Landroid/app/Activity;->onDestroy()V
return-void
.end method