b.smali

.class public abstract Lcom/scwang/smart/refresh/layout/simple/b;
.super Landroid/widget/RelativeLayout;
.source "SourceFile"

# interfaces
.implements Lcom/scwang/smart/refresh/layout/api/a;


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

.field public b:Lcom/scwang/smart/refresh/layout/constant/c;

.field public c:Lcom/scwang/smart/refresh/layout/api/a;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 4

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 9
    invoke-direct {p0, p1, v0, v1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/view/View;)V
    .registers 6

    .line 1
    instance-of v0, p1, Lcom/scwang/smart/refresh/layout/api/a;

    const/4 v1, 0x0

    if-eqz v0, :cond_9

    move-object v0, p1

    check-cast v0, Lcom/scwang/smart/refresh/layout/api/a;

    goto :goto_a

    :cond_9
    move-object v0, v1

    .line 2
    :goto_a
    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v2

    const/4 v3, 0x0

    invoke-direct {p0, v2, v1, v3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 3
    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/simple/b;->a:Landroid/view/View;

    .line 4
    iput-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    .line 5
    instance-of p1, p0, Lcom/scwang/smart/refresh/layout/api/c;

    const/high16 v1, -0x40800000    # -1.0f

    if-eqz p1, :cond_30

    instance-of p1, v0, Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz p1, :cond_30

    invoke-interface {v0}, Lcom/scwang/smart/refresh/layout/api/a;->getSpinnerStyle()Lcom/scwang/smart/refresh/layout/constant/c;

    move-result-object p1

    sget-object v2, Lcom/scwang/smart/refresh/layout/constant/c;->f:Lcom/scwang/smart/refresh/layout/constant/c;

    if-ne p1, v2, :cond_30

    .line 6
    invoke-interface {v0}, Lcom/scwang/smart/refresh/layout/api/a;->getView()Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/view/View;->setScaleY(F)V

    goto :goto_49

    .line 7
    :cond_30
    instance-of p1, p0, Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz p1, :cond_49

    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    instance-of v2, p1, Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v2, :cond_49

    invoke-interface {p1}, Lcom/scwang/smart/refresh/layout/api/a;->getSpinnerStyle()Lcom/scwang/smart/refresh/layout/constant/c;

    move-result-object p1

    sget-object v2, Lcom/scwang/smart/refresh/layout/constant/c;->f:Lcom/scwang/smart/refresh/layout/constant/c;

    if-ne p1, v2, :cond_49

    .line 8
    invoke-interface {v0}, Lcom/scwang/smart/refresh/layout/api/a;->getView()Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/view/View;->setScaleY(F)V

    :cond_49
    :goto_49
    return-void
.end method


# virtual methods
.method public a(Z)Z
    .registers 4
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "RestrictedApi"
        }
    .end annotation

    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    instance-of v1, v0, Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v1, :cond_10

    check-cast v0, Lcom/scwang/smart/refresh/layout/api/c;

    invoke-interface {v0, p1}, Lcom/scwang/smart/refresh/layout/api/c;->a(Z)Z

    move-result p1

    if-eqz p1, :cond_10

    const/4 p1, 0x1

    goto :goto_11

    :cond_10
    const/4 p1, 0x0

    :goto_11
    return p1
.end method

.method public b(Lcom/scwang/smart/refresh/layout/api/f;Lcom/scwang/smart/refresh/layout/constant/b;Lcom/scwang/smart/refresh/layout/constant/b;)V
    .registers 6

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    if-eqz v0, :cond_3e

    if-eq v0, p0, :cond_3e

    .line 2
    instance-of v1, p0, Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v1, :cond_1f

    instance-of v1, v0, Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v1, :cond_1f

    .line 3
    iget-boolean v0, p2, Lcom/scwang/smart/refresh/layout/constant/b;->isFooter:Z

    if-eqz v0, :cond_16

    .line 4
    invoke-virtual {p2}, Lcom/scwang/smart/refresh/layout/constant/b;->toHeader()Lcom/scwang/smart/refresh/layout/constant/b;

    move-result-object p2

    .line 5
    :cond_16
    iget-boolean v0, p3, Lcom/scwang/smart/refresh/layout/constant/b;->isFooter:Z

    if-eqz v0, :cond_37

    .line 6
    invoke-virtual {p3}, Lcom/scwang/smart/refresh/layout/constant/b;->toHeader()Lcom/scwang/smart/refresh/layout/constant/b;

    move-result-object p3

    goto :goto_37

    .line 7
    :cond_1f
    instance-of v1, p0, Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v1, :cond_37

    instance-of v0, v0, Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v0, :cond_37

    .line 8
    iget-boolean v0, p2, Lcom/scwang/smart/refresh/layout/constant/b;->isHeader:Z

    if-eqz v0, :cond_2f

    .line 9
    invoke-virtual {p2}, Lcom/scwang/smart/refresh/layout/constant/b;->toFooter()Lcom/scwang/smart/refresh/layout/constant/b;

    move-result-object p2

    .line 10
    :cond_2f
    iget-boolean v0, p3, Lcom/scwang/smart/refresh/layout/constant/b;->isHeader:Z

    if-eqz v0, :cond_37

    .line 11
    invoke-virtual {p3}, Lcom/scwang/smart/refresh/layout/constant/b;->toFooter()Lcom/scwang/smart/refresh/layout/constant/b;

    move-result-object p3

    .line 12
    :cond_37
    :goto_37
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    if-eqz v0, :cond_3e

    .line 13
    invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smart/refresh/layout/listener/h;->b(Lcom/scwang/smart/refresh/layout/api/f;Lcom/scwang/smart/refresh/layout/constant/b;Lcom/scwang/smart/refresh/layout/constant/b;)V

    :cond_3e
    return-void
