FeedDownloadActivityProxy.smali
.class public Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;
.super Lcom/kwad/sdk/b/a;
# interfaces
.implements Landroid/view/View$OnClickListener;
# annotations
.annotation build Landroid/support/annotation/Keep;
.end annotation
.annotation runtime Lcom/kwad/sdk/api/core/KsAdSdkDynamicImpl;
value = Lcom/kwad/sdk/api/proxy/app/FeedDownloadActivity;
.end annotation
# static fields
.field private static final DEBUG:Z = false
.field public static final KEY_AD_DATA:Ljava/lang/String; = "key_template"
.field private static final TAG:Ljava/lang/String; = "FeedDownloadActivity"
.field private static mAdClickListener:Lcom/kwad/sdk/feed/widget/base/a$a;
# instance fields
.field private mAdContainer:Lcom/kwad/sdk/core/view/KsAdContainer;
.field private mAdInfo:Lcom/kwad/sdk/core/response/model/AdInfo;
.field private mAdTemplate:Lcom/kwad/sdk/core/response/model/AdTemplate;
.field private mApkDownloadHelper:Lcom/kwad/sdk/core/download/a/b;
.field private mAppTailFrameView:Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;
.field private mContext:Landroid/app/Activity;
.field private mProgressBarTv:Lcom/kwad/sdk/core/page/widget/TextProgressBar;
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Lcom/kwad/sdk/b/a;-><init>()V
return-void
.end method
.method static synthetic access$000(Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;)Lcom/kwad/sdk/core/response/model/AdInfo;
.registers 2
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdInfo:Lcom/kwad/sdk/core/response/model/AdInfo;
return-object v0
.end method
.method static synthetic access$100(Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;)Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;
.registers 2
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAppTailFrameView:Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;
return-object v0
.end method
.method static synthetic access$200(Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;)Lcom/kwad/sdk/core/page/widget/TextProgressBar;
.registers 2
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mProgressBarTv:Lcom/kwad/sdk/core/page/widget/TextProgressBar;
return-object v0
.end method
.method static synthetic access$300(Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;)Lcom/kwad/sdk/core/response/model/AdTemplate;
.registers 2
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdTemplate:Lcom/kwad/sdk/core/response/model/AdTemplate;
return-object v0
.end method
.method static synthetic access$400(Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;)V
.registers 1
invoke-direct {p0}, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->notifyAdClick()V
return-void
.end method
.method private bindDownloadListener()V
.registers 5
new-instance v0, Lcom/kwad/sdk/core/download/a/b;
iget-object v1, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdTemplate:Lcom/kwad/sdk/core/response/model/AdTemplate;
const/4 v2, 0x0
new-instance v3, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy$1;
invoke-direct {v3, p0}, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy$1;-><init>(Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;)V
invoke-direct {v0, v1, v2, v3}, Lcom/kwad/sdk/core/download/a/b;-><init>(Lcom/kwad/sdk/core/response/model/AdTemplate;Lorg/json/JSONObject;Lcom/kwad/sdk/api/KsAppDownloadListener;)V
iput-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mApkDownloadHelper:Lcom/kwad/sdk/core/download/a/b;
return-void
.end method
.method private initData()Z
.registers 3
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mContext:Landroid/app/Activity;
invoke-virtual {v0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
move-result-object v0
const-string v1, "key_template"
invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;
move-result-object v0
instance-of v1, v0, Lcom/kwad/sdk/core/response/model/AdTemplate;
if-nez v1, :cond_17
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mContext:Landroid/app/Activity;
invoke-virtual {v0}, Landroid/app/Activity;->finish()V
const/4 v0, 0x0
:goto_16
return v0
:cond_17
check-cast v0, Lcom/kwad/sdk/core/response/model/AdTemplate;
iput-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdTemplate:Lcom/kwad/sdk/core/response/model/AdTemplate;
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdTemplate:Lcom/kwad/sdk/core/response/model/AdTemplate;
invoke-static {v0}, Lcom/kwad/sdk/core/response/b/c;->j(Lcom/kwad/sdk/core/response/model/AdTemplate;)Lcom/kwad/sdk/core/response/model/AdInfo;
move-result-object v0
iput-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdInfo:Lcom/kwad/sdk/core/response/model/AdInfo;
const/4 v0, 0x1
goto :goto_16
.end method
.method private intiView()V
.registers 4
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mContext:Landroid/app/Activity;
iget-object v1, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mContext:Landroid/app/Activity;
const-string v2, "ksad_container"
invoke-static {v1, v2}, Lcom/kwad/sdk/c/t;->a(Landroid/content/Context;Ljava/lang/String;)I
move-result v1
invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/kwad/sdk/core/view/KsAdContainer;
iput-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdContainer:Lcom/kwad/sdk/core/view/KsAdContainer;
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdContainer:Lcom/kwad/sdk/core/view/KsAdContainer;
invoke-virtual {v0, p0}, Lcom/kwad/sdk/core/view/KsAdContainer;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mContext:Landroid/app/Activity;
iget-object v1, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mContext:Landroid/app/Activity;
const-string v2, "ksad_download_container"
invoke-static {v1, v2}, Lcom/kwad/sdk/c/t;->a(Landroid/content/Context;Ljava/lang/String;)I
move-result v1
invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;
iput-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAppTailFrameView:Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAppTailFrameView:Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;
iget-object v1, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdTemplate:Lcom/kwad/sdk/core/response/model/AdTemplate;
invoke-virtual {v0, v1}, Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;)V
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAppTailFrameView:Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;
iget-object v1, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdTemplate:Lcom/kwad/sdk/core/response/model/AdTemplate;
invoke-static {v1}, Lcom/kwad/sdk/core/response/b/c;->j(Lcom/kwad/sdk/core/response/model/AdTemplate;)Lcom/kwad/sdk/core/response/model/AdInfo;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;->a(Lcom/kwad/sdk/core/response/model/AdInfo;)V
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAppTailFrameView:Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;->setVisibility(I)V
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAppTailFrameView:Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;
invoke-virtual {v0}, Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;->getTextProgressBar()Lcom/kwad/sdk/core/page/widget/TextProgressBar;
move-result-object v0
iput-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mProgressBarTv:Lcom/kwad/sdk/core/page/widget/TextProgressBar;
invoke-direct {p0}, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->bindDownloadListener()V
return-void
.end method
.method public static launch(Landroid/content/Context;Lcom/kwad/sdk/core/response/model/AdTemplate;Lcom/kwad/sdk/feed/widget/base/a$a;)V
.registers 5
.param p1 # Lcom/kwad/sdk/core/response/model/AdTemplate;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
new-instance v0, Landroid/content/Intent;
const-class v1, Lcom/kwad/sdk/api/proxy/app/FeedDownloadActivity;
invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
const/high16 v1, 0x10000000
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
const-string v1, "key_template"
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;
sput-object p2, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdClickListener:Lcom/kwad/sdk/feed/widget/base/a$a;
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
return-void
.end method
.method private notifyAdClick()V
.registers 3
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdTemplate:Lcom/kwad/sdk/core/response/model/AdTemplate;
iget-object v1, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdContainer:Lcom/kwad/sdk/core/view/KsAdContainer;
invoke-virtual {v1}, Lcom/kwad/sdk/core/view/KsAdContainer;->getTouchCoords()Lcom/kwad/sdk/c/l$a;
move-result-object v1
invoke-static {v0, v1}, Lcom/kwad/sdk/core/report/b;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;Lcom/kwad/sdk/c/l$a;)V
sget-object v0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdClickListener:Lcom/kwad/sdk/feed/widget/base/a$a;
if-eqz v0, :cond_14
sget-object v0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdClickListener:Lcom/kwad/sdk/feed/widget/base/a$a;
invoke-interface {v0}, Lcom/kwad/sdk/feed/widget/base/a$a;->a()V
:cond_14
return-void
.end method
# virtual methods
.method public destroy()V
.registers 3
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAppTailFrameView:Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;
if-eqz v0, :cond_10
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAppTailFrameView:Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;
invoke-virtual {v0}, Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;->a()V
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAppTailFrameView:Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Lcom/kwad/sdk/reward/widget/tailframe/appbar/TailFrameBarAppPortraitVertical;->setVisibility(I)V
:cond_10
return-void
.end method
.method public onClick(Landroid/view/View;)V
.registers 6
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
iget-object v1, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mAdTemplate:Lcom/kwad/sdk/core/response/model/AdTemplate;
new-instance v2, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy$2;
invoke-direct {v2, p0}, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy$2;-><init>(Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;)V
iget-object v3, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mApkDownloadHelper:Lcom/kwad/sdk/core/download/a/b;
invoke-static {v0, v1, v2, v3}, Lcom/kwad/sdk/core/download/a/a;->a(Landroid/content/Context;Lcom/kwad/sdk/core/response/model/AdTemplate;Lcom/kwad/sdk/core/download/a/a$a;Lcom/kwad/sdk/core/download/a/b;)V
return-void
.end method
.method public onCreate(Landroid/os/Bundle;)V
.registers 5
invoke-virtual {p0}, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->getActivity()Landroid/app/Activity;
move-result-object v0
iput-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mContext:Landroid/app/Activity;
invoke-direct {p0}, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->initData()Z
move-result v0
if-nez v0, :cond_12
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mContext:Landroid/app/Activity;
invoke-virtual {v0}, Landroid/app/Activity;->finish()V
:goto_11
return-void
:cond_12
iget-object v0, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mContext:Landroid/app/Activity;
iget-object v1, p0, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->mContext:Landroid/app/Activity;
const-string v2, "ksad_activity_feed_download"
invoke-static {v1, v2}, Lcom/kwad/sdk/c/t;->b(Landroid/content/Context;Ljava/lang/String;)I
move-result v1
invoke-virtual {v0, v1}, Landroid/app/Activity;->setContentView(I)V
invoke-direct {p0}, Lcom/kwad/sdk/feed/FeedDownloadActivityProxy;->intiView()V
goto :goto_11
.end method