.class public abstract Lsd0/m;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lsd0/m$b;,
        Lsd0/m$a;
    }
.end annotation


# instance fields
.field protected a:Landroid/view/View;

.field protected final b:Landroid/content/Context;

.field protected final c:Lft/j0;

.field protected d:Loa0/a0;

.field protected e:Lua0/d0;

.field protected f:I

.field protected g:I

.field private h:Lef0/a;

.field private i:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Lft/j0;Loa0/a0;Lua0/d0;II)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lsd0/m;->b:Landroid/content/Context;

    iput-object p2, p0, Lsd0/m;->c:Lft/j0;

    iput-object p3, p0, Lsd0/m;->d:Loa0/a0;

    iput-object p4, p0, Lsd0/m;->e:Lua0/d0;

    iput p5, p0, Lsd0/m;->f:I

    iput p6, p0, Lsd0/m;->g:I

    return-void
.end method

.method protected static j(Lcom/tumblr/ui/widget/CheckableImageButton;II)V
    .locals 5

    if-eqz p1, :cond_0

    invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    new-instance v1, Landroid/content/res/ColorStateList;

    const/4 v2, 0x2

    new-array v2, v2, [[I

    const v3, -0x10100a0

    filled-new-array {v3}, [I

    move-result-object v3

    const/4 v4, 0x0

    aput-object v3, v2, v4

    const v3, 0x10100a0

    filled-new-array {v3}, [I

    move-result-object v3

    const/4 v4, 0x1

    aput-object v3, v2, v4

    invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object p0

    invoke-virtual {p0, p2}, Landroid/content/res/Resources;->getColor(I)I

    move-result p0

    filled-new-array {p1, p0}, [I

    move-result-object p0

    invoke-direct {v1, v2, p0}, Landroid/content/res/ColorStateList;-><init>([[I[I)V

    invoke-static {v0, v1}, Landroidx/core/graphics/drawable/a;->i(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V

    :cond_0
    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    iget v0, p0, Lsd0/m;->f:I

    return v0
.end method

.method public abstract b()I
.end method

.method public c()Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lsd0/m;->a:Landroid/view/View;

    return-object v0
.end method

.method protected d(ILandroid/view/ViewGroup;)Landroid/view/View;
    .locals 2

    iget-object v0, p0, Lsd0/m;->h:Lef0/a;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1, p2}, Lef0/a;->g(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    return-object p1

    :cond_0
    iget-object p2, p0, Lsd0/m;->b:Landroid/content/Context;

    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-virtual {p2, p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    return-object p1
.end method

.method public abstract e(Landroid/view/ViewGroup;)Landroid/view/View;
.end method

.method public f()Z
    .locals 1

    iget-object v0, p0, Lsd0/m;->a:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method protected g()V
    .locals 2

    iget-object v0, p0, Lsd0/m;->a:Landroid/view/View;

    instance-of v1, v0, Landroidx/appcompat/widget/AppCompatImageButton;

    if-eqz v1, :cond_0

    check-cast v0, Landroidx/appcompat/widget/AppCompatImageButton;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageTintList(Landroid/content/res/ColorStateList;)V

    goto :goto_0

    :cond_0
    instance-of v1, v0, Landroidx/appcompat/widget/AppCompatTextView;

    if-eqz v1, :cond_1

    move-object v1, v0

    check-cast v1, Landroidx/appcompat/widget/AppCompatTextView;

    invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lna0/b;->x(Landroid/content/Context;)I

    move-result v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    :cond_1
    :goto_0
    return-void
.end method

.method public h(Z)V
    .locals 0

    iput-boolean p1, p0, Lsd0/m;->i:Z

    return-void
.end method

.method protected i(I)V
    .locals 2

    iget-object v0, p0, Lsd0/m;->a:Landroid/view/View;

    instance-of v1, v0, Landroidx/appcompat/widget/AppCompatImageButton;

    if-eqz v1, :cond_0

    check-cast v0, Landroidx/appcompat/widget/AppCompatImageButton;

    invoke-static {p1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageTintList(Landroid/content/res/ColorStateList;)V

    goto :goto_0

    :cond_0
    instance-of v1, v0, Landroidx/appcompat/widget/AppCompatTextView;

    if-eqz v1, :cond_1

    check-cast v0, Landroidx/appcompat/widget/AppCompatTextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(I)V

    :cond_1
    :goto_0
    return-void
.end method

.method public k(Lef0/a;)V
    .locals 0

    iput-object p1, p0, Lsd0/m;->h:Lef0/a;

    return-void
.end method

.method public l()Z
    .locals 1

    invoke-virtual {p0}, Lsd0/m;->m()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lsd0/m;->i:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method protected abstract m()Z
.end method

.method public n(Loa0/a0;Lua0/d0;)Landroid/view/View;
    .locals 0

    iput-object p1, p0, Lsd0/m;->d:Loa0/a0;

    iput-object p2, p0, Lsd0/m;->e:Lua0/d0;

    invoke-virtual {p0}, Lsd0/m;->l()Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lsd0/m;->a:Landroid/view/View;

    sget p2, Lcom/tumblr/R$drawable;->V3:I

    invoke-virtual {p1, p2}, Landroid/view/View;->setBackgroundResource(I)V

    iget-object p1, p0, Lsd0/m;->a:Landroid/view/View;

    const/4 p2, 0x0
    
    invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    :cond_0
    iget-object p1, p0, Lsd0/m;->a:Landroid/view/View;

    const/16 p2, 0x8

    invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    iget p1, p0, Lsd0/m;->g:I

    if-eqz p1, :cond_1

    invoke-virtual {p0, p1}, Lsd0/m;->i(I)V

    goto :goto_1

    :cond_1
    invoke-virtual {p0}, Lsd0/m;->g()V

    :goto_1
    iget-object p1, p0, Lsd0/m;->a:Landroid/view/View;

    return-object p1
.end method

.method public o(II)V
    .locals 0

    iput p1, p0, Lsd0/m;->f:I

    iput p2, p0, Lsd0/m;->g:I

    return-void
.end method
