InternalAbstract.smali

.class public abstract Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;
.super Landroid/widget/RelativeLayout;
.source "InternalAbstract.java"

# interfaces
.implements Lcom/scwang/smartrefresh/layout/a/h;


# instance fields
.field protected mSpinnerStyle:Lcom/scwang/smartrefresh/layout/constant/b;

.field protected mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

.field protected mWrappedView:Landroid/view/View;


# direct methods
.method protected constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 4

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

    return-void
.end method

.method protected constructor <init>(Landroid/view/View;)V
    .registers 3

    .line 1
    instance-of v0, p1, Lcom/scwang/smartrefresh/layout/a/h;

    if-eqz v0, :cond_8

    move-object v0, p1

    check-cast v0, Lcom/scwang/smartrefresh/layout/a/h;

    goto :goto_9

    :cond_8
    const/4 v0, 0x0

    :goto_9
    invoke-direct {p0, p1, v0}, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;-><init>(Landroid/view/View;Lcom/scwang/smartrefresh/layout/a/h;)V

    return-void
.end method

.method protected constructor <init>(Landroid/view/View;Lcom/scwang/smartrefresh/layout/a/h;)V
    .registers 6

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

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x0

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

    .line 3
    iput-object p1, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedView:Landroid/view/View;

    .line 4
    iput-object p2, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    .line 5
    instance-of p1, p0, Lcom/scwang/smartrefresh/layout/impl/RefreshFooterWrapper;

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

    if-eqz p1, :cond_29

    iget-object p1, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    instance-of v1, p1, Lcom/scwang/smartrefresh/layout/a/g;

    if-eqz v1, :cond_29

    invoke-interface {p1}, Lcom/scwang/smartrefresh/layout/a/h;->getSpinnerStyle()Lcom/scwang/smartrefresh/layout/constant/b;

    move-result-object p1

    sget-object v1, Lcom/scwang/smartrefresh/layout/constant/b;->e:Lcom/scwang/smartrefresh/layout/constant/b;

    if-ne p1, v1, :cond_29

    .line 6
    invoke-interface {p2}, Lcom/scwang/smartrefresh/layout/a/h;->getView()Landroid/view/View;

    move-result-object p1

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

    goto :goto_42

    .line 7
    :cond_29
    instance-of p1, p0, Lcom/scwang/smartrefresh/layout/impl/RefreshHeaderWrapper;

    if-eqz p1, :cond_42

    iget-object p1, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    instance-of v1, p1, Lcom/scwang/smartrefresh/layout/a/f;

    if-eqz v1, :cond_42

    invoke-interface {p1}, Lcom/scwang/smartrefresh/layout/a/h;->getSpinnerStyle()Lcom/scwang/smartrefresh/layout/constant/b;

    move-result-object p1

    sget-object v1, Lcom/scwang/smartrefresh/layout/constant/b;->e:Lcom/scwang/smartrefresh/layout/constant/b;

    if-ne p1, v1, :cond_42

    .line 8
    invoke-interface {p2}, Lcom/scwang/smartrefresh/layout/a/h;->getView()Landroid/view/View;

    move-result-object p1

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

    :cond_42
    :goto_42
    return-void
.end method