.end method

.method public c(Lcom/scwang/smart/refresh/layout/api/f;II)V
    .registers 5

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    if-eqz v0, :cond_9

    if-eq v0, p0, :cond_9

    .line 2
    invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smart/refresh/layout/api/a;->c(Lcom/scwang/smart/refresh/layout/api/f;II)V

    :cond_9
    return-void
.end method

.method public d(Lcom/scwang/smart/refresh/layout/api/f;II)V
    .registers 5

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    if-eqz v0, :cond_9

    if-eq v0, p0, :cond_9

    .line 2
    invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smart/refresh/layout/api/a;->d(Lcom/scwang/smart/refresh/layout/api/f;II)V

    :cond_9
    return-void
.end method

.method public final e(FII)V
    .registers 5

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    if-eqz v0, :cond_9

    if-eq v0, p0, :cond_9

    .line 2
    invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smart/refresh/layout/api/a;->e(FII)V

    :cond_9
    return-void
.end method

.method public final equals(Ljava/lang/Object;)Z
    .registers 5

    .line 1
    invoke-super {p0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x1

    if-nez v0, :cond_1c

    .line 2
    instance-of v0, p1, Lcom/scwang/smart/refresh/layout/api/a;

    const/4 v2, 0x0

    if-eqz v0, :cond_1b

    .line 3
    invoke-virtual {p0}, Lcom/scwang/smart/refresh/layout/simple/b;->getView()Landroid/view/View;

    move-result-object v0

    check-cast p1, Lcom/scwang/smart/refresh/layout/api/a;

    invoke-interface {p1}, Lcom/scwang/smart/refresh/layout/api/a;->getView()Landroid/view/View;

    move-result-object p1

    if-ne v0, p1, :cond_19

    goto :goto_1a

    :cond_19
    const/4 v1, 0x0

    :goto_1a
    return v1

    :cond_1b
    return v2

    :cond_1c
    return v1
.end method

.method public final f()Z
    .registers 2

    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    if-eqz v0, :cond_e

    if-eq v0, p0, :cond_e

    invoke-interface {v0}, Lcom/scwang/smart/refresh/layout/api/a;->f()Z

    move-result v0

    if-eqz v0, :cond_e

    const/4 v0, 0x1

    goto :goto_f

    :cond_e
    const/4 v0, 0x0

    :goto_f
    return v0
.end method

.method public g(Lcom/scwang/smart/refresh/layout/api/f;Z)I
    .registers 4

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    if-eqz v0, :cond_b

    if-eq v0, p0, :cond_b

    .line 2
    invoke-interface {v0, p1, p2}, Lcom/scwang/smart/refresh/layout/api/a;->g(Lcom/scwang/smart/refresh/layout/api/f;Z)I

    move-result p1

    return p1

    :cond_b
    const/4 p1, 0x0

    return p1
.end method

.method public getSpinnerStyle()Lcom/scwang/smart/refresh/layout/constant/c;
    .registers 6

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->b:Lcom/scwang/smart/refresh/layout/constant/c;

    if-eqz v0, :cond_5

    return-object v0

    .line 2
    :cond_5
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    if-eqz v0, :cond_10

    if-eq v0, p0, :cond_10

    .line 3
    invoke-interface {v0}, Lcom/scwang/smart/refresh/layout/api/a;->getSpinnerStyle()Lcom/scwang/smart/refresh/layout/constant/c;

    move-result-object v0

    return-object v0

    .line 4
    :cond_10
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->a:Landroid/view/View;

    if-eqz v0, :cond_41

    .line 5
    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 6
    instance-of v1, v0, Lcom/scwang/smart/refresh/layout/a$j;

    if-eqz v1, :cond_26

    .line 7
    move-object v1, v0

    check-cast v1, Lcom/scwang/smart/refresh/layout/a$j;

    iget-object v1, v1, Lcom/scwang/smart/refresh/layout/a$j;->b:Lcom/scwang/smart/refresh/layout/constant/c;

    iput-object v1, p0, Lcom/scwang/smart/refresh/layout/simple/b;->b:Lcom/scwang/smart/refresh/layout/constant/c;

    if-eqz v1, :cond_26

    return-object v1

    :cond_26
    if-eqz v0, :cond_41

    .line 8
    iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    if-eqz v0, :cond_2f

    const/4 v1, -0x1

    if-ne v0, v1, :cond_41

    .line 9
    :cond_2f
    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/c;->g:[Lcom/scwang/smart/refresh/layout/constant/c;

    const/4 v1, 0x5

    const/4 v2, 0x0

    :goto_33
    if-ge v2, v1, :cond_41

    aget-object v3, v0, v2

    .line 10
    iget-boolean v4, v3, Lcom/scwang/smart/refresh/layout/constant/c;->b:Z

    if-eqz v4, :cond_3e

    .line 11
    iput-object v3, p0, Lcom/scwang/smart/refresh/layout/simple/b;->b:Lcom/scwang/smart/refresh/layout/constant/c;

    return-object v3

    :cond_3e
    add-int/lit8 v2, v2, 0x1

    goto :goto_33

    .line 12
    :cond_41
    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/c;->c:Lcom/scwang/smart/refresh/layout/constant/c;

    iput-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->b:Lcom/scwang/smart/refresh/layout/constant/c;

    return-object v0
.end method

.method public getView()Landroid/view/View;
    .registers 2

    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->a:Landroid/view/View;

    if-nez v0, :cond_5

    move-object v0, p0

    :cond_5
    return-object v0
.end method

.method public final h(Lcom/scwang/smart/refresh/layout/api/e;II)V
    .registers 5

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    if-eqz v0, :cond_a

    if-eq v0, p0, :cond_a

    .line 2
    invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smart/refresh/layout/api/a;->h(Lcom/scwang/smart/refresh/layout/api/e;II)V

    goto :goto_48

    .line 3
    :cond_a
    iget-object p2, p0, Lcom/scwang/smart/refresh/layout/simple/b;->a:Landroid/view/View;

    if-eqz p2, :cond_48

    .line 4
    invoke-virtual {p2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p2

    .line 5
    instance-of p3, p2, Lcom/scwang/smart/refresh/layout/a$j;

    if-eqz p3, :cond_48

    .line 6
    check-cast p2, Lcom/scwang/smart/refresh/layout/a$j;

    iget p2, p2, Lcom/scwang/smart/refresh/layout/a$j;->a:I

    check-cast p1, Lcom/scwang/smart/refresh/layout/a$k;

    .line 7
    iget-object p3, p1, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v0, p3, Lcom/scwang/smart/refresh/layout/a;->E0:Landroid/graphics/Paint;

    if-nez v0, :cond_2b

    if-eqz p2, :cond_2b

    .line 8
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p3, Lcom/scwang/smart/refresh/layout/a;->E0:Landroid/graphics/Paint;

    .line 9
    :cond_2b
    iget-object p3, p1, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object p3, p3, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    invoke-virtual {p0, p3}, Lcom/scwang/smart/refresh/layout/simple/b;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-eqz p3, :cond_3a

    .line 10
    iget-object p1, p1, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iput p2, p1, Lcom/scwang/smart/refresh/layout/a;->K0:I

    goto :goto_48

    .line 11
    :cond_3a
    iget-object p3, p1, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object p3, p3, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    invoke-virtual {p0, p3}, Lcom/scwang/smart/refresh/layout/simple/b;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-eqz p3, :cond_48

    .line 12
    iget-object p1, p1, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iput p2, p1, Lcom/scwang/smart/refresh/layout/a;->L0:I

    :cond_48
    :goto_48
    return-void
.end method

.method public i(ZFIII)V
    .registers 12

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    if-eqz v0, :cond_e

    if-eq v0, p0, :cond_e

    move v1, p1

    move v2, p2

    move v3, p3

    move v4, p4

    move v5, p5

    .line 2
    invoke-interface/range {v0 .. v5}, Lcom/scwang/smart/refresh/layout/api/a;->i(ZFIII)V

    :cond_e
    return-void
.end method

.method public varargs setPrimaryColors([I)V
    .registers 3

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/simple/b;->c:Lcom/scwang/smart/refresh/layout/api/a;

    if-eqz v0, :cond_9

    if-eq v0, p0, :cond_9

    .line 2
    invoke-interface {v0, p1}, Lcom/scwang/smart/refresh/layout/api/a;->setPrimaryColors([I)V

    :cond_9
    return-void
.end method