RefreshLayout.smali

.class public abstract Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;
.super Landroid/view/ViewGroup;

# interfaces
.implements Landroid/support/v4/view/NestedScrollingChild;
.implements Landroid/support/v4/view/NestedScrollingParent;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;,
        Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;,
        Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$d;,
        Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$b;,
        Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;
    }
.end annotation


# instance fields
.field private A:F

.field private B:F

.field private C:F

.field private D:F

.field private E:F

.field private F:F

.field private G:Landroid/view/View;

.field private H:Z

.field private I:Z

.field private J:Z

.field private K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

.field private L:Landroid/view/View;

.field private M:Landroid/animation/ValueAnimator;

.field private N:Lcom/kwad/sdk/contentalliance/refreshview/b;

.field private O:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$b;

.field private final P:Landroid/view/animation/Animation$AnimationListener;

.field private Q:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$d;

.field private R:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

.field private S:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;",
            ">;"
        }
    .end annotation
.end field

.field private T:Landroid/view/animation/Interpolator;

.field private U:Landroid/view/animation/Interpolator;

.field private V:Z

.field private W:Z

.field protected a:I

.field private final aa:Landroid/view/animation/Animation;

.field private final ab:Landroid/view/animation/Animation;

.field private ac:Z

.field protected b:F

.field protected c:F

.field protected d:Landroid/view/View;

.field protected e:Lcom/kwad/sdk/contentalliance/refreshview/d;

.field protected final f:Landroid/view/animation/Animation$AnimationListener;

.field private final g:Ljava/lang/String;

