ArticleViewer$BlockRelatedArticlesShadowCell.smali

.class Lim/tpelyyftgw/ui/ArticleViewer$BlockRelatedArticlesShadowCell;
.super Landroid/view/View;
.source "ArticleViewer.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lim/tpelyyftgw/ui/ArticleViewer;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "BlockRelatedArticlesShadowCell"
.end annotation


# instance fields
.field private shadowDrawable:Lim/tpelyyftgw/ui/components/CombinedDrawable;

.field final synthetic this$0:Lim/tpelyyftgw/ui/ArticleViewer;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method public constructor <init>(Lim/tpelyyftgw/ui/ArticleViewer;Landroid/content/Context;)V
    .registers 6
    .param p2, "context"    # Landroid/content/Context;

    .line 8634
    iput-object p1, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockRelatedArticlesShadowCell;->this$0:Lim/tpelyyftgw/ui/ArticleViewer;

    .line 8635
    invoke-direct {p0, p2}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 8637
    const p1, 0x7f080153

    const/high16 v0, -0x1000000

    invoke-static {p2, p1, v0}, Lim/tpelyyftgw/ui/actionbar/Theme;->getThemedDrawable(Landroid/content/Context;II)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    .line 8638
    .local p1, "drawable":Landroid/graphics/drawable/Drawable;
    new-instance v0, Lim/tpelyyftgw/ui/components/CombinedDrawable;

    new-instance v1, Landroid/graphics/drawable/ColorDrawable;

    const v2, -0xf0f10

    invoke-direct {v1, v2}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-direct {v0, v1, p1}, Lim/tpelyyftgw/ui/components/CombinedDrawable;-><init>(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    iput-object v0, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockRelatedArticlesShadowCell;->shadowDrawable:Lim/tpelyyftgw/ui/components/CombinedDrawable;

    .line 8639
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/CombinedDrawable;->setFullsize(Z)V

    .line 8640
    iget-object v0, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockRelatedArticlesShadowCell;->shadowDrawable:Lim/tpelyyftgw/ui/components/CombinedDrawable;

    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/ArticleViewer$BlockRelatedArticlesShadowCell;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 8641
    return-void
.end method


# virtual methods
.method protected onMeasure(II)V
    .registers 7
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .line 8645
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v0

    const/high16 v1, 0x41400000    # 12.0f

    invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v1

    invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/ArticleViewer$BlockRelatedArticlesShadowCell;->setMeasuredDimension(II)V

    .line 8647
    iget-object v0, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockRelatedArticlesShadowCell;->this$0:Lim/tpelyyftgw/ui/ArticleViewer;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ArticleViewer;->access$13200(Lim/tpelyyftgw/ui/ArticleViewer;)I

    move-result v0

    .line 8648
    .local v0, "color":I
    const/4 v1, 0x0

    if-nez v0, :cond_1f

    .line 8649
    iget-object v2, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockRelatedArticlesShadowCell;->shadowDrawable:Lim/tpelyyftgw/ui/components/CombinedDrawable;

    const v3, -0xf0f10

    invoke-static {v2, v3, v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->setCombinedDrawableColor(Landroid/graphics/drawable/Drawable;IZ)V

    goto :goto_36

    .line 8650
    :cond_1f
    const/4 v2, 0x1

    if-ne v0, v2, :cond_2b

    .line 8651
    iget-object v2, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockRelatedArticlesShadowCell;->shadowDrawable:Lim/tpelyyftgw/ui/components/CombinedDrawable;

    const v3, -0x1a2138

    invoke-static {v2, v3, v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->setCombinedDrawableColor(Landroid/graphics/drawable/Drawable;IZ)V

    goto :goto_36

    .line 8652
    :cond_2b
    const/4 v2, 0x2

    if-ne v0, v2, :cond_36

    .line 8653
    iget-object v2, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockRelatedArticlesShadowCell;->shadowDrawable:Lim/tpelyyftgw/ui/components/CombinedDrawable;

    const v3, -0xe4e4e5

    invoke-static {v2, v3, v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->setCombinedDrawableColor(Landroid/graphics/drawable/Drawable;IZ)V

    .line 8655
    :cond_36
    :goto_36
    return-void
.end method