# virtual methods
.method public 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/smartrefresh/layout/a/h;

    const/4 v2, 0x0

    if-eqz v0, :cond_1b

    .line 3
    invoke-interface {p0}, Lcom/scwang/smartrefresh/layout/a/h;->getView()Landroid/view/View;

    move-result-object v0

    check-cast p1, Lcom/scwang/smartrefresh/layout/a/h;

    invoke-interface {p1}, Lcom/scwang/smartrefresh/layout/a/h;->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 getSpinnerStyle()Lcom/scwang/smartrefresh/layout/constant/b;
    .registers 6

    .line 1
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mSpinnerStyle:Lcom/scwang/smartrefresh/layout/constant/b;

    if-eqz v0, :cond_5

    return-object v0

    .line 2
    :cond_5
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    if-eqz v0, :cond_10

    if-eq v0, p0, :cond_10

    .line 3
    invoke-interface {v0}, Lcom/scwang/smartrefresh/layout/a/h;->getSpinnerStyle()Lcom/scwang/smartrefresh/layout/constant/b;

    move-result-object v0

    return-object v0

    .line 4
    :cond_10
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedView:Landroid/view/View;

    if-eqz v0, :cond_43

    .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/smartrefresh/layout/SmartRefreshLayout$LayoutParams;

    if-eqz v1, :cond_28

    .line 7
    move-object v1, v0

    check-cast v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;

    iget-object v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->b:Lcom/scwang/smartrefresh/layout/constant/b;

    iput-object v1, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mSpinnerStyle:Lcom/scwang/smartrefresh/layout/constant/b;

    .line 8
    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mSpinnerStyle:Lcom/scwang/smartrefresh/layout/constant/b;

    if-eqz v1, :cond_28

    return-object v1

    :cond_28
    if-eqz v0, :cond_43

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

    if-eqz v0, :cond_31

    const/4 v1, -0x1

    if-ne v0, v1, :cond_43

    .line 10
    :cond_31
    sget-object v0, Lcom/scwang/smartrefresh/layout/constant/b;->f:[Lcom/scwang/smartrefresh/layout/constant/b;

    array-length v1, v0

    const/4 v2, 0x0

    :goto_35
    if-ge v2, v1, :cond_43

    aget-object v3, v0, v2

    .line 11
    iget-boolean v4, v3, Lcom/scwang/smartrefresh/layout/constant/b;->i:Z

    if-eqz v4, :cond_40

    .line 12
    iput-object v3, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mSpinnerStyle:Lcom/scwang/smartrefresh/layout/constant/b;

    return-object v3

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

    goto :goto_35

    .line 13
    :cond_43
    sget-object v0, Lcom/scwang/smartrefresh/layout/constant/b;->a:Lcom/scwang/smartrefresh/layout/constant/b;

    iput-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mSpinnerStyle:Lcom/scwang/smartrefresh/layout/constant/b;

    return-object v0
.end method

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

    .line 1
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedView:Landroid/view/View;

    if-nez v0, :cond_5

    move-object v0, p0

    :cond_5
    return-object v0
.end method

.method public isSupportHorizontalDrag()Z
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    if-eqz v0, :cond_e

    if-eq v0, p0, :cond_e

    invoke-interface {v0}, Lcom/scwang/smartrefresh/layout/a/h;->isSupportHorizontalDrag()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 onFinish(Lcom/scwang/smartrefresh/layout/a/j;Z)I
    .registers 4

    .line 1
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    if-eqz v0, :cond_b

    if-eq v0, p0, :cond_b

    .line 2
    invoke-interface {v0, p1, p2}, Lcom/scwang/smartrefresh/layout/a/h;->onFinish(Lcom/scwang/smartrefresh/layout/a/j;Z)I

    move-result p1

    return p1

    :cond_b
    const/4 p1, 0x0

    return p1
.end method

.method public onHorizontalDrag(FII)V
    .registers 5

    .line 1
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    if-eqz v0, :cond_9

    if-eq v0, p0, :cond_9

    .line 2
    invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smartrefresh/layout/a/h;->onHorizontalDrag(FII)V

    :cond_9
    return-void
.end method

.method public onInitialized(Lcom/scwang/smartrefresh/layout/a/i;II)V
    .registers 5

    .line 1
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    if-eqz v0, :cond_a

    if-eq v0, p0, :cond_a

    .line 2
    invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smartrefresh/layout/a/h;->onInitialized(Lcom/scwang/smartrefresh/layout/a/i;II)V

    goto :goto_1d

    .line 3
    :cond_a
    iget-object p2, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedView:Landroid/view/View;

    if-eqz p2, :cond_1d

    .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/smartrefresh/layout/SmartRefreshLayout$LayoutParams;

    if-eqz p3, :cond_1d

    .line 6
    check-cast p2, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;

    iget p2, p2, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->a:I

    invoke-interface {p1, p0, p2}, Lcom/scwang/smartrefresh/layout/a/i;->a(Lcom/scwang/smartrefresh/layout/a/h;I)Lcom/scwang/smartrefresh/layout/a/i;

    :cond_1d
    :goto_1d
    return-void
.end method

.method public onMoving(ZFIII)V
    .registers 12

    .line 1
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    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/smartrefresh/layout/a/h;->onMoving(ZFIII)V

    :cond_e
    return-void
.end method

.method public onReleased(Lcom/scwang/smartrefresh/layout/a/j;II)V
    .registers 5

    .line 1
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    if-eqz v0, :cond_9

    if-eq v0, p0, :cond_9

    .line 2
    invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smartrefresh/layout/a/h;->onReleased(Lcom/scwang/smartrefresh/layout/a/j;II)V

    :cond_9
    return-void
.end method

.method public onStartAnimator(Lcom/scwang/smartrefresh/layout/a/j;II)V
    .registers 5

    .line 1
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    if-eqz v0, :cond_9

    if-eq v0, p0, :cond_9

    .line 2
    invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smartrefresh/layout/a/h;->onStartAnimator(Lcom/scwang/smartrefresh/layout/a/j;II)V

    :cond_9
    return-void
.end method

.method public onStateChanged(Lcom/scwang/smartrefresh/layout/a/j;Lcom/scwang/smartrefresh/layout/constant/RefreshState;Lcom/scwang/smartrefresh/layout/constant/RefreshState;)V
    .registers 6

    .line 1
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    if-eqz v0, :cond_40

    if-eq v0, p0, :cond_40

    .line 2
    instance-of v1, p0, Lcom/scwang/smartrefresh/layout/impl/RefreshFooterWrapper;

    if-eqz v1, :cond_1f

    instance-of v0, v0, Lcom/scwang/smartrefresh/layout/a/g;

    if-eqz v0, :cond_1f

    .line 3
    iget-boolean v0, p2, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->isFooter:Z

    if-eqz v0, :cond_16

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

    move-result-object p2

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

    if-eqz v0, :cond_39

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

    move-result-object p3

    goto :goto_39

    .line 7
    :cond_1f
    instance-of v0, p0, Lcom/scwang/smartrefresh/layout/impl/RefreshHeaderWrapper;

    if-eqz v0, :cond_39

    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    instance-of v0, v0, Lcom/scwang/smartrefresh/layout/a/f;

    if-eqz v0, :cond_39

    .line 8
    iget-boolean v0, p2, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->isHeader:Z

    if-eqz v0, :cond_31

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

    move-result-object p2

    .line 10
    :cond_31
    iget-boolean v0, p3, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->isHeader:Z

    if-eqz v0, :cond_39

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

    move-result-object p3

    .line 12
    :cond_39
    :goto_39
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    if-eqz v0, :cond_40

    .line 13
    invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smartrefresh/layout/b/f;->onStateChanged(Lcom/scwang/smartrefresh/layout/a/j;Lcom/scwang/smartrefresh/layout/constant/RefreshState;Lcom/scwang/smartrefresh/layout/constant/RefreshState;)V

    :cond_40
    return-void
.end method

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

    .line 1
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    instance-of v1, v0, Lcom/scwang/smartrefresh/layout/a/f;

    if-eqz v1, :cond_10

    check-cast v0, Lcom/scwang/smartrefresh/layout/a/f;

    invoke-interface {v0, p1}, Lcom/scwang/smartrefresh/layout/a/f;->setNoMoreData(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 varargs setPrimaryColors([I)V
    .registers 3

    .line 1
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/internal/InternalAbstract;->mWrappedInternal:Lcom/scwang/smartrefresh/layout/a/h;

    if-eqz v0, :cond_9

    if-eq v0, p0, :cond_9

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

    :cond_9
    return-void
.end method