.field private final h:[I

.field private final i:[I

.field private final j:Landroid/support/v4/view/NestedScrollingChildHelper;

.field private final k:Landroid/support/v4/view/NestedScrollingParentHelper;

.field private l:F

.field private m:Z

.field private n:Z

.field private o:Z

.field private p:Z

.field private q:Z

.field private r:Z

.field private s:Z

.field private t:I

.field private u:I

.field private v:I

.field private w:I

.field private x:I

.field private y:I

.field private z:F


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

    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 9

    const/high16 v5, 0x428c0000    # 70.0f

    const/high16 v2, 0x40000000    # 2.0f

    const/4 v4, 0x0

    const/4 v1, 0x0

    const/4 v3, 0x1

    invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const-string v0, "RefreshLayout"

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->g:Ljava/lang/String;

    const/4 v0, 0x2

    new-array v0, v0, [I

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->h:[I

    const/4 v0, 0x2

    new-array v0, v0, [I

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->i:[I

    const/4 v0, -0x1

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->t:I

    const/4 v0, -0x1

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    const/16 v0, 0x12c

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->v:I

    const/16 v0, 0x1f4

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->w:I

    iput-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->H:Z

    iput-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->I:Z

    iput-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->J:Z

    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->NORMAL:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->M:Landroid/animation/ValueAnimator;

    new-instance v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$1;

    invoke-direct {v0, p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$1;-><init>(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)V

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->P:Landroid/view/animation/Animation$AnimationListener;

    new-instance v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$2;

    invoke-direct {v0, p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$2;-><init>(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)V

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->f:Landroid/view/animation/Animation$AnimationListener;

    new-instance v0, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v0, v2}, Landroid/view/animation/DecelerateInterpolator;-><init>(F)V

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->T:Landroid/view/animation/Interpolator;

    new-instance v0, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v0, v2}, Landroid/view/animation/DecelerateInterpolator;-><init>(F)V

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->U:Landroid/view/animation/Interpolator;

    iput-boolean v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->W:Z

    new-instance v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$3;

    invoke-direct {v0, p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$3;-><init>(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)V

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->aa:Landroid/view/animation/Animation;

    new-instance v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$4;

    invoke-direct {v0, p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$4;-><init>(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)V

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->ab:Landroid/view/animation/Animation;

    iput-boolean v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->ac:Z

    invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->y:I

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v1, v0, Landroid/util/DisplayMetrics;->density:F

    mul-float/2addr v1, v5

    float-to-int v1, v1

    iput v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a:I

    iget v0, v0, Landroid/util/DisplayMetrics;->density:F

    mul-float/2addr v0, v5

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    iput v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    const-string v0, "RefreshLayout"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "constructor: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    iput v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    const/high16 v0, 0x3f800000    # 1.0f

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->E:F

    new-instance v0, Landroid/support/v4/view/NestedScrollingParentHelper;

    invoke-direct {v0, p0}, Landroid/support/v4/view/NestedScrollingParentHelper;-><init>(Landroid/view/ViewGroup;)V

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->k:Landroid/support/v4/view/NestedScrollingParentHelper;

    new-instance v0, Landroid/support/v4/view/NestedScrollingChildHelper;

    invoke-direct {v0, p0}, Landroid/support/v4/view/NestedScrollingChildHelper;-><init>(Landroid/view/View;)V

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->j:Landroid/support/v4/view/NestedScrollingChildHelper;

    invoke-virtual {p0, p2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/util/AttributeSet;)V

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->g()V

    invoke-virtual {p0, v3}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->setNestedScrollingEnabled(Z)V

    invoke-static {p0, v3}, Landroid/support/v4/view/ViewCompat;->setChildrenDrawingOrderEnabled(Landroid/view/ViewGroup;Z)V

    return-void
.end method

.method private a(Landroid/view/MotionEvent;I)F
    .registers 4

    invoke-static {p1, p2}, Landroid/support/v4/view/MotionEventCompat;->findPointerIndex(Landroid/view/MotionEvent;I)I

    move-result v0

    if-gez v0, :cond_9

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

    :goto_8
    return v0

    :cond_9
    invoke-static {p1, v0}, Landroid/support/v4/view/MotionEventCompat;->getY(Landroid/view/MotionEvent;I)F

    move-result v0

    goto :goto_8
.end method

.method private a(F)V
    .registers 6

    const/4 v3, 0x1

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->z:F

    sub-float v0, p1, v0

    iget-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    if-eqz v1, :cond_22

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->y:I

    int-to-float v1, v1

    cmpl-float v1, v0, v1

    if-gtz v1, :cond_17

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    const/4 v2, 0x0

    cmpl-float v1, v1, v2

    if-lez v1, :cond_22

    :cond_17
    iput-boolean v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->q:Z

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->z:F

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->y:I

    int-to-float v1, v1

    add-float/2addr v0, v1

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->B:F

    :cond_21
    :goto_21
    return-void

    :cond_22
    iget-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->q:Z

    if-nez v1, :cond_21

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->y:I

    int-to-float v1, v1

    cmpl-float v0, v0, v1

    if-lez v0, :cond_21

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->z:F

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->y:I

    int-to-float v1, v1

    add-float/2addr v0, v1

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->B:F

    iput-boolean v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->q:Z

    goto :goto_21
.end method

.method private a(FFF)V
    .registers 6

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->x:I

    int-to-float v0, v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->x:I

    int-to-float v1, v1

    sub-float v1, p1, v1

    mul-float/2addr v1, p3

    add-float/2addr v0, v1

    float-to-int v0, v0

    int-to-float v0, v0

    sub-float/2addr v0, p2

    float-to-int v0, v0

    invoke-virtual {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->setTargetOrRefreshViewOffsetY(I)V

    return-void
.end method

.method private a(FZ)V
    .registers 8

    const/4 v0, 0x0

    const/4 v3, 0x0

    iput p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->C:F

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->Q:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$d;

    if-eqz v1, :cond_11

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->Q:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$d;

    invoke-interface {v1, p1, v3}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$d;->a(FZ)Z

    move-result v1

    if-eqz v1, :cond_11

    :goto_10
    return-void

    :cond_11
    iget-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    if-nez v1, :cond_76

    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_106

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->N:Lcom/kwad/sdk/contentalliance/refreshview/b;

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    invoke-interface {v0, p1, v1}, Lcom/kwad/sdk/contentalliance/refreshview/b;->a(FF)F

    move-result v1

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    move v2, v1

    move v1, v0

    :goto_2e
    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    if-nez v0, :cond_ba

    cmpl-float v0, v2, v1

    if-lez v0, :cond_88

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->p:Z

    if-nez v0, :cond_88

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->p:Z

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->e:Lcom/kwad/sdk/contentalliance/refreshview/d;

    invoke-interface {v0}, Lcom/kwad/sdk/contentalliance/refreshview/d;->d()V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->R:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    if-eqz v0, :cond_4b

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->R:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    invoke-interface {v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;->a()V

    :cond_4b
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    if-eqz v0, :cond_ba

    :goto_4f
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v3, v0, :cond_ba

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    invoke-interface {v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;->a()V

    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_4f

    :pswitch_66
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->N:Lcom/kwad/sdk/contentalliance/refreshview/b;

    iget v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    invoke-interface {v1, p1, v2}, Lcom/kwad/sdk/contentalliance/refreshview/b;->a(FF)F

    move-result v1

    add-float/2addr v1, v0

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    move v2, v1

    move v1, v0

    goto :goto_2e

    :cond_76
    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    cmpl-float v1, p1, v1

    if-lez v1, :cond_86

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    :goto_7e
    cmpg-float v2, v1, v0

    if-gez v2, :cond_102

    :goto_82
    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    move v2, v0

    goto :goto_2e

    :cond_86
    move v1, p1

    goto :goto_7e

    :cond_88
    cmpg-float v0, v2, v1

    if-gtz v0, :cond_ba

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->p:Z

    if-eqz v0, :cond_ba

    iput-boolean v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->p:Z

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->e:Lcom/kwad/sdk/contentalliance/refreshview/d;

    invoke-interface {v0}, Lcom/kwad/sdk/contentalliance/refreshview/d;->e()V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->R:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    if-eqz v0, :cond_a0

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->R:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    invoke-interface {v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;->b()V

    :cond_a0
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    if-eqz v0, :cond_ba

    :goto_a4
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v3, v0, :cond_ba

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    invoke-interface {v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;->b()V

    add-int/lit8 v3, v3, 0x1

    goto :goto_a4

    :cond_ba
    const-string v0, "RefreshLayout"

    new-instance v3, Ljava/lang/StringBuilder;

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

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " -- "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v3, " -- "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v3, " -- "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v3, " -- "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    sub-float v0, v2, v0

    float-to-int v0, v0

    invoke-direct {p0, v0, p2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(IZ)V

    goto/16 :goto_10

    :cond_102
    move v0, v1

    goto/16 :goto_82

    nop

    :pswitch_data_106
    .packed-switch 0x1
        :pswitch_66
    .end packed-switch
.end method

.method private a(II)V
    .registers 9

    const/high16 v5, 0x40000000    # 2.0f

    const/4 v4, 0x0

    const/4 v3, -0x1

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

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

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup$MarginLayoutParams;

    iget v1, v0, Landroid/view/ViewGroup$MarginLayoutParams;->width:I

    if-ne v1, v3, :cond_53

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getMeasuredWidth()I

    move-result v1

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingLeft()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingRight()I

    move-result v2

    sub-int/2addr v1, v2

    iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    sub-int/2addr v1, v2

    iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I

    sub-int/2addr v1, v2

    invoke-static {v4, v1}, Ljava/lang/Math;->max(II)I

    move-result v1

    invoke-static {v1, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v1

    :goto_2c
    iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->height:I

    if-ne v2, v3, :cond_69

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getMeasuredHeight()I

    move-result v2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingTop()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingBottom()I

    move-result v3

    sub-int/2addr v2, v3

    iget v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    sub-int/2addr v2, v3

    iget v0, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    sub-int v0, v2, v0

    invoke-static {v4, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    invoke-static {v0, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v0

    :goto_4d
    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    invoke-virtual {v2, v1, v0}, Landroid/view/View;->measure(II)V

    return-void

    :cond_53
    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingLeft()I

    move-result v1

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingRight()I

    move-result v2

    add-int/2addr v1, v2

    iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    add-int/2addr v1, v2

    iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I

    add-int/2addr v1, v2

    iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->width:I

    invoke-static {p1, v1, v2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getChildMeasureSpec(III)I

    move-result v1

    goto :goto_2c

    :cond_69
    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingTop()I

    move-result v2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingBottom()I

    move-result v3

    add-int/2addr v2, v3

    iget v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    add-int/2addr v2, v3

    iget v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    add-int/2addr v2, v3

    iget v0, v0, Landroid/view/ViewGroup$MarginLayoutParams;->height:I

    invoke-static {p2, v2, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getChildMeasureSpec(III)I

    move-result v0

    goto :goto_4d
.end method

.method private a(IZ)V
    .registers 9

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    if-nez v0, :cond_6

    :goto_5
    return-void

    :cond_6
    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_146

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

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

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

    if-eqz v0, :cond_d2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

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

    :goto_21
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

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

    move-result v0

    int-to-float v0, v0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    const-string v0, "RefreshLayout"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v3, "refresh style"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    :goto_44
    const-string v0, "RefreshLayout"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v3, "current offset"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_14e

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->e:Lcom/kwad/sdk/contentalliance/refreshview/d;

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    div-float/2addr v3, v4

    invoke-interface {v0, v1, v3}, Lcom/kwad/sdk/contentalliance/refreshview/d;->a(FF)V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->R:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    if-eqz v0, :cond_87

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->R:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    div-float/2addr v3, v4

    invoke-interface {v0, v1, v3, p2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;->a(FFZ)V

    :cond_87
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    if-eqz v0, :cond_12f

    move v1, v2

    :goto_8c
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_12f

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    iget v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget v5, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    div-float/2addr v4, v5

    invoke-interface {v0, v3, v4, p2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;->a(FFZ)V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_8c

    :pswitch_aa
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

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

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

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

    move-result v0

    int-to-float v0, v0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    goto :goto_44

    :pswitch_b9
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

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

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

    if-eqz v0, :cond_c7

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

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

    :cond_c7
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

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

    move-result v0

    int-to-float v0, v0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    goto/16 :goto_44

    :cond_d2
    int-to-float v0, p1

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->E:F

    div-float/2addr v0, v1

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->F:F

    add-float/2addr v0, v1

    float-to-int v1, v0

    int-to-float v1, v1

    sub-float v1, v0, v1

    iput v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->F:F

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    float-to-int v0, v0

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

    goto/16 :goto_21

    :pswitch_e7
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->e:Lcom/kwad/sdk/contentalliance/refreshview/d;

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    sub-float/2addr v3, v4

    iget v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    div-float/2addr v3, v4

    invoke-interface {v0, v1, v3}, Lcom/kwad/sdk/contentalliance/refreshview/d;->a(FF)V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->R:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    if-eqz v0, :cond_109

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->R:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    sub-float/2addr v3, v4

    iget v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    div-float/2addr v3, v4

    invoke-interface {v0, v1, v3, p2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;->a(FFZ)V

    :cond_109
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    if-eqz v0, :cond_12f

    move v1, v2

    :goto_10e
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_12f

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    iget v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget v5, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    sub-float/2addr v4, v5

    iget v5, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    div-float/2addr v4, v5

    invoke-interface {v0, v3, v4, p2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;->a(FFZ)V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_10e

    :cond_12f
    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->W:Z

    if-eqz v0, :cond_140

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

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

    move-result v0

    if-eqz v0, :cond_140

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

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

    :cond_140
    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->invalidate()V

    goto/16 :goto_5

    nop

    :pswitch_data_146
    .packed-switch 0x1
        :pswitch_aa
        :pswitch_b9
    .end packed-switch

    :pswitch_data_14e
    .packed-switch 0x1
        :pswitch_e7
    .end packed-switch
.end method

.method private a(Landroid/view/MotionEvent;)V
    .registers 5

    invoke-static {p1}, Landroid/support/v4/view/MotionEventCompat;->getActionIndex(Landroid/view/MotionEvent;)I

    move-result v0

    invoke-static {p1, v0}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    invoke-direct {p0, p1, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/MotionEvent;I)F

    move-result v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->C:F

    sub-float/2addr v0, v1

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->B:F

    const-string v0, "RefreshLayout"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, " onDown "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->B:F

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;FFF)V
    .registers 4

    invoke-direct {p0, p1, p2, p3}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(FFF)V

    return-void
.end method

.method private a(ZZ)V
    .registers 7

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    if-eq v0, p1, :cond_12

    iput-boolean p2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->r:Z

    iput-boolean p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    if-eqz p1, :cond_13

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    float-to-int v0, v0

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->P:Landroid/view/animation/Animation$AnimationListener;

    invoke-direct {p0, v0, v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b(ILandroid/view/animation/Animation$AnimationListener;)V

    :cond_12
    :goto_12
    return-void

    :cond_13
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->e:Lcom/kwad/sdk/contentalliance/refreshview/d;

    invoke-interface {v0}, Lcom/kwad/sdk/contentalliance/refreshview/d;->c()V

    new-instance v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$5;

    invoke-direct {v0, p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$5;-><init>(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)V

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->e:Lcom/kwad/sdk/contentalliance/refreshview/d;

    invoke-interface {v1}, Lcom/kwad/sdk/contentalliance/refreshview/d;->f()I

    move-result v1

    int-to-long v2, v1

    invoke-virtual {p0, v0, v2, v3}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_12
.end method

.method private a(Landroid/view/View;)Z
    .registers 6

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-nez p1, :cond_5

    :goto_4
    return v2

    :cond_5
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v3, 0xe

    if-ge v0, v3, :cond_30

    instance-of v0, p1, Landroid/widget/AbsListView;

    if-eqz v0, :cond_30

    check-cast p1, Landroid/widget/AbsListView;

    invoke-virtual {p1}, Landroid/widget/AbsListView;->getChildCount()I

    move-result v0

    if-lez v0, :cond_2e

    invoke-virtual {p1}, Landroid/widget/AbsListView;->getFirstVisiblePosition()I

    move-result v0

    if-gtz v0, :cond_2b

    invoke-virtual {p1, v2}, Landroid/widget/AbsListView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

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

    move-result v0

    invoke-virtual {p1}, Landroid/widget/AbsListView;->getPaddingTop()I

    move-result v3

    if-ge v0, v3, :cond_2e

    :cond_2b
    move v0, v1

    :goto_2c
    move v2, v0

    goto :goto_4

    :cond_2e
    move v0, v2

    goto :goto_2c

    :cond_30
    instance-of v0, p1, Landroid/view/ViewGroup;

    if-eqz v0, :cond_4f

    move-object v0, p1

    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v3

    :goto_3b
    if-ge v2, v3, :cond_4f

    move-object v0, p1

    check-cast v0, Landroid/view/ViewGroup;

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

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_4c

    move v2, v1

    goto :goto_4

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

    goto :goto_3b

    :cond_4f
    const/4 v0, -0x1

    invoke-static {p1, v0}, Landroid/support/v4/view/ViewCompat;->canScrollVertically(Landroid/view/View;I)Z

    move-result v2

    goto :goto_4
.end method

.method static synthetic a(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)Z
    .registers 2

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->r:Z

    return v0
.end method

.method static synthetic a(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;Z)Z
    .registers 2

    iput-boolean p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->n:Z

    return p1
.end method

.method private b(F)I
    .registers 7

    const/high16 v4, 0x3f800000    # 1.0f

    const/4 v3, 0x0

    const-string v0, "RefreshLayout"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "from -- refreshing "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_5e

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    sub-float v0, p1, v0

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    div-float/2addr v0, v1

    invoke-static {v4, v0}, Ljava/lang/Math;->min(FF)F

    move-result v0

    invoke-static {v3, v0}, Ljava/lang/Math;->max(FF)F

    move-result v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->w:I

    int-to-float v1, v1

    mul-float/2addr v0, v1

    float-to-int v0, v0

    :goto_40
    return v0

    :pswitch_41
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    sub-float v0, p1, v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    sub-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    div-float/2addr v0, v1

    invoke-static {v4, v0}, Ljava/lang/Math;->min(FF)F

    move-result v0

    invoke-static {v3, v0}, Ljava/lang/Math;->max(FF)F

    move-result v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->w:I

    int-to-float v1, v1

    mul-float/2addr v0, v1

    float-to-int v0, v0

    goto :goto_40

    nop

    :pswitch_data_5e
    .packed-switch 0x1
        :pswitch_41
    .end packed-switch
.end method

.method private b(I)I
    .registers 4

    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_18

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    float-to-int v0, v0

    add-int/2addr p1, v0

    :goto_11
    :pswitch_11
    return p1

    :pswitch_12
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    float-to-int v0, v0

    add-int/2addr p1, v0

    goto :goto_11

    nop

    :pswitch_data_18
    .packed-switch 0x1
        :pswitch_11
        :pswitch_12
    .end packed-switch
.end method

.method static synthetic b(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$b;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->O:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$b;

    return-object v0
.end method

.method private b()V
    .registers 4

    const/4 v2, 0x0

    const/4 v0, 0x0

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->f()V

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->C:F

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->F:F

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->e:Lcom/kwad/sdk/contentalliance/refreshview/d;

    invoke-interface {v0}, Lcom/kwad/sdk/contentalliance/refreshview/d;->a()V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    const/16 v1, 0x8

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

    iput-boolean v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    iput-boolean v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->n:Z

    const-string v0, "RefreshLayout"

    const-string v1, "reset"

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private b(ILandroid/view/animation/Animation$AnimationListener;)V
    .registers 7

    const/4 v1, 0x0

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->clearAnimation()V

    int-to-float v0, p1

    invoke-direct {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b(F)I

    move-result v0

    if-gtz v0, :cond_12

    invoke-interface {p2, v1}, Landroid/view/animation/Animation$AnimationListener;->onAnimationStart(Landroid/view/animation/Animation;)V

    invoke-interface {p2, v1}, Landroid/view/animation/Animation$AnimationListener;->onAnimationEnd(Landroid/view/animation/Animation;)V

    :goto_11
    return-void

    :cond_12
    iput p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->x:I

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->aa:Landroid/view/animation/Animation;

    invoke-virtual {v0}, Landroid/view/animation/Animation;->reset()V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->aa:Landroid/view/animation/Animation;

    int-to-float v1, p1

    invoke-direct {p0, v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b(F)I

    move-result v1

    int-to-long v2, v1

    invoke-virtual {v0, v2, v3}, Landroid/view/animation/Animation;->setDuration(J)V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->aa:Landroid/view/animation/Animation;

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->U:Landroid/view/animation/Interpolator;

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    if-eqz p2, :cond_32

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->aa:Landroid/view/animation/Animation;

    invoke-virtual {v0, p2}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    :cond_32
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->aa:Landroid/view/animation/Animation;

    invoke-virtual {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_11
.end method

.method private b(Landroid/view/MotionEvent;)V
    .registers 5

    invoke-static {p1}, Landroid/support/v4/view/MotionEventCompat;->getActionIndex(Landroid/view/MotionEvent;)I

    move-result v0

    invoke-static {p1, v0}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v1

    iget v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    if-ne v1, v2, :cond_15

    if-nez v0, :cond_3b

    const/4 v0, 0x1

    :goto_f
    invoke-static {p1, v0}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    :cond_15
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    invoke-direct {p0, p1, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/MotionEvent;I)F

    move-result v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->C:F

    sub-float/2addr v0, v1

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->B:F

    const-string v0, "RefreshLayout"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, " onUp "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->B:F

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    :cond_3b
    const/4 v0, 0x0

    goto :goto_f
.end method

.method private c(F)I
    .registers 7

    const/high16 v4, 0x3f800000    # 1.0f

    const/4 v3, 0x0

    const-string v0, "RefreshLayout"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "from -- start "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    cmpg-float v0, p1, v0

    if-gez v0, :cond_23

    const/4 v0, 0x0

    :goto_22
    return v0

    :cond_23
    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_5e

    invoke-static {p1}, Ljava/lang/Math;->abs(F)F

    move-result v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    div-float/2addr v0, v1

    invoke-static {v4, v0}, Ljava/lang/Math;->min(FF)F

    move-result v0

    invoke-static {v3, v0}, Ljava/lang/Math;->max(FF)F

    move-result v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->v:I

    int-to-float v1, v1

    mul-float/2addr v0, v1

    float-to-int v0, v0

    goto :goto_22

    :pswitch_45
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    sub-float v0, p1, v0

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    div-float/2addr v0, v1

    invoke-static {v4, v0}, Ljava/lang/Math;->min(FF)F

    move-result v0

    invoke-static {v3, v0}, Ljava/lang/Math;->max(FF)F

    move-result v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->v:I

    int-to-float v1, v1

    mul-float/2addr v0, v1

    float-to-int v0, v0

    goto :goto_22

    :pswitch_data_5e
    .packed-switch 0x1
        :pswitch_45
    .end packed-switch
.end method

.method static synthetic c(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)V
    .registers 1

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b()V

    return-void
.end method

.method static synthetic d(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->R:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    return-object v0
.end method

.method static synthetic e(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)Ljava/util/List;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->S:Ljava/util/List;

    return-object v0
.end method

.method static synthetic f(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)Landroid/view/View;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    return-object v0
.end method

.method private f()V
    .registers 3

    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_20

    const/4 v0, 0x0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    sub-float/2addr v0, v1

    float-to-int v0, v0

    invoke-virtual {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->setTargetOrRefreshViewOffsetY(I)V

    :goto_15
    return-void

    :pswitch_16
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    sub-float/2addr v0, v1

    float-to-int v0, v0

    invoke-virtual {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->setTargetOrRefreshViewOffsetY(I)V

    goto :goto_15

    :pswitch_data_20
    .packed-switch 0x1
        :pswitch_16
    .end packed-switch
.end method

.method static synthetic g(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    return-object v0
.end method

.method private g()V
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a()Lcom/kwad/sdk/contentalliance/refreshview/b;

    move-result-object v0

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->N:Lcom/kwad/sdk/contentalliance/refreshview/b;

    return-void
.end method

.method private getTargetOrRefreshViewTop()I
    .registers 3

    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_1c

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

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

    move-result v0

    :goto_13
    return v0

    :pswitch_14
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

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

    move-result v0

    goto :goto_13

    nop

    :pswitch_data_1c
    .packed-switch 0x1
        :pswitch_14
    .end packed-switch
.end method

.method static synthetic h(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;)F
    .registers 2

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    return v0
.end method

.method private h()V
    .registers 6

    const/high16 v4, 0x40000000    # 2.0f

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getMeasuredWidth()I

    move-result v1

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingLeft()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingRight()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-static {v1, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v1

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getMeasuredHeight()I

    move-result v2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingTop()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingBottom()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-static {v2, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/view/View;->measure(II)V

    return-void
.end method

.method private i()V
    .registers 3

    const/4 v1, 0x0

    const/4 v0, 0x0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->A:F

    iput-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->q:Z

    iput-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->s:Z

    const/4 v0, -0x1

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    return-void
.end method

.method private j()V
    .registers 4

    const/4 v2, 0x1

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    if-nez v0, :cond_9

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->n:Z

    if-eqz v0, :cond_a

    :cond_9
    :goto_9
    return-void

    :cond_a
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->Q:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$d;

    if-eqz v0, :cond_18

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->Q:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$d;

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->C:F

    invoke-interface {v0, v1, v2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$d;->a(FZ)Z

    move-result v0

    if-nez v0, :cond_9

    :cond_18
    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c()Z

    move-result v0

    if-eqz v0, :cond_22

    invoke-direct {p0, v2, v2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(ZZ)V

    goto :goto_9

    :cond_22
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    float-to-int v0, v0

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->f:Landroid/view/animation/Animation$AnimationListener;

    invoke-virtual {p0, v0, v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(ILandroid/view/animation/Animation$AnimationListener;)V

    goto :goto_9
.end method

.method private k()V
    .registers 6

    const/high16 v4, 0x40000000    # 2.0f

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

    if-eqz v0, :cond_2f

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getMeasuredWidth()I

    move-result v1

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingLeft()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingRight()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-static {v1, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v1

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getMeasuredHeight()I

    move-result v2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingTop()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingBottom()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-static {v2, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/view/View;->measure(II)V

    :cond_2f
    return-void
.end method

.method private l()V
    .registers 4

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->m()Z

    move-result v0

    if-nez v0, :cond_23

    const/4 v0, 0x0

    :goto_7
    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getChildCount()I

    move-result v1

    if-ge v0, v1, :cond_23

    invoke-virtual {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_24

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

    invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_24

    iput-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    :cond_23
    return-void

    :cond_24
    add-int/lit8 v0, v0, 0x1

    goto :goto_7
.end method

.method private m()Z
    .registers 5

    const/4 v1, 0x0

    move v0, v1

    :goto_2
    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getChildCount()I

    move-result v2

    if-ge v0, v2, :cond_11

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    if-ne v2, v3, :cond_12

    const/4 v1, 0x1

    :cond_11
    return v1

    :cond_12
    add-int/lit8 v0, v0, 0x1

    goto :goto_2
.end method


# virtual methods
.method protected a(I)I
    .registers 4

    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_18

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    float-to-int v0, v0

    add-int/2addr p1, v0

    :goto_11
    :pswitch_11
    return p1

    :pswitch_12
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    float-to-int v0, v0

    add-int/2addr p1, v0

    goto :goto_11

    nop

    :pswitch_data_18
    .packed-switch 0x1
        :pswitch_12
        :pswitch_11
    .end packed-switch
.end method

.method protected a(Landroid/view/ViewGroup$LayoutParams;)Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;
    .registers 3

    new-instance v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;

    invoke-direct {v0, p1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;-><init>(Landroid/view/ViewGroup$LayoutParams;)V

    return-object v0
.end method

.method protected abstract a()Lcom/kwad/sdk/contentalliance/refreshview/b;
.end method

.method protected a(ILandroid/view/animation/Animation$AnimationListener;)V
    .registers 7

    const/4 v1, 0x0

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->clearAnimation()V

    int-to-float v0, p1

    invoke-direct {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c(F)I

    move-result v0

    if-gtz v0, :cond_12

    invoke-interface {p2, v1}, Landroid/view/animation/Animation$AnimationListener;->onAnimationStart(Landroid/view/animation/Animation;)V

    invoke-interface {p2, v1}, Landroid/view/animation/Animation$AnimationListener;->onAnimationEnd(Landroid/view/animation/Animation;)V

    :goto_11
    return-void

    :cond_12
    iput p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->x:I

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->ab:Landroid/view/animation/Animation;

    invoke-virtual {v0}, Landroid/view/animation/Animation;->reset()V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->ab:Landroid/view/animation/Animation;

    int-to-float v1, p1

    invoke-direct {p0, v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c(F)I

    move-result v1

    int-to-long v2, v1

    invoke-virtual {v0, v2, v3}, Landroid/view/animation/Animation;->setDuration(J)V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->ab:Landroid/view/animation/Animation;

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->T:Landroid/view/animation/Interpolator;

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    if-eqz p2, :cond_32

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->ab:Landroid/view/animation/Animation;

    invoke-virtual {v0, p2}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    :cond_32
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->ab:Landroid/view/animation/Animation;

    invoke-virtual {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_11
.end method

.method protected a(Landroid/util/AttributeSet;)V
    .registers 5

    invoke-virtual {p0, p1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b(Landroid/util/AttributeSet;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    const/16 v1, 0x8

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

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    instance-of v0, v0, Lcom/kwad/sdk/contentalliance/refreshview/d;

    if-eqz v0, :cond_2e

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    check-cast v0, Lcom/kwad/sdk/contentalliance/refreshview/d;

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->e:Lcom/kwad/sdk/contentalliance/refreshview/d;

    invoke-virtual {p0, p1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c(Landroid/util/AttributeSet;)Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;

    move-result-object v0

    if-nez v0, :cond_28

    new-instance v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a:I

    iget v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a:I

    invoke-direct {v0, v1, v2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;-><init>(II)V

    :cond_28
    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    invoke-virtual {p0, v1, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void

    :cond_2e
    new-instance v0, Ljava/lang/ClassCastException;

    const-string v1, "the refreshView must implement the interface IRefreshStatus"

    invoke-direct {v0, v1}, Ljava/lang/ClassCastException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method protected abstract b(Landroid/util/AttributeSet;)Landroid/view/View;
.end method

.method protected c(Landroid/util/AttributeSet;)Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;
    .registers 3

    const/4 v0, 0x0

    return-object v0
.end method

.method protected c()Z
    .registers 3

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->V:Z

    if-nez v0, :cond_11

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getTargetOrRefreshViewOffset()I

    move-result v0

    int-to-float v0, v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    cmpl-float v0, v0, v1

    if-lez v0, :cond_11

    const/4 v0, 0x1

    :goto_10
    return v0

    :cond_11
    const/4 v0, 0x0

    goto :goto_10
.end method

.method protected checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
    .registers 3

    instance-of v0, p1, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;

    return v0
.end method

.method public d(Landroid/util/AttributeSet;)Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;
    .registers 4

    new-instance v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-object v0
.end method

.method public d()Z
    .registers 2

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    return v0
.end method

.method public dispatchNestedFling(FFZ)Z
    .registers 5

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->j:Landroid/support/v4/view/NestedScrollingChildHelper;

    invoke-virtual {v0, p1, p2, p3}, Landroid/support/v4/view/NestedScrollingChildHelper;->dispatchNestedFling(FFZ)Z

    move-result v0

    return v0
.end method

.method public dispatchNestedPreFling(FF)Z
    .registers 4

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->j:Landroid/support/v4/view/NestedScrollingChildHelper;

    invoke-virtual {v0, p1, p2}, Landroid/support/v4/view/NestedScrollingChildHelper;->dispatchNestedPreFling(FF)Z

    move-result v0

    return v0
.end method

.method public dispatchNestedPreScroll(II[I[I)Z
    .registers 6

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->j:Landroid/support/v4/view/NestedScrollingChildHelper;

    invoke-virtual {v0, p1, p2, p3, p4}, Landroid/support/v4/view/NestedScrollingChildHelper;->dispatchNestedPreScroll(II[I[I)Z

    move-result v0

    return v0
.end method

.method public dispatchNestedScroll(IIII[I)Z
    .registers 12

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->j:Landroid/support/v4/view/NestedScrollingChildHelper;

    move v1, p1

    move v2, p2

    move v3, p3

    move v4, p4

    move-object v5, p5

    invoke-virtual/range {v0 .. v5}, Landroid/support/v4/view/NestedScrollingChildHelper;->dispatchNestedScroll(IIII[I)Z

    move-result v0

    return v0
.end method

.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 5

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->ac:Z

    if-eqz v0, :cond_b

    invoke-static {p1}, Landroid/support/v4/view/MotionEventCompat;->getActionMasked(Landroid/view/MotionEvent;)I

    move-result v0

    packed-switch v0, :pswitch_data_3a

    :cond_b
    :goto_b
    :pswitch_b
    const-string v0, "RefreshLayout"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "dispatch "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-boolean v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->s:Z

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " isRefreshing"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-boolean v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0

    :pswitch_36
    invoke-virtual {p0, p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->onStopNestedScroll(Landroid/view/View;)V

    goto :goto_b

    :pswitch_data_3a
    .packed-switch 0x1
        :pswitch_36
        :pswitch_b
        :pswitch_36
    .end packed-switch
.end method

.method protected e()Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;
    .registers 3

    const/4 v1, -0x2

    new-instance v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;

    invoke-direct {v0, v1, v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;-><init>(II)V

    return-object v0
.end method

.method protected synthetic generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams;
    .registers 2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->e()Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;

    move-result-object v0

    return-object v0
.end method

.method public synthetic generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
    .registers 3

    invoke-virtual {p0, p1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d(Landroid/util/AttributeSet;)Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;

    move-result-object v0

    return-object v0
.end method

.method protected synthetic generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams;
    .registers 3

    invoke-virtual {p0, p1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/ViewGroup$LayoutParams;)Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$a;

    move-result-object v0

    return-object v0
.end method

.method protected getChildDrawingOrder(II)I
    .registers 5

    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_30

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->t:I

    if-gez v0, :cond_24

    :cond_11
    :goto_11
    return p2

    :pswitch_12
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->t:I

    if-ltz v0, :cond_11

    add-int/lit8 v0, p1, -0x1

    if-ne p2, v0, :cond_1d

    iget p2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->t:I

    goto :goto_11

    :cond_1d
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->t:I

    if-lt p2, v0, :cond_11

    add-int/lit8 p2, p2, 0x1

    goto :goto_11

    :cond_24
    if-nez p2, :cond_29

    iget p2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->t:I

    goto :goto_11

    :cond_29
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->t:I

    if-gt p2, v0, :cond_11

    add-int/lit8 p2, p2, -0x1

    goto :goto_11

    :pswitch_data_30
    .packed-switch 0x1
        :pswitch_12
    .end packed-switch
.end method

.method public getNestedScrollAxes()I
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->k:Landroid/support/v4/view/NestedScrollingParentHelper;

    invoke-virtual {v0}, Landroid/support/v4/view/NestedScrollingParentHelper;->getNestedScrollAxes()I

    move-result v0

    return v0
.end method

.method public getRefreshTargetOffset()F
    .registers 2

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    return v0
.end method

.method public getStateView()Landroid/view/View;
    .registers 2
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

    return-object v0
.end method

.method public getTargetOrRefreshViewOffset()I
    .registers 3

    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_26

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    if-nez v0, :cond_1f

    const/4 v0, 0x0

    :goto_12
    return v0

    :pswitch_13
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

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

    move-result v0

    int-to-float v0, v0

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    sub-float/2addr v0, v1

    float-to-int v0, v0

    goto :goto_12

    :cond_1f
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

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

    move-result v0

    goto :goto_12

    :pswitch_data_26
    .packed-switch 0x1
        :pswitch_13
    .end packed-switch
.end method

.method public hasNestedScrollingParent()Z
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->j:Landroid/support/v4/view/NestedScrollingChildHelper;

    invoke-virtual {v0}, Landroid/support/v4/view/NestedScrollingChildHelper;->hasNestedScrollingParent()Z

    move-result v0

    return v0
.end method

.method public isNestedScrollingEnabled()Z
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->j:Landroid/support/v4/view/NestedScrollingChildHelper;

    invoke-virtual {v0}, Landroid/support/v4/view/NestedScrollingChildHelper;->isNestedScrollingEnabled()Z

    move-result v0

    return v0
.end method

.method protected onDetachedFromWindow()V
    .registers 2

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->O:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$b;

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->clearAnimation()V

    invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V

    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 7

    const/4 v4, -0x1

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

    const/4 v1, 0x0

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l()V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    if-nez v0, :cond_d

    move v0, v1

    :goto_c
    return v0

    :cond_d
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    instance-of v0, v0, Lcom/kwad/sdk/contentalliance/refreshview/c;

    if-eqz v0, :cond_1f

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    check-cast v0, Lcom/kwad/sdk/contentalliance/refreshview/c;

    invoke-interface {v0}, Lcom/kwad/sdk/contentalliance/refreshview/c;->a()Z

    move-result v0

    if-nez v0, :cond_1f

    move v0, v1

    goto :goto_c

    :cond_1f
    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v2

    aget v0, v0, v2

    packed-switch v0, :pswitch_data_d0

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->isEnabled()Z

    move-result v0

    if-eqz v0, :cond_3e

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-direct {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_58

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->s:Z

    if-nez v0, :cond_58

    :cond_3e
    move v0, v1

    goto :goto_c

    :pswitch_40
    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->isEnabled()Z

    move-result v0

    if-eqz v0, :cond_56

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-direct {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/View;)Z

    move-result v0

    if-nez v0, :cond_56

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    if-nez v0, :cond_56

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->m:Z

    if-eqz v0, :cond_58

    :cond_56
    move v0, v1

    goto :goto_c

    :cond_58
    invoke-static {p1}, Landroid/support/v4/view/MotionEventCompat;->getActionMasked(Landroid/view/MotionEvent;)I

    move-result v0

    packed-switch v0, :pswitch_data_d6

    :cond_5f
    :goto_5f
    :pswitch_5f
    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->q:Z

    goto :goto_c

    :pswitch_62
    invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    iput-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->q:Z

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    invoke-direct {p0, p1, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/MotionEvent;I)F

    move-result v0

    cmpl-float v2, v0, v3

    if-nez v2, :cond_76

    move v0, v1

    goto :goto_c

    :cond_76
    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->aa:Landroid/view/animation/Animation;

    invoke-virtual {v2}, Landroid/view/animation/Animation;->hasEnded()Z

    move-result v2

    if-eqz v2, :cond_88

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->ab:Landroid/view/animation/Animation;

    invoke-virtual {v2}, Landroid/view/animation/Animation;->hasEnded()Z

    move-result v2

    if-eqz v2, :cond_88

    iput-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->n:Z

    :cond_88
    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->z:F

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->A:F

    iput-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->s:Z

    goto :goto_5f

    :pswitch_91
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    if-ne v0, v4, :cond_98

    move v0, v1

    goto/16 :goto_c

    :cond_98
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    invoke-direct {p0, p1, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/MotionEvent;I)F

    move-result v0

    cmpl-float v2, v0, v3

    if-nez v2, :cond_a5

    move v0, v1

    goto/16 :goto_c

    :cond_a5
    invoke-direct {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(F)V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->M:Landroid/animation/ValueAnimator;

    if-eqz v0, :cond_5f

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->M:Landroid/animation/ValueAnimator;

    invoke-virtual {v0}, Landroid/animation/ValueAnimator;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_5f

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->M:Landroid/animation/ValueAnimator;

    invoke-virtual {v0}, Landroid/animation/ValueAnimator;->cancel()V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->e:Lcom/kwad/sdk/contentalliance/refreshview/d;

    invoke-interface {v0}, Lcom/kwad/sdk/contentalliance/refreshview/d;->c()V

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    float-to-int v0, v0

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->f:Landroid/view/animation/Animation$AnimationListener;

    invoke-virtual {p0, v0, v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(ILandroid/view/animation/Animation$AnimationListener;)V

    goto :goto_5f

    :pswitch_c7
    invoke-direct {p0, p1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b(Landroid/view/MotionEvent;)V

    goto :goto_5f

    :pswitch_cb
    iput-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->q:Z

    iput v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    goto :goto_5f

    :pswitch_data_d0
    .packed-switch 0x1
        :pswitch_40
    .end packed-switch

    :pswitch_data_d6
    .packed-switch 0x0
        :pswitch_62
        :pswitch_cb
        :pswitch_91
        :pswitch_cb
        :pswitch_5f
        :pswitch_5f
        :pswitch_c7
    .end packed-switch
.end method

.method protected onLayout(ZIIII)V
    .registers 13

    const/16 v6, 0x8

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getChildCount()I

    move-result v0

    if-nez v0, :cond_9

    :cond_8
    :goto_8
    return-void

    :cond_9
    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l()V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    if-eqz v0, :cond_8

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getMeasuredWidth()I

    move-result v1

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getMeasuredHeight()I

    move-result v0

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

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

    move-result v2

    if-ne v2, v6, :cond_2c

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

    if-eqz v2, :cond_6d

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

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

    move-result v2

    if-eq v2, v6, :cond_6d

    :cond_2c
    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingTop()I

    move-result v2

    invoke-direct {p0, v2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b(I)I

    move-result v2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingLeft()I

    move-result v3

    add-int v4, v3, v1

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingLeft()I

    move-result v5

    sub-int/2addr v4, v5

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingRight()I

    move-result v5

    sub-int/2addr v4, v5

    add-int/2addr v0, v2

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingTop()I

    move-result v5

    sub-int/2addr v0, v5

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getPaddingBottom()I

    move-result v5

    sub-int/2addr v0, v5

    iget-object v5, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

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

    move-result v5

    if-eq v5, v6, :cond_5c

    iget-object v5, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-virtual {v5, v3, v2, v4, v0}, Landroid/view/View;->layout(IIII)V

    :cond_5c
    iget-object v5, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

    if-eqz v5, :cond_6d

    iget-object v5, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

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

    move-result v5

    if-eq v5, v6, :cond_6d

    iget-object v5, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->G:Landroid/view/View;

    invoke-virtual {v5, v3, v2, v4, v0}, Landroid/view/View;->layout(IIII)V

    :cond_6d
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

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

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup$MarginLayoutParams;

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredWidth()I

    move-result v2

    sub-int v2, v1, v2

    div-int/lit8 v2, v2, 0x2

    iget v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    float-to-int v3, v3

    invoke-virtual {p0, v3}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(I)I

    move-result v3

    iget v4, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    add-int/2addr v3, v4

    iget v0, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    sub-int v0, v3, v0

    iget-object v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    invoke-virtual {v3}, Landroid/view/View;->getMeasuredWidth()I

    move-result v3

    add-int/2addr v1, v3

    div-int/lit8 v1, v1, 0x2

    iget-object v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    invoke-virtual {v3}, Landroid/view/View;->getMeasuredHeight()I

    move-result v3

    add-int/2addr v3, v0

    iget-object v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    invoke-virtual {v4, v2, v0, v1, v3}, Landroid/view/View;->layout(IIII)V

    goto/16 :goto_8
.end method

.method public onMeasure(II)V
    .registers 6

    const/4 v2, 0x0

    invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->onMeasure(II)V

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l()V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    if-nez v0, :cond_c

    :cond_b
    :goto_b
    return-void

    :cond_c
    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->h()V

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->k()V

    invoke-direct {p0, p1, p2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(II)V

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->J:Z

    if-nez v0, :cond_36

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->I:Z

    if-nez v0, :cond_36

    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_82

    iput v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

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

    move-result v0

    neg-int v0, v0

    int-to-float v0, v0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    :cond_36
    :goto_36
    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->J:Z

    if-nez v0, :cond_54

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->H:Z

    if-nez v0, :cond_54

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getMeasuredHeight()I

    move-result v1

    int-to-float v1, v1

    cmpg-float v0, v0, v1

    if-gez v0, :cond_54

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

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

    move-result v0

    int-to-float v0, v0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    :cond_54
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->J:Z

    const/4 v0, -0x1

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->t:I

    const/4 v0, 0x0

    :goto_5b
    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getChildCount()I

    move-result v1

    if-ge v0, v1, :cond_b

    invoke-virtual {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

    if-ne v1, v2, :cond_7e

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->t:I

    goto :goto_b

    :pswitch_6c
    iput v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    iput v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    goto :goto_36

    :pswitch_71
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->d:Landroid/view/View;

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

    move-result v0

    neg-int v0, v0

    int-to-float v0, v0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    goto :goto_36

    :cond_7e
    add-int/lit8 v0, v0, 0x1

    goto :goto_5b

    nop

    :pswitch_data_82
    .packed-switch 0x1
        :pswitch_71
        :pswitch_6c
    .end packed-switch
.end method

.method public onNestedFling(Landroid/view/View;FFZ)Z
    .registers 6

    invoke-virtual {p0, p2, p3, p4}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->dispatchNestedFling(FFZ)Z

    move-result v0

    return v0
.end method

.method public onNestedPreFling(Landroid/view/View;FF)Z
    .registers 5

    invoke-virtual {p0, p2, p3}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->dispatchNestedPreFling(FF)Z

    move-result v0

    return v0
.end method

.method public onNestedPreScroll(Landroid/view/View;II[I)V
    .registers 11

    const/4 v2, 0x0

    const/4 v5, 0x0

    const/4 v4, 0x1

    if-lez p3, :cond_27

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    cmpl-float v0, v0, v2

    if-lez v0, :cond_27

    int-to-float v0, p3

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    cmpl-float v0, v0, v1

    if-lez v0, :cond_47

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    float-to-int v0, v0

    sub-int v0, p3, v0

    aput v0, p4, v4

    iput v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    :goto_1b
    const-string v0, "RefreshLayout"

    const-string v1, "pre scroll"

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    invoke-direct {p0, v0, v5}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(FZ)V

    :cond_27
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->h:[I

    aget v1, p4, v5

    sub-int v1, p2, v1

    aget v2, p4, v4

    sub-int v2, p3, v2

    const/4 v3, 0x0

    invoke-virtual {p0, v1, v2, v0, v3}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->dispatchNestedPreScroll(II[I[I)Z

    move-result v1

    if-eqz v1, :cond_46

    aget v1, p4, v5

    aget v2, v0, v5

    add-int/2addr v1, v2

    aput v1, p4, v5

    aget v1, p4, v4

    aget v0, v0, v4

    add-int/2addr v0, v1

    aput v0, p4, v4

    :cond_46
    return-void

    :cond_47
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    int-to-float v1, p3

    sub-float/2addr v0, v1

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    aput p3, p4, v4

    goto :goto_1b
.end method

.method public onNestedScroll(Landroid/view/View;IIII)V
    .registers 13

    const/4 v6, 0x1

    iget-object v5, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->i:[I

    move-object v0, p0

    move v1, p2

    move v2, p3

    move v3, p4

    move v4, p5

    invoke-virtual/range {v0 .. v5}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->dispatchNestedScroll(IIII[I)Z

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->i:[I

    aget v0, v0, v6

    add-int/2addr v0, p5

    if-gez v0, :cond_28

    iget v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v0

    int-to-float v0, v0

    add-float/2addr v0, v1

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    const-string v0, "RefreshLayout"

    const-string v1, "nested scroll"

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    invoke-direct {p0, v0, v6}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(FZ)V

    :cond_28
    return-void
.end method

.method public onNestedScrollAccepted(Landroid/view/View;Landroid/view/View;I)V
    .registers 5

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->k:Landroid/support/v4/view/NestedScrollingParentHelper;

    invoke-virtual {v0, p1, p2, p3}, Landroid/support/v4/view/NestedScrollingParentHelper;->onNestedScrollAccepted(Landroid/view/View;Landroid/view/View;I)V

    and-int/lit8 v0, p3, 0x2

    invoke-virtual {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->startNestedScroll(I)Z

    const/4 v0, 0x0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->m:Z

    return-void
.end method

.method public onStartNestedScroll(Landroid/view/View;Landroid/view/View;I)Z
    .registers 8

    const/4 v0, 0x1

    const/4 v1, 0x0

    sget-object v2, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v3}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v3

    aget v2, v2, v3

    packed-switch v2, :pswitch_data_3c

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->isEnabled()Z

    move-result v2

    if-eqz v2, :cond_3a

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-direct {p0, v2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/View;)Z

    move-result v2

    if-eqz v2, :cond_3a

    and-int/lit8 v2, p3, 0x2

    if-eqz v2, :cond_3a

    :cond_21
    :goto_21
    return v0

    :pswitch_22
    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->isEnabled()Z

    move-result v2

    if-eqz v2, :cond_38

    iget-object v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-direct {p0, v2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/View;)Z

    move-result v2

    if-eqz v2, :cond_38

    iget-boolean v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    if-nez v2, :cond_38

    and-int/lit8 v2, p3, 0x2

    if-nez v2, :cond_21

    :cond_38
    move v0, v1

    goto :goto_21

    :cond_3a
    move v0, v1

    goto :goto_21

    :pswitch_data_3c
    .packed-switch 0x1
        :pswitch_22
    .end packed-switch
.end method

.method public onStopNestedScroll(Landroid/view/View;)V
    .registers 4

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->k:Landroid/support/v4/view/NestedScrollingParentHelper;

    invoke-virtual {v0, p1}, Landroid/support/v4/view/NestedScrollingParentHelper;->onStopNestedScroll(Landroid/view/View;)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->m:Z

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    cmpl-float v0, v0, v1

    if-lez v0, :cond_14

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->j()V

    iput v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l:F

    :cond_14
    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->stopNestedScroll()V

    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 10

    const/4 v5, -0x1

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

    const/4 v7, 0x0

    const/4 v2, 0x1

    const/4 v1, 0x0

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->l()V

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    if-nez v0, :cond_f

    move v0, v1

    :goto_e
    return v0

    :cond_f
    sget-object v0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$6;->a:[I

    iget-object v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    invoke-virtual {v3}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->ordinal()I

    move-result v3

    aget v0, v0, v3

    packed-switch v0, :pswitch_data_1d8

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->isEnabled()Z

    move-result v0

    if-eqz v0, :cond_2e

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-direct {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_44

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->s:Z

    if-nez v0, :cond_44

    :cond_2e
    move v0, v1

    goto :goto_e

    :pswitch_30
    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->isEnabled()Z

    move-result v0

    if-eqz v0, :cond_42

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-direct {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/View;)Z

    move-result v0

    if-nez v0, :cond_42

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->m:Z

    if-eqz v0, :cond_44

    :cond_42
    move v0, v1

    goto :goto_e

    :cond_44
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    sget-object v3, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;->FLOAT:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    if-ne v0, v3, :cond_58

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-direct {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/View;)Z

    move-result v0

    if-nez v0, :cond_56

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->m:Z

    if-eqz v0, :cond_58

    :cond_56
    move v0, v1

    goto :goto_e

    :cond_58
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    packed-switch v0, :pswitch_data_1de

    :goto_5f
    :pswitch_5f
    move v0, v2

    goto :goto_e

    :pswitch_61
    invoke-static {p1, v1}, Landroid/support/v4/view/MotionEventCompat;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v0

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    iput-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->q:Z

    goto :goto_5f

    :pswitch_6a
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    if-ne v0, v5, :cond_70

    move v0, v1

    goto :goto_e

    :cond_70
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    invoke-direct {p0, p1, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/MotionEvent;I)F

    move-result v3

    cmpl-float v0, v3, v4

    if-nez v0, :cond_7c

    move v0, v1

    goto :goto_e

    :cond_7c
    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->n:Z

    if-eqz v0, :cond_ea

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getTargetOrRefreshViewTop()I

    move-result v0

    int-to-float v0, v0

    iput v3, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->B:F

    iput v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->A:F

    const-string v4, "RefreshLayout"

    new-instance v5, Ljava/lang/StringBuilder;

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

    const-string v6, "animatetostart overscrolly "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, " -- "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget v6, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->B:F

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    :goto_ad
    iget-boolean v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    if-eqz v4, :cond_150

    cmpg-float v4, v0, v7

    if-gtz v4, :cond_131

    iget-boolean v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->s:Z

    if-eqz v4, :cond_122

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-virtual {v1, p1}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    :cond_be
    :goto_be
    const-string v1, "RefreshLayout"

    new-instance v4, Ljava/lang/StringBuilder;

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

    const-string v5, "moveSpinner refreshing -- "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget v5, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->A:F

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, " -- "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget v5, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->B:F

    sub-float/2addr v3, v5

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    invoke-direct {p0, v0, v2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(FZ)V

    goto/16 :goto_5f

    :cond_ea
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->B:F

    sub-float v0, v3, v0

    iget v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->A:F

    add-float/2addr v0, v4

    const-string v4, "RefreshLayout"

    new-instance v5, Ljava/lang/StringBuilder;

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

    const-string v6, "overscrolly "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, " --"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget v6, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->B:F

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, " -- "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget v6, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->A:F

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_ad

    :cond_122
    invoke-static {p1}, Landroid/view/MotionEvent;->obtain(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;

    move-result-object v4

    invoke-virtual {v4, v1}, Landroid/view/MotionEvent;->setAction(I)V

    iput-boolean v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->s:Z

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-virtual {v1, v4}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    goto :goto_be

    :cond_131
    cmpl-float v4, v0, v7

    if-lez v4, :cond_be

    iget v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    cmpg-float v4, v0, v4

    if-gez v4, :cond_be

    iget-boolean v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->s:Z

    if-eqz v4, :cond_be

    invoke-static {p1}, Landroid/view/MotionEvent;->obtain(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;

    move-result-object v4

    const/4 v5, 0x3

    invoke-virtual {v4, v5}, Landroid/view/MotionEvent;->setAction(I)V

    iput-boolean v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->s:Z

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-virtual {v1, v4}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    goto/16 :goto_be

    :cond_150
    iget-boolean v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->q:Z

    if-eqz v4, :cond_18e

    cmpl-float v4, v0, v7

    if-lez v4, :cond_184

    invoke-direct {p0, v0, v2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(FZ)V

    const-string v0, "RefreshLayout"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v4, "moveSpinner not refreshing -- "

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->A:F

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v4, " -- "

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v4, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->B:F

    sub-float/2addr v3, v4

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_5f

    :cond_184
    const-string v0, "RefreshLayout"

    const-string v2, "is Being Dragged, but over scroll Y < 0"

    invoke-static {v0, v2}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    move v0, v1

    goto/16 :goto_e

    :cond_18e
    const-string v0, "RefreshLayout"

    const-string v1, "is not Being Dragged, init drag status"

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    invoke-direct {p0, v3}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(F)V

    goto/16 :goto_5f

    :pswitch_19a
    invoke-direct {p0, p1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/MotionEvent;)V

    goto/16 :goto_5f

    :pswitch_19f
    invoke-direct {p0, p1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b(Landroid/view/MotionEvent;)V

    goto/16 :goto_5f

    :pswitch_1a4
    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    if-eq v0, v5, :cond_1b2

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->u:I

    invoke-direct {p0, p1, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(Landroid/view/MotionEvent;I)F

    move-result v0

    cmpl-float v0, v0, v4

    if-nez v0, :cond_1b8

    :cond_1b2
    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->i()V

    move v0, v1

    goto/16 :goto_e

    :cond_1b8
    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    if-nez v0, :cond_1c0

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->n:Z

    if-eqz v0, :cond_1cf

    :cond_1c0
    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->s:Z

    if-eqz v0, :cond_1c9

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-virtual {v0, p1}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    :cond_1c9
    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->i()V

    move v0, v1

    goto/16 :goto_e

    :cond_1cf
    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->i()V

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->j()V

    move v0, v1

    goto/16 :goto_e

    :pswitch_data_1d8
    .packed-switch 0x1
        :pswitch_30
    .end packed-switch

    :pswitch_data_1de
    .packed-switch 0x0
        :pswitch_61
        :pswitch_1a4
        :pswitch_6a
        :pswitch_1a4
        :pswitch_5f
        :pswitch_19a
        :pswitch_19f
    .end packed-switch
.end method

.method public requestDisallowInterceptTouchEvent(Z)V
    .registers 4

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-ge v0, v1, :cond_c

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    instance-of v0, v0, Landroid/widget/AbsListView;

    if-nez v0, :cond_18

    :cond_c
    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    if-eqz v0, :cond_19

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->L:Landroid/view/View;

    invoke-static {v0}, Landroid/support/v4/view/ViewCompat;->isNestedScrollingEnabled(Landroid/view/View;)Z

    move-result v0

    if-nez v0, :cond_19

    :cond_18
    :goto_18
    return-void

    :cond_19
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->requestDisallowInterceptTouchEvent(Z)V

    goto :goto_18
.end method

.method public setAnimateToRefreshDuration(I)V
    .registers 2

    iput p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->w:I

    return-void
.end method

.method public setAnimateToRefreshInterpolator(Landroid/view/animation/Interpolator;)V
    .registers 2

    iput-object p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->U:Landroid/view/animation/Interpolator;

    return-void
.end method

.method public setAnimateToStartDuration(I)V
    .registers 2

    iput p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->v:I

    return-void
.end method

.method public setAnimateToStartInterpolator(Landroid/view/animation/Interpolator;)V
    .registers 2

    iput-object p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->T:Landroid/view/animation/Interpolator;

    return-void
.end method

.method public setDragDistanceConverter(Lcom/kwad/sdk/contentalliance/refreshview/b;)V
    .registers 4
    .param p1    # Lcom/kwad/sdk/contentalliance/refreshview/b;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param

    if-nez p1, :cond_a

    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "the dragDistanceConverter can\'t be null"

    invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_a
    iput-object p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->N:Lcom/kwad/sdk/contentalliance/refreshview/b;

    return-void
.end method

.method public setIsStopNestScrollWhenUpOrCancel(Z)V
    .registers 2

    iput-boolean p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->ac:Z

    return-void
.end method

.method public setNestedScrollingEnabled(Z)V
    .registers 3

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->j:Landroid/support/v4/view/NestedScrollingChildHelper;

    invoke-virtual {v0, p1}, Landroid/support/v4/view/NestedScrollingChildHelper;->setNestedScrollingEnabled(Z)V

    return-void
.end method

.method public setOnRefreshListener(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$b;)V
    .registers 2

    iput-object p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->O:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$b;

    return-void
.end method

.method public setOnRefreshStatusListener(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;)V
    .registers 2

    iput-object p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->R:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$c;

    return-void
.end method

.method public setOnScrollInterceptor(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$d;)V
    .registers 2

    iput-object p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->Q:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$d;

    return-void
.end method

.method public setOnlySupportPull(Z)V
    .registers 2

    iput-boolean p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->V:Z

    return-void
.end method

.method public setRefreshInitialOffset(F)V
    .registers 3

    iput p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->D:F

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->I:Z

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->requestLayout()V

    return-void
.end method

.method public setRefreshStyle(Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;)V
    .registers 2
    .param p1    # Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param

    iput-object p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->K:Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout$RefreshStyle;

    return-void
.end method

.method public setRefreshTargetOffset(F)V
    .registers 3

    iput p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->c:F

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->H:Z

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->requestLayout()V

    return-void
.end method

.method public setRefreshing(Z)V
    .registers 5

    const/4 v2, 0x0

    iget-boolean v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    if-ne v0, p1, :cond_6

    :goto_5
    return-void

    :cond_6
    if-eqz p1, :cond_33

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getAnimation()Landroid/view/animation/Animation;

    move-result-object v0

    if-eqz v0, :cond_26

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getAnimation()Landroid/view/animation/Animation;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/animation/Animation;->hasEnded()Z

    move-result v0

    if-nez v0, :cond_26

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->getAnimation()Landroid/view/animation/Animation;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    invoke-virtual {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->clearAnimation()V

    invoke-direct {p0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b()V

    :cond_26
    iput-boolean p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->o:Z

    iput-boolean v2, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->r:Z

    iget v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b:F

    float-to-int v0, v0

    iget-object v1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->P:Landroid/view/animation/Animation$AnimationListener;

    invoke-direct {p0, v0, v1}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->b(ILandroid/view/animation/Animation$AnimationListener;)V

    goto :goto_5

    :cond_33
    invoke-direct {p0, p1, v2}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(ZZ)V

    goto :goto_5
.end method

.method public setShowRefreshView(Z)V
    .registers 3

    if-nez p1, :cond_9

    const/4 v0, 0x1

    :goto_3
    invoke-virtual {p0, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->setOnlySupportPull(Z)V

    iput-boolean p1, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->W:Z

    return-void

    :cond_9
    const/4 v0, 0x0

    goto :goto_3
.end method

.method public setTargetOrRefreshViewOffsetY(I)V
    .registers 3

    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->a(IZ)V

    return-void
.end method

.method public startNestedScroll(I)Z
    .registers 3

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->j:Landroid/support/v4/view/NestedScrollingChildHelper;

    invoke-virtual {v0, p1}, Landroid/support/v4/view/NestedScrollingChildHelper;->startNestedScroll(I)Z

    move-result v0

    return v0
.end method

.method public stopNestedScroll()V
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/contentalliance/refreshview/RefreshLayout;->j:Landroid/support/v4/view/NestedScrollingChildHelper;

    invoke-virtual {v0}, Landroid/support/v4/view/NestedScrollingChildHelper;->stopNestedScroll()V

    return-void
.end method