EntryPhotoView.smali
.class public Lcom/kwad/sdk/entry/view/EntryPhotoView;
.super Lcom/kwad/sdk/widget/a;
# interfaces
.implements Lcom/kwad/sdk/core/view/e$a;
# instance fields
.field private a:Lcom/kwad/sdk/widget/AnimatedImageView;
.field private b:Landroid/widget/TextView;
.field private c:Landroid/widget/TextView;
.field private d:Landroid/widget/ImageView;
.field private e:Lcom/kwad/sdk/core/response/model/a;
.field private f:Lcom/kwad/sdk/core/response/model/AdTemplate;
.field private g:Lcom/kwad/sdk/core/response/model/PhotoInfo;
.field private h:Z
.field private i:Z
.field private j:Landroid/view/View;
.field private k:I
.field private l:Ljava/lang/String;
.field private m:Lcom/kwad/sdk/core/view/e;
.field private n:Z
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 2
.param p1 # Landroid/content/Context;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0, p1}, Lcom/kwad/sdk/widget/a;-><init>(Landroid/content/Context;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 3
.param p1 # Landroid/content/Context;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroid/support/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0, p1, p2}, Lcom/kwad/sdk/widget/a;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method static synthetic a(Lcom/kwad/sdk/entry/view/EntryPhotoView;)Lcom/kwad/sdk/widget/AnimatedImageView;
.registers 2
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->a:Lcom/kwad/sdk/widget/AnimatedImageView;
return-object v0
.end method
.method private a(Lcom/kwad/sdk/core/response/model/AdTemplate;)V
.registers 6
iget-boolean v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->h:Z
if-eqz v0, :cond_21
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->g:Lcom/kwad/sdk/core/response/model/PhotoInfo;
iget-object v0, v0, Lcom/kwad/sdk/core/response/model/PhotoInfo;->coverInfo:Lcom/kwad/sdk/core/response/model/PhotoInfo$CoverInfo;
iget-object v0, v0, Lcom/kwad/sdk/core/response/model/PhotoInfo$CoverInfo;->webpCoverUrl:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_21
invoke-static {}, Landroid/support/rastermill/FrameSequence;->isEnable()Z
move-result v1
if-eqz v1, :cond_21
sget-object v1, Lcom/kwad/sdk/core/imageloader/KSImageLoader;->IMGOPTION_ENTRY:Lcom/kwad/sdk/core/imageloader/core/DisplayImageOptions;
new-instance v2, Lcom/kwad/sdk/entry/view/EntryPhotoView$1;
invoke-direct {v2, p0, v0}, Lcom/kwad/sdk/entry/view/EntryPhotoView$1;-><init>(Lcom/kwad/sdk/entry/view/EntryPhotoView;Ljava/lang/String;)V
invoke-static {v0, p1, v1, v2}, Lcom/kwad/sdk/core/imageloader/KSImageLoader;->loadImage(Ljava/lang/String;Lcom/kwad/sdk/core/response/model/AdTemplate;Lcom/kwad/sdk/core/imageloader/core/DisplayImageOptions;Lcom/kwad/sdk/core/imageloader/core/listener/ImageLoadingListener;)V
:goto_20
return-void
:cond_21
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->g:Lcom/kwad/sdk/core/response/model/PhotoInfo;
invoke-static {v0}, Lcom/kwad/sdk/core/response/b/d;->f(Lcom/kwad/sdk/core/response/model/PhotoInfo;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_33
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->g:Lcom/kwad/sdk/core/response/model/PhotoInfo;
invoke-static {v0}, Lcom/kwad/sdk/core/response/b/d;->c(Lcom/kwad/sdk/core/response/model/PhotoInfo;)Ljava/lang/String;
move-result-object v0
:cond_33
iget-object v1, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->a:Lcom/kwad/sdk/widget/AnimatedImageView;
iget-object v2, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->f:Lcom/kwad/sdk/core/response/model/AdTemplate;
sget-object v3, Lcom/kwad/sdk/core/imageloader/KSImageLoader;->IMGOPTION_ENTRY:Lcom/kwad/sdk/core/imageloader/core/DisplayImageOptions;
invoke-static {v1, v0, v2, v3}, Lcom/kwad/sdk/core/imageloader/KSImageLoader;->loadImage(Landroid/widget/ImageView;Ljava/lang/String;Lcom/kwad/sdk/core/response/model/AdTemplate;Lcom/kwad/sdk/core/imageloader/core/DisplayImageOptions;)V
goto :goto_20
.end method
.method static synthetic b(Lcom/kwad/sdk/entry/view/EntryPhotoView;)I
.registers 2
iget v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->k:I
return v0
.end method
.method static synthetic c(Lcom/kwad/sdk/entry/view/EntryPhotoView;)V
.registers 1
invoke-direct {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->m()V
return-void
.end method
.method static synthetic d(Lcom/kwad/sdk/entry/view/EntryPhotoView;)Z
.registers 2
iget-boolean v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->i:Z
return v0
.end method
.method static synthetic e(Lcom/kwad/sdk/entry/view/EntryPhotoView;)Lcom/kwad/sdk/core/view/e;
.registers 2
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->m:Lcom/kwad/sdk/core/view/e;
return-object v0
.end method
.method private l()V
.registers 4
const/4 v2, 0x0
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->j:Landroid/view/View;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->b:Landroid/widget/TextView;
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->d:Landroid/widget/ImageView;
invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V
return-void
.end method
.method private m()V
.registers 3
iget-boolean v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->i:Z
if-eqz v0, :cond_16
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->m:Lcom/kwad/sdk/core/view/e;
if-nez v0, :cond_16
new-instance v0, Lcom/kwad/sdk/core/view/e;
const/16 v1, 0x46
invoke-direct {v0, p0, v1}, Lcom/kwad/sdk/core/view/e;-><init>(Landroid/view/View;I)V
iput-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->m:Lcom/kwad/sdk/core/view/e;
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->m:Lcom/kwad/sdk/core/view/e;
invoke-virtual {v0, p0}, Lcom/kwad/sdk/core/view/e;->a(Lcom/kwad/sdk/core/view/e$a;)V
:cond_16
return-void
.end method
# virtual methods
.method protected a()V
.registers 4
invoke-super {p0}, Lcom/kwad/sdk/widget/a;->a()V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->f:Lcom/kwad/sdk/core/response/model/AdTemplate;
iget-boolean v0, v0, Lcom/kwad/sdk/core/response/model/AdTemplate;->mPvReported:Z
if-eqz v0, :cond_a
:goto_9
return-void
:cond_a
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->f:Lcom/kwad/sdk/core/response/model/AdTemplate;
const/4 v1, 0x1
iput-boolean v1, v0, Lcom/kwad/sdk/core/response/model/AdTemplate;->mPvReported:Z
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->f:Lcom/kwad/sdk/core/response/model/AdTemplate;
invoke-static {v0}, Lcom/kwad/sdk/core/response/b/c;->c(Lcom/kwad/sdk/core/response/model/AdTemplate;)Z
move-result v0
if-eqz v0, :cond_1e
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->f:Lcom/kwad/sdk/core/response/model/AdTemplate;
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/kwad/sdk/core/report/b;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;Lorg/json/JSONObject;)V
goto :goto_9
:cond_1e
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->f:Lcom/kwad/sdk/core/response/model/AdTemplate;
iget v1, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->k:I
iget-object v2, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->l:Ljava/lang/String;
invoke-static {v0, v1, v2}, Lcom/kwad/sdk/core/report/e;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;ILjava/lang/String;)V
goto :goto_9
.end method
.method public a(ILjava/lang/String;)V
.registers 3
iput p1, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->k:I
iput-object p2, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->l:Ljava/lang/String;
return-void
.end method
.method public a(Lcom/kwad/sdk/core/response/model/AdTemplate;Lcom/kwad/sdk/core/response/model/a;)V
.registers 7
.param p1 # Lcom/kwad/sdk/core/response/model/AdTemplate;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
iput-object p2, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->e:Lcom/kwad/sdk/core/response/model/a;
iput-object p1, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->f:Lcom/kwad/sdk/core/response/model/AdTemplate;
iget-object v0, p1, Lcom/kwad/sdk/core/response/model/AdTemplate;->photoInfo:Lcom/kwad/sdk/core/response/model/PhotoInfo;
iput-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->g:Lcom/kwad/sdk/core/response/model/PhotoInfo;
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->g:Lcom/kwad/sdk/core/response/model/PhotoInfo;
if-nez v0, :cond_d
:goto_c
return-void
:cond_d
invoke-direct {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->l()V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->f:Lcom/kwad/sdk/core/response/model/AdTemplate;
invoke-direct {p0, v0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;)V
iget-object v0, p1, Lcom/kwad/sdk/core/response/model/AdTemplate;->photoInfo:Lcom/kwad/sdk/core/response/model/PhotoInfo;
invoke-static {v0}, Lcom/kwad/sdk/core/response/b/d;->k(Lcom/kwad/sdk/core/response/model/PhotoInfo;)J
move-result-wide v0
iget-object v2, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->b:Landroid/widget/TextView;
const-string v3, "0"
invoke-static {v0, v1, v3}, Lcom/kwad/sdk/c/x;->a(JLjava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->e:Lcom/kwad/sdk/core/response/model/a;
iget v0, v0, Lcom/kwad/sdk/core/response/model/a;->i:I
const/4 v1, 0x1
if-ne v0, v1, :cond_4b
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->g:Lcom/kwad/sdk/core/response/model/PhotoInfo;
iget-object v0, v0, Lcom/kwad/sdk/core/response/model/PhotoInfo;->baseInfo:Lcom/kwad/sdk/core/response/model/PhotoInfo$BaseInfo;
iget-object v0, v0, Lcom/kwad/sdk/core/response/model/PhotoInfo$BaseInfo;->videoDesc:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_4b
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->c:Landroid/widget/TextView;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->c:Landroid/widget/TextView;
iget-object v1, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->g:Lcom/kwad/sdk/core/response/model/PhotoInfo;
iget-object v1, v1, Lcom/kwad/sdk/core/response/model/PhotoInfo;->baseInfo:Lcom/kwad/sdk/core/response/model/PhotoInfo$BaseInfo;
iget-object v1, v1, Lcom/kwad/sdk/core/response/model/PhotoInfo$BaseInfo;->videoDesc:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_c
:cond_4b
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->c:Landroid/widget/TextView;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
goto :goto_c
.end method
.method public a(Z)V
.registers 3
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->a:Lcom/kwad/sdk/widget/AnimatedImageView;
if-nez v0, :cond_5
:goto_4
return-void
:cond_5
if-eqz p1, :cond_b
invoke-virtual {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->c()V
goto :goto_4
:cond_b
invoke-virtual {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->d()V
goto :goto_4
.end method
.method public a(ZZ)V
.registers 3
iput-boolean p1, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->h:Z
iput-boolean p2, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->i:Z
return-void
.end method
.method protected b()V
.registers 4
invoke-virtual {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "ksad_entryitem_photocover"
invoke-static {v0, v1}, Lcom/kwad/sdk/c/t;->a(Landroid/content/Context;Ljava/lang/String;)I
move-result v0
invoke-virtual {p0, v0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/kwad/sdk/widget/AnimatedImageView;
iput-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->a:Lcom/kwad/sdk/widget/AnimatedImageView;
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->a:Lcom/kwad/sdk/widget/AnimatedImageView;
invoke-virtual {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->getContext()Landroid/content/Context;
move-result-object v1
const/high16 v2, 0x40800000 # 4.0f
invoke-static {v1, v2}, Lcom/kwad/sdk/c/ae;->a(Landroid/content/Context;F)I
move-result v1
int-to-float v1, v1
invoke-virtual {v0, v1}, Lcom/kwad/sdk/widget/AnimatedImageView;->setRadius(F)V
invoke-virtual {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "ksad_entryitem_lickcount"
invoke-static {v0, v1}, Lcom/kwad/sdk/c/t;->a(Landroid/content/Context;Ljava/lang/String;)I
move-result v0
invoke-virtual {p0, v0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->b:Landroid/widget/TextView;
invoke-virtual {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "ksad_entryitem_lookmore"
invoke-static {v0, v1}, Lcom/kwad/sdk/c/t;->a(Landroid/content/Context;Ljava/lang/String;)I
move-result v0
invoke-virtual {p0, v0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->j:Landroid/view/View;
invoke-virtual {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "ksad_entryitem_title"
invoke-static {v0, v1}, Lcom/kwad/sdk/c/t;->a(Landroid/content/Context;Ljava/lang/String;)I
move-result v0
invoke-virtual {p0, v0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->c:Landroid/widget/TextView;
invoke-virtual {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "ksad_entryitem_playbtn"
invoke-static {v0, v1}, Lcom/kwad/sdk/c/t;->a(Landroid/content/Context;Ljava/lang/String;)I
move-result v0
invoke-virtual {p0, v0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
iput-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->d:Landroid/widget/ImageView;
return-void
.end method
.method public c()V
.registers 2
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->a:Lcom/kwad/sdk/widget/AnimatedImageView;
if-eqz v0, :cond_10
iget-boolean v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->n:Z
if-nez v0, :cond_10
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->a:Lcom/kwad/sdk/widget/AnimatedImageView;
invoke-virtual {v0}, Lcom/kwad/sdk/widget/AnimatedImageView;->b()V
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->n:Z
:cond_10
return-void
.end method
.method public d()V
.registers 2
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->a:Lcom/kwad/sdk/widget/AnimatedImageView;
if-eqz v0, :cond_10
iget-boolean v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->n:Z
if-eqz v0, :cond_10
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->a:Lcom/kwad/sdk/widget/AnimatedImageView;
invoke-virtual {v0}, Lcom/kwad/sdk/widget/AnimatedImageView;->c()V
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->n:Z
:cond_10
return-void
.end method
.method public e()V
.registers 1
invoke-virtual {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->c()V
return-void
.end method
.method public f()V
.registers 1
invoke-virtual {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->d()V
return-void
.end method
.method public g()V
.registers 2
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->m:Lcom/kwad/sdk/core/view/e;
if-eqz v0, :cond_9
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->m:Lcom/kwad/sdk/core/view/e;
invoke-virtual {v0}, Lcom/kwad/sdk/core/view/e;->b()V
:cond_9
return-void
.end method
.method public getEntryId()Ljava/lang/String;
.registers 2
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->l:Ljava/lang/String;
return-object v0
.end method
.method public getPosition()I
.registers 2
iget v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->k:I
return v0
.end method
.method public getTemplateData()Lcom/kwad/sdk/core/response/model/AdTemplate;
.registers 2
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->f:Lcom/kwad/sdk/core/response/model/AdTemplate;
return-object v0
.end method
.method protected onAttachedToWindow()V
.registers 2
invoke-super {p0}, Lcom/kwad/sdk/widget/a;->onAttachedToWindow()V
iget-boolean v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->i:Z
if-eqz v0, :cond_10
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->m:Lcom/kwad/sdk/core/view/e;
if-eqz v0, :cond_10
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->m:Lcom/kwad/sdk/core/view/e;
invoke-virtual {v0}, Lcom/kwad/sdk/core/view/e;->a()V
:cond_10
return-void
.end method
.method protected onDetachedFromWindow()V
.registers 1
invoke-super {p0}, Lcom/kwad/sdk/widget/a;->onDetachedFromWindow()V
invoke-virtual {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->g()V
return-void
.end method
.method protected onFinishInflate()V
.registers 1
invoke-super {p0}, Lcom/kwad/sdk/widget/a;->onFinishInflate()V
invoke-virtual {p0}, Lcom/kwad/sdk/entry/view/EntryPhotoView;->b()V
return-void
.end method
.method public setLikeViewPos(I)V
.registers 4
const/4 v1, 0x0
packed-switch p1, :pswitch_data_32
:goto_4
return-void
:pswitch_5
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->b:Landroid/widget/TextView;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
goto :goto_4
:pswitch_d
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->b:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->b:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
const/16 v1, 0x53
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
goto :goto_4
:pswitch_1f
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->b:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->b:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
const/16 v1, 0x55
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
goto :goto_4
nop
:pswitch_data_32
.packed-switch 0x0
:pswitch_5
:pswitch_d
:pswitch_1f
.end packed-switch
.end method
.method public setLookMoreVisiable(Z)V
.registers 5
const/16 v2, 0x8
const/4 v1, 0x0
if-eqz p1, :cond_1a
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->j:Landroid/view/View;
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->b:Landroid/widget/TextView;
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->d:Landroid/widget/ImageView;
invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->c:Landroid/widget/TextView;
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V
:goto_19
return-void
:cond_1a
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->j:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->b:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->d:Landroid/widget/ImageView;
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->c:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
goto :goto_19
.end method
.method public setPlayBtnRes(I)V
.registers 3
iget-object v0, p0, Lcom/kwad/sdk/entry/view/EntryPhotoView;->d:Landroid/widget/ImageView;
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageResource(I)V
return-void
.end method