2577 lines
62 KiB
Smali
2577 lines
62 KiB
Smali
.class public Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;
|
|
.super Landroid/view/ViewGroup;
|
|
.source "SwipeRefreshLayout.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/support/v4/view/NestedScrollingChild;
|
|
.implements Landroid/support/v4/view/NestedScrollingParent;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$SwipeRefreshController;,
|
|
Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnChildScrollUpCallback;,
|
|
Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnRefreshListener;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final e:[I
|
|
|
|
|
|
# instance fields
|
|
.field private A:Z
|
|
|
|
.field private B:Z
|
|
|
|
.field private C:Z
|
|
|
|
.field private D:I
|
|
|
|
.field private E:I
|
|
|
|
.field private F:Z
|
|
|
|
.field private G:F
|
|
|
|
.field private H:F
|
|
|
|
.field private I:J
|
|
|
|
.field private J:Ljava/lang/Runnable;
|
|
|
|
.field private final K:Landroid/view/animation/Animation;
|
|
|
|
.field private final L:Landroid/view/animation/Animation;
|
|
|
|
.field private final M:Landroid/view/animation/Animation;
|
|
|
|
.field private N:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
.field private O:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnRefreshListener;
|
|
|
|
.field private P:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnChildScrollUpCallback;
|
|
|
|
.field protected a:I
|
|
|
|
.field b:Z
|
|
|
|
.field c:Z
|
|
|
|
.field public d:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$SwipeRefreshController;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final f:Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
.field private g:I
|
|
|
|
.field private h:I
|
|
.annotation build Landroid/support/annotation/StringRes;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private i:I
|
|
.annotation build Landroid/support/annotation/StringRes;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private j:I
|
|
.annotation build Landroid/support/annotation/StringRes;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private k:J
|
|
|
|
.field private l:Lcom/moji/swiperefreshlayout/ViewControl;
|
|
|
|
.field private m:Landroid/view/View;
|
|
|
|
.field private n:Landroid/view/View;
|
|
|
|
.field private o:Landroid/view/View;
|
|
|
|
.field private p:I
|
|
|
|
.field private q:F
|
|
|
|
.field private r:I
|
|
|
|
.field private s:F
|
|
|
|
.field private t:I
|
|
|
|
.field private u:I
|
|
|
|
.field private v:F
|
|
|
|
.field private final w:Landroid/support/v4/view/NestedScrollingParentHelper;
|
|
|
|
.field private final x:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
.field private final y:[I
|
|
|
|
.field private final z:[I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 40
|
|
new-array v0, v0, [I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const v2, 0x101000e
|
|
|
|
aput v2, v0, v1
|
|
|
|
sput-object v0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->e:[I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 81
|
|
invoke-direct {p0, p1, v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 4
|
|
|
|
.line 85
|
|
invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 47
|
|
sget v0, Lcom/moji/widget/R$string;->refresh_pull_down:I
|
|
|
|
iput v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->h:I
|
|
|
|
.line 49
|
|
sget v0, Lcom/moji/widget/R$string;->life_release_refresh:I
|
|
|
|
iput v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->i:I
|
|
|
|
.line 51
|
|
sget v0, Lcom/moji/widget/R$string;->loading:I
|
|
|
|
iput v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->j:I
|
|
|
|
const-wide/16 v0, 0x320
|
|
|
|
.line 53
|
|
iput-wide v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->k:J
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 58
|
|
iput v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->p:I
|
|
|
|
const/high16 v1, -0x40800000 # -1.0f
|
|
|
|
.line 60
|
|
iput v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->q:F
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 67
|
|
iput-boolean v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b:Z
|
|
|
|
const/4 v2, 0x2
|
|
|
|
.line 76
|
|
new-array v3, v2, [I
|
|
|
|
iput-object v3, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->y:[I
|
|
|
|
.line 77
|
|
new-array v2, v2, [I
|
|
|
|
iput-object v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->z:[I
|
|
|
|
.line 224
|
|
iput-boolean v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->B:Z
|
|
|
|
.line 226
|
|
iput v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
.line 464
|
|
new-instance v0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$2;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$2;-><init>(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->K:Landroid/view/animation/Animation;
|
|
|
|
.line 471
|
|
new-instance v0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$3;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$3;-><init>(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->L:Landroid/view/animation/Animation;
|
|
|
|
.line 481
|
|
new-instance v0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$4;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$4;-><init>(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->M:Landroid/view/animation/Animation;
|
|
|
|
.line 705
|
|
new-instance v0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$5;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$5;-><init>(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->N:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
.line 86
|
|
sget-object v0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->e:[I
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 87
|
|
invoke-virtual {p2, v1, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p0, v2}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setEnabled(Z)V
|
|
|
|
.line 88
|
|
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 89
|
|
invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->E:I
|
|
|
|
.line 90
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p1
|
|
|
|
const p2, 0x10e0001
|
|
|
|
invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getInteger(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->g:I
|
|
|
|
.line 91
|
|
new-instance p1, Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
const/high16 p2, 0x40000000 # 2.0f
|
|
|
|
invoke-direct {p1, p2}, Landroid/view/animation/DecelerateInterpolator;-><init>(F)V
|
|
|
|
iput-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->f:Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
.line 93
|
|
invoke-virtual {p0, v1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setWillNotDraw(Z)V
|
|
|
|
.line 94
|
|
invoke-static {p0, v0}, Landroid/support/v4/view/ViewCompat;->setChildrenDrawingOrderEnabled(Landroid/view/ViewGroup;Z)V
|
|
|
|
.line 96
|
|
new-instance p1, Landroid/support/v4/view/NestedScrollingParentHelper;
|
|
|
|
invoke-direct {p1, p0}, Landroid/support/v4/view/NestedScrollingParentHelper;-><init>(Landroid/view/ViewGroup;)V
|
|
|
|
iput-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->w:Landroid/support/v4/view/NestedScrollingParentHelper;
|
|
|
|
.line 97
|
|
new-instance p1, Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-direct {p1, p0}, Landroid/support/v4/view/NestedScrollingChildHelper;-><init>(Landroid/view/View;)V
|
|
|
|
iput-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->x:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
.line 98
|
|
invoke-virtual {p0, v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setNestedScrollingEnabled(Z)V
|
|
|
|
.line 100
|
|
invoke-direct {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->g()V
|
|
|
|
.line 101
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->l:Lcom/moji/swiperefreshlayout/ViewControl;
|
|
|
|
invoke-interface {p1}, Lcom/moji/swiperefreshlayout/ViewControl;->b()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->u:I
|
|
|
|
.line 102
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->l:Lcom/moji/swiperefreshlayout/ViewControl;
|
|
|
|
invoke-interface {p1}, Lcom/moji/swiperefreshlayout/ViewControl;->c()I
|
|
|
|
move-result p1
|
|
|
|
int-to-float p1, p1
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->s:F
|
|
|
|
.line 103
|
|
iget p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->s:F
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->q:F
|
|
|
|
.line 104
|
|
iget p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->u:I
|
|
|
|
neg-int p1, p1
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->t:I
|
|
|
|
const/high16 p1, 0x3f800000 # 1.0f
|
|
|
|
.line 105
|
|
invoke-virtual {p0, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;I)I
|
|
.locals 0
|
|
|
|
.line 31
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private a(Landroid/view/View;)Landroid/view/View;
|
|
.locals 2
|
|
|
|
.line 512
|
|
instance-of v0, p1, Landroid/widget/AdapterView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object p1
|
|
|
|
.line 514
|
|
:cond_0
|
|
instance-of v0, p1, Landroid/support/v7/widget/RecyclerView;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
return-object p1
|
|
|
|
.line 516
|
|
:cond_1
|
|
instance-of v0, p1, Landroid/view/ViewGroup;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 517
|
|
check-cast p1, Landroid/view/ViewGroup;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 518
|
|
:goto_0
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_3
|
|
|
|
.line 519
|
|
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
.line 520
|
|
invoke-direct {p0, v1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a(Landroid/view/View;)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
return-object v1
|
|
|
|
:cond_2
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;)Lcom/moji/swiperefreshlayout/ViewControl;
|
|
.locals 0
|
|
|
|
.line 31
|
|
iget-object p0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->l:Lcom/moji/swiperefreshlayout/ViewControl;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;Ljava/lang/Runnable;)Ljava/lang/Runnable;
|
|
.locals 0
|
|
|
|
.line 31
|
|
iput-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->J:Ljava/lang/Runnable;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private a(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
.locals 2
|
|
|
|
.line 419
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
iput-wide v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->I:J
|
|
|
|
.line 420
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a:I
|
|
|
|
.line 421
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->L:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1}, Landroid/view/animation/Animation;->reset()V
|
|
|
|
.line 422
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->L:Landroid/view/animation/Animation;
|
|
|
|
const-wide/16 v0, 0xc8
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/animation/Animation;->setDuration(J)V
|
|
|
|
.line 423
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->L:Landroid/view/animation/Animation;
|
|
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->f:Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 425
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->L:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
.line 427
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->l:Lcom/moji/swiperefreshlayout/ViewControl;
|
|
|
|
invoke-interface {p1}, Lcom/moji/swiperefreshlayout/ViewControl;->d()V
|
|
|
|
.line 428
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->clearAnimation()V
|
|
|
|
.line 429
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
iget-object p2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->L:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/view/MotionEvent;)V
|
|
.locals 3
|
|
|
|
.line 556
|
|
invoke-static {p1}, Landroid/support/v4/view/MotionEventCompat;->getActionIndex(Landroid/view/MotionEvent;)I
|
|
|
|
move-result v0
|
|
|
|
.line 557
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result v1
|
|
|
|
.line 558
|
|
iget v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
if-ne v1, v2, :cond_1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 562
|
|
:goto_0
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;ILandroid/view/animation/Animation$AnimationListener;)V
|
|
.locals 0
|
|
|
|
.line 31
|
|
invoke-direct {p0, p1, p2}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->c(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(ZZ)V
|
|
.locals 1
|
|
|
|
.line 398
|
|
iget-boolean v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b:Z
|
|
|
|
if-eq v0, p1, :cond_1
|
|
|
|
.line 399
|
|
iput-boolean p2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->c:Z
|
|
|
|
.line 400
|
|
invoke-direct {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->h()V
|
|
|
|
.line 401
|
|
iput-boolean p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b:Z
|
|
|
|
.line 402
|
|
iget-boolean p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b:Z
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 403
|
|
iget p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
iget-object p2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->N:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 405
|
|
:cond_0
|
|
iget p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
const/4 p2, 0x0
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;Z)Z
|
|
.locals 0
|
|
|
|
.line 31
|
|
iput-boolean p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->B:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;)F
|
|
.locals 0
|
|
|
|
.line 31
|
|
iget p0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->s:F
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private b(F)V
|
|
.locals 9
|
|
|
|
.line 357
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->q:F
|
|
|
|
div-float v0, p1, v0
|
|
|
|
.line 358
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result v0
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result v0
|
|
|
|
.line 359
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result v2
|
|
|
|
iget v3, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->q:F
|
|
|
|
sub-float/2addr v2, v3
|
|
|
|
.line 360
|
|
iget v3, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->s:F
|
|
|
|
const/high16 v4, 0x40000000 # 2.0f
|
|
|
|
mul-float v5, v3, v4
|
|
|
|
.line 361
|
|
invoke-static {v2, v5}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result v2
|
|
|
|
div-float/2addr v2, v3
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-static {v5, v2}, Ljava/lang/Math;->max(FF)F
|
|
|
|
move-result v2
|
|
|
|
const/high16 v5, 0x40800000 # 4.0f
|
|
|
|
div-float/2addr v2, v5
|
|
|
|
float-to-double v5, v2
|
|
|
|
const-wide/high16 v7, 0x4000000000000000L # 2.0
|
|
|
|
.line 362
|
|
invoke-static {v5, v6, v7, v8}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
move-result-wide v7
|
|
|
|
invoke-static {v5, v6}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
sub-double/2addr v5, v7
|
|
|
|
double-to-float v2, v5
|
|
|
|
mul-float v2, v2, v4
|
|
|
|
mul-float v2, v2, v3
|
|
|
|
mul-float v2, v2, v4
|
|
|
|
.line 364
|
|
iget v4, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->t:I
|
|
|
|
mul-float v3, v3, v0
|
|
|
|
add-float/2addr v3, v2
|
|
|
|
float-to-int v0, v3
|
|
|
|
add-int/2addr v4, v0
|
|
|
|
.line 366
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->q:F
|
|
|
|
div-float/2addr p1, v0
|
|
|
|
cmpl-float v0, p1, v1
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
.line 367
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->H:F
|
|
|
|
cmpg-float v0, v0, v1
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
.line 368
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->l:Lcom/moji/swiperefreshlayout/ViewControl;
|
|
|
|
iget v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->i:I
|
|
|
|
invoke-interface {v0, v2}, Lcom/moji/swiperefreshlayout/ViewControl;->a(I)V
|
|
|
|
.line 370
|
|
:cond_0
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->H:F
|
|
|
|
.line 371
|
|
invoke-static {v1, p1}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setAnimationProgress(F)V
|
|
|
|
.line 372
|
|
iget p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
sub-int/2addr v4, p1
|
|
|
|
invoke-virtual {p0, v4}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setHeaderOffsetTopAndBottom(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private b(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
.locals 5
|
|
|
|
.line 436
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
iget-wide v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->I:J
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
.line 437
|
|
iget-wide v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->k:J
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-lez v4, :cond_0
|
|
|
|
.line 438
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->l:Lcom/moji/swiperefreshlayout/ViewControl;
|
|
|
|
invoke-interface {v0}, Lcom/moji/swiperefreshlayout/ViewControl;->f()V
|
|
|
|
.line 439
|
|
invoke-direct {p0, p1, p2}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->c(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 441
|
|
:cond_0
|
|
new-instance v2, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$1;
|
|
|
|
invoke-direct {v2, p0, p1, p2}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$1;-><init>(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;ILandroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
iput-object v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->J:Ljava/lang/Runnable;
|
|
|
|
.line 448
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
iget-object p2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->J:Ljava/lang/Runnable;
|
|
|
|
iget-wide v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->k:J
|
|
|
|
sub-long/2addr v2, v0
|
|
|
|
invoke-virtual {p1, p2, v2, v3}, Landroid/view/View;->postDelayed(Ljava/lang/Runnable;J)Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;)I
|
|
.locals 0
|
|
|
|
.line 31
|
|
iget p0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->t:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private c(F)V
|
|
.locals 1
|
|
|
|
.line 376
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->q:F
|
|
|
|
cmpl-float p1, p1, v0
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 377
|
|
invoke-direct {p0, p1, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a(ZZ)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 380
|
|
iput-boolean p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b:Z
|
|
|
|
.line 381
|
|
iget p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->c(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private c(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
.locals 2
|
|
|
|
.line 453
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a:I
|
|
|
|
.line 454
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->M:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1}, Landroid/view/animation/Animation;->reset()V
|
|
|
|
.line 455
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->M:Landroid/view/animation/Animation;
|
|
|
|
const-wide/16 v0, 0xc8
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/animation/Animation;->setDuration(J)V
|
|
|
|
.line 456
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->M:Landroid/view/animation/Animation;
|
|
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->f:Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 458
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->M:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
.line 460
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->clearAnimation()V
|
|
|
|
.line 461
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
iget-object p2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->M:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;)Landroid/view/View;
|
|
.locals 0
|
|
|
|
.line 31
|
|
iget-object p0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private d(F)V
|
|
.locals 1
|
|
|
|
.line 491
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->G:F
|
|
|
|
sub-float/2addr p1, v0
|
|
|
|
.line 492
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->f()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->J:Ljava/lang/Runnable;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->E:I
|
|
|
|
int-to-float v0, v0
|
|
|
|
cmpl-float p1, p1, v0
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->F:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 493
|
|
iput-boolean p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->F:Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;)I
|
|
.locals 0
|
|
|
|
.line 31
|
|
iget p0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->j:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic f(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;)Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnRefreshListener;
|
|
.locals 0
|
|
|
|
.line 31
|
|
iget-object p0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->O:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnRefreshListener;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private g()V
|
|
.locals 2
|
|
|
|
.line 109
|
|
new-instance v0, Lcom/moji/swiperefreshlayout/RefreshView;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/moji/swiperefreshlayout/RefreshView;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->l:Lcom/moji/swiperefreshlayout/ViewControl;
|
|
|
|
.line 110
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->l:Lcom/moji/swiperefreshlayout/ViewControl;
|
|
|
|
invoke-interface {v0}, Lcom/moji/swiperefreshlayout/ViewControl;->a()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
.line 111
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->l:Lcom/moji/swiperefreshlayout/ViewControl;
|
|
|
|
iget v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->h:I
|
|
|
|
invoke-interface {v0, v1}, Lcom/moji/swiperefreshlayout/ViewControl;->a(I)V
|
|
|
|
.line 112
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->addView(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private h()V
|
|
.locals 3
|
|
|
|
.line 498
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->n:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->o:Landroid/view/View;
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 499
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_3
|
|
|
|
.line 500
|
|
invoke-virtual {p0, v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
.line 501
|
|
iget-object v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->n:Landroid/view/View;
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
iget-object v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
.line 502
|
|
iput-object v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->n:Landroid/view/View;
|
|
|
|
.line 504
|
|
:cond_1
|
|
iget-object v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->o:Landroid/view/View;
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
.line 505
|
|
invoke-direct {p0, v1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a(Landroid/view/View;)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->o:Landroid/view/View;
|
|
|
|
:cond_2
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 386
|
|
iput-boolean v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b:Z
|
|
|
|
.line 387
|
|
iput-boolean v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->c:Z
|
|
|
|
.line 388
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->s:F
|
|
|
|
iget v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->t:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
add-float/2addr v0, v1
|
|
|
|
float-to-int v0, v0
|
|
|
|
.line 389
|
|
iget v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setHeaderOffsetTopAndBottom(I)V
|
|
|
|
.line 390
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
iget-object v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->N:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method a(F)V
|
|
.locals 3
|
|
|
|
.line 530
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a:I
|
|
|
|
iget v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->t:I
|
|
|
|
iget v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
int-to-float v1, v1
|
|
|
|
mul-float v1, v1, p1
|
|
|
|
float-to-int p1, v1
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
.line 531
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr v0, p1
|
|
|
|
.line 532
|
|
invoke-virtual {p0, v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setHeaderOffsetTopAndBottom(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$SwipeRefreshController;)V
|
|
.locals 1
|
|
|
|
.line 767
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->d:Ljava/util/List;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 768
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->d:Ljava/util/List;
|
|
|
|
.line 770
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 394
|
|
invoke-direct {p0, v0, v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a(ZZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()Z
|
|
.locals 1
|
|
|
|
.line 415
|
|
iget-boolean v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public d()Z
|
|
.locals 2
|
|
|
|
.line 544
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->P:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnChildScrollUpCallback;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 545
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->P:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnChildScrollUpCallback;
|
|
|
|
iget-object v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->o:Landroid/view/View;
|
|
|
|
invoke-interface {v0, p0, v1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnChildScrollUpCallback;->a(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
.line 548
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->o:Landroid/view/View;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-static {v0, v1}, Landroid/support/v4/view/ViewCompat;->canScrollVertically(Landroid/view/View;I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
return v0
|
|
|
|
.line 552
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->n:Landroid/view/View;
|
|
|
|
invoke-static {v0, v1}, Landroid/support/v4/view/ViewCompat;->canScrollVertically(Landroid/view/View;I)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public dispatchNestedFling(FFZ)Z
|
|
.locals 1
|
|
|
|
.line 697
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->x:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Landroid/support/v4/view/NestedScrollingChildHelper;->dispatchNestedFling(FFZ)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public dispatchNestedPreFling(FF)Z
|
|
.locals 1
|
|
|
|
.line 702
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->x:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroid/support/v4/view/NestedScrollingChildHelper;->dispatchNestedPreFling(FF)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public dispatchNestedPreScroll(II[I[I)Z
|
|
.locals 1
|
|
|
|
.line 682
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->x:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0, p1, p2, p3, p4}, Landroid/support/v4/view/NestedScrollingChildHelper;->dispatchNestedPreScroll(II[I[I)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public dispatchNestedScroll(IIII[I)Z
|
|
.locals 6
|
|
|
|
.line 677
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->x: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 p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method e()V
|
|
.locals 2
|
|
|
|
.line 571
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->l:Lcom/moji/swiperefreshlayout/ViewControl;
|
|
|
|
invoke-interface {v0}, Lcom/moji/swiperefreshlayout/ViewControl;->f()V
|
|
|
|
.line 572
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->t:I
|
|
|
|
iget v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setHeaderOffsetTopAndBottom(I)V
|
|
|
|
.line 573
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public f()Z
|
|
.locals 3
|
|
|
|
.line 774
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->d:Ljava/util/List;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 777
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$SwipeRefreshController;
|
|
|
|
.line 778
|
|
invoke-interface {v2}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$SwipeRefreshController;->d()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
return v1
|
|
.end method
|
|
|
|
.method protected getChildDrawingOrder(II)I
|
|
.locals 1
|
|
|
|
.line 136
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->p:I
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
return p2
|
|
|
|
:cond_0
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
if-ne p2, p1, :cond_1
|
|
|
|
.line 140
|
|
iget p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->p:I
|
|
|
|
return p1
|
|
|
|
.line 141
|
|
:cond_1
|
|
iget p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->p:I
|
|
|
|
if-lt p2, p1, :cond_2
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
return p2
|
|
|
|
:cond_2
|
|
return p2
|
|
.end method
|
|
|
|
.method public getNestedScrollAxes()I
|
|
.locals 1
|
|
|
|
.line 616
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->w:Landroid/support/v4/view/NestedScrollingParentHelper;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/view/NestedScrollingParentHelper;->getNestedScrollAxes()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hasNestedScrollingParent()Z
|
|
.locals 1
|
|
|
|
.line 672
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->x: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
|
|
.locals 1
|
|
|
|
.line 657
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->x: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
|
|
.locals 2
|
|
|
|
.line 152
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V
|
|
|
|
.line 153
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->e()V
|
|
|
|
.line 154
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->J:Ljava/lang/Runnable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 155
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
iget-object v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->J:Ljava/lang/Runnable;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->removeCallbacks(Ljava/lang/Runnable;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 3
|
|
|
|
.line 233
|
|
iget-boolean v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->B:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
.line 236
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->h()V
|
|
|
|
.line 237
|
|
invoke-static {p1}, Landroid/support/v4/view/MotionEventCompat;->getActionMasked(Landroid/view/MotionEvent;)I
|
|
|
|
move-result v0
|
|
|
|
.line 239
|
|
iget-boolean v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->C:Z
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 240
|
|
iput-boolean v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->C:Z
|
|
|
|
.line 242
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->isEnabled()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
iget-boolean v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->C:Z
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->d()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
iget-boolean v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b:Z
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
iget-boolean v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->A:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v1, 0x6
|
|
|
|
if-eq v0, v1, :cond_7
|
|
|
|
const/4 v1, -0x1
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 260
|
|
:pswitch_0
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
return v2
|
|
|
|
.line 263
|
|
:cond_3
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I
|
|
|
|
move-result v0
|
|
|
|
if-gez v0, :cond_4
|
|
|
|
return v2
|
|
|
|
.line 267
|
|
:cond_4
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
move-result p1
|
|
|
|
.line 268
|
|
invoke-direct {p0, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->d(F)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 277
|
|
:pswitch_1
|
|
iput-boolean v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->F:Z
|
|
|
|
.line 278
|
|
iput v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 247
|
|
:pswitch_2
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->J:Ljava/lang/Runnable;
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
.line 248
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->t:I
|
|
|
|
iget-object v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->setHeaderOffsetTopAndBottom(I)V
|
|
|
|
.line 250
|
|
:cond_5
|
|
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
.line 251
|
|
iput-boolean v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->F:Z
|
|
|
|
.line 252
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I
|
|
|
|
move-result v0
|
|
|
|
if-gez v0, :cond_6
|
|
|
|
return v2
|
|
|
|
.line 256
|
|
:cond_6
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->G:F
|
|
|
|
goto :goto_0
|
|
|
|
.line 272
|
|
:cond_7
|
|
invoke-direct {p0, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a(Landroid/view/MotionEvent;)V
|
|
|
|
.line 282
|
|
:goto_0
|
|
iget-boolean p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->F:Z
|
|
|
|
return p1
|
|
|
|
:cond_8
|
|
:goto_1
|
|
return v2
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
:pswitch_1
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method protected onLayout(ZIIII)V
|
|
.locals 1
|
|
|
|
.line 188
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getMeasuredWidth()I
|
|
|
|
move-result p1
|
|
|
|
.line 189
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getMeasuredHeight()I
|
|
|
|
move-result p2
|
|
|
|
.line 190
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getChildCount()I
|
|
|
|
move-result p3
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 193
|
|
:cond_0
|
|
iget-object p3, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->n:Landroid/view/View;
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
.line 194
|
|
invoke-direct {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->h()V
|
|
|
|
.line 196
|
|
:cond_1
|
|
iget-object p3, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->n:Landroid/view/View;
|
|
|
|
if-nez p3, :cond_2
|
|
|
|
return-void
|
|
|
|
.line 200
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getPaddingLeft()I
|
|
|
|
move-result p3
|
|
|
|
.line 201
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getPaddingTop()I
|
|
|
|
move-result p4
|
|
|
|
.line 202
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getPaddingLeft()I
|
|
|
|
move-result p5
|
|
|
|
sub-int p5, p1, p5
|
|
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getPaddingRight()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr p5, v0
|
|
|
|
.line 203
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getPaddingTop()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr p2, v0
|
|
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getPaddingBottom()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr p2, v0
|
|
|
|
.line 204
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->n:Landroid/view/View;
|
|
|
|
add-int/2addr p5, p3
|
|
|
|
add-int/2addr p2, p4
|
|
|
|
invoke-virtual {v0, p3, p4, p5, p2}, Landroid/view/View;->layout(IIII)V
|
|
|
|
.line 206
|
|
iget p2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
.line 207
|
|
iget p3, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
iget-object p4, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
invoke-virtual {p4}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result p4
|
|
|
|
add-int/2addr p3, p4
|
|
|
|
.line 208
|
|
iget-object p4, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
const/4 p5, 0x0
|
|
|
|
invoke-virtual {p4, p5, p2, p1, p3}, Landroid/view/View;->layout(IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onMeasure(II)V
|
|
.locals 2
|
|
|
|
.line 161
|
|
invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->onMeasure(II)V
|
|
|
|
.line 162
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->n:Landroid/view/View;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 163
|
|
invoke-direct {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->h()V
|
|
|
|
.line 165
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->n:Landroid/view/View;
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 169
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getMeasuredWidth()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getPaddingLeft()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p1, p2
|
|
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getPaddingRight()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p1, p2
|
|
|
|
const/high16 p2, 0x40000000 # 2.0f
|
|
|
|
invoke-static {p1, p2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p1
|
|
|
|
.line 170
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getMeasuredHeight()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getPaddingTop()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getPaddingBottom()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-static {v0, p2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v0
|
|
|
|
.line 171
|
|
iget-object v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->n:Landroid/view/View;
|
|
|
|
invoke-virtual {v1, p1, v0}, Landroid/view/View;->measure(II)V
|
|
|
|
.line 173
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getMeasuredWidth()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getPaddingLeft()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr p1, v0
|
|
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getPaddingRight()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr p1, v0
|
|
|
|
invoke-static {p1, p2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p1
|
|
|
|
.line 174
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->u:I
|
|
|
|
invoke-static {v0, p2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p2
|
|
|
|
.line 175
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroid/view/View;->measure(II)V
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 177
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->p:I
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 178
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getChildCount()I
|
|
|
|
move-result p2
|
|
|
|
if-ge p1, p2, :cond_3
|
|
|
|
.line 179
|
|
invoke-virtual {p0, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
if-ne p2, v0, :cond_2
|
|
|
|
.line 180
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->p:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedFling(Landroid/view/View;FFZ)Z
|
|
.locals 0
|
|
|
|
.line 692
|
|
invoke-virtual {p0, p2, p3, p4}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->dispatchNestedFling(FFZ)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onNestedPreFling(Landroid/view/View;FF)Z
|
|
.locals 0
|
|
|
|
.line 687
|
|
invoke-virtual {p0, p2, p3}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->dispatchNestedPreFling(FF)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onNestedPreScroll(Landroid/view/View;II[I)V
|
|
.locals 3
|
|
|
|
const/4 p1, 0x1
|
|
|
|
if-lez p3, :cond_1
|
|
|
|
.line 595
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
const/4 v1, 0x0
|
|
|
|
cmpl-float v0, v0, v1
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
int-to-float v0, p3
|
|
|
|
.line 596
|
|
iget v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
cmpl-float v2, v0, v2
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
.line 597
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
float-to-int v0, v0
|
|
|
|
sub-int v0, p3, v0
|
|
|
|
aput v0, p4, p1
|
|
|
|
.line 598
|
|
iput v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
goto :goto_0
|
|
|
|
.line 600
|
|
:cond_0
|
|
iget v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
sub-float/2addr v1, v0
|
|
|
|
iput v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
.line 601
|
|
aput p3, p4, p1
|
|
|
|
.line 603
|
|
:goto_0
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
invoke-direct {p0, v0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b(F)V
|
|
|
|
.line 607
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->y:[I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 608
|
|
aget v2, p4, v1
|
|
|
|
sub-int/2addr p2, v2
|
|
|
|
aget v2, p4, p1
|
|
|
|
sub-int/2addr p3, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {p0, p2, p3, v0, v2}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->dispatchNestedPreScroll(II[I[I)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 609
|
|
aget p2, p4, v1
|
|
|
|
aget p3, v0, v1
|
|
|
|
add-int/2addr p2, p3
|
|
|
|
aput p2, p4, v1
|
|
|
|
.line 610
|
|
aget p2, p4, p1
|
|
|
|
aget p3, v0, p1
|
|
|
|
add-int/2addr p2, p3
|
|
|
|
aput p2, p4, p1
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedScroll(Landroid/view/View;IIII)V
|
|
.locals 6
|
|
|
|
.line 637
|
|
iget-object v5, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->z:[I
|
|
|
|
move-object v0, p0
|
|
|
|
move v1, p2
|
|
|
|
move v2, p3
|
|
|
|
move v3, p4
|
|
|
|
move v4, p5
|
|
|
|
invoke-virtual/range {v0 .. v5}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->dispatchNestedScroll(IIII[I)Z
|
|
|
|
.line 643
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->z:[I
|
|
|
|
const/4 p2, 0x1
|
|
|
|
aget p1, p1, p2
|
|
|
|
add-int/2addr p5, p1
|
|
|
|
if-gez p5, :cond_0
|
|
|
|
.line 644
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->d()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 645
|
|
iget p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
invoke-static {p5}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p2
|
|
|
|
int-to-float p2, p2
|
|
|
|
add-float/2addr p1, p2
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
.line 646
|
|
iget p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
invoke-direct {p0, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b(F)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedScrollAccepted(Landroid/view/View;Landroid/view/View;I)V
|
|
.locals 1
|
|
|
|
.line 584
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->w: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 p1, p3, 0x2
|
|
|
|
.line 586
|
|
invoke-virtual {p0, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->startNestedScroll(I)Z
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 587
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 588
|
|
iput-boolean p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->A:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStartNestedScroll(Landroid/view/View;Landroid/view/View;I)Z
|
|
.locals 0
|
|
|
|
.line 578
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->isEnabled()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->J:Ljava/lang/Runnable;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->C:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
and-int/lit8 p1, p3, 0x2
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public onStopNestedScroll(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
.line 621
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->w:Landroid/support/v4/view/NestedScrollingParentHelper;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/view/NestedScrollingParentHelper;->onStopNestedScroll(Landroid/view/View;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 622
|
|
iput-boolean p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->A:Z
|
|
|
|
.line 625
|
|
iget p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
const/4 v0, 0x0
|
|
|
|
cmpl-float p1, p1, v0
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
.line 626
|
|
iget p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
invoke-direct {p0, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->c(F)V
|
|
|
|
.line 627
|
|
iput v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->v:F
|
|
|
|
.line 630
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->stopNestedScroll()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 4
|
|
|
|
.line 287
|
|
iget-boolean v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->B:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 290
|
|
:cond_0
|
|
invoke-static {p1}, Landroid/support/v4/view/MotionEventCompat;->getActionMasked(Landroid/view/MotionEvent;)I
|
|
|
|
move-result v0
|
|
|
|
.line 292
|
|
iget-boolean v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->C:Z
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 293
|
|
iput-boolean v3, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->C:Z
|
|
|
|
.line 295
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->isEnabled()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_9
|
|
|
|
iget-boolean v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->C:Z
|
|
|
|
if-nez v2, :cond_9
|
|
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->d()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_9
|
|
|
|
iget-boolean v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b:Z
|
|
|
|
if-nez v2, :cond_9
|
|
|
|
iget-boolean v2, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->A:Z
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/high16 v2, 0x3f000000 # 0.5f
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
:pswitch_0
|
|
goto :goto_0
|
|
|
|
.line 330
|
|
:pswitch_1
|
|
invoke-direct {p0, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->a(Landroid/view/MotionEvent;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 322
|
|
:pswitch_2
|
|
invoke-static {p1}, Landroid/support/v4/view/MotionEventCompat;->getActionIndex(Landroid/view/MotionEvent;)I
|
|
|
|
move-result v0
|
|
|
|
if-gez v0, :cond_3
|
|
|
|
return v3
|
|
|
|
.line 326
|
|
:cond_3
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_3
|
|
return v3
|
|
|
|
.line 305
|
|
:pswitch_4
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I
|
|
|
|
move-result v0
|
|
|
|
if-gez v0, :cond_4
|
|
|
|
return v3
|
|
|
|
.line 309
|
|
:cond_4
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
move-result p1
|
|
|
|
.line 310
|
|
invoke-direct {p0, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->d(F)V
|
|
|
|
.line 311
|
|
iget-boolean v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->F:Z
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
.line 312
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->G:F
|
|
|
|
sub-float/2addr p1, v0
|
|
|
|
mul-float p1, p1, v2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
cmpl-float v0, p1, v0
|
|
|
|
if-lez v0, :cond_5
|
|
|
|
.line 314
|
|
invoke-direct {p0, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->b(F)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
return v3
|
|
|
|
.line 334
|
|
:pswitch_5
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I
|
|
|
|
move-result v0
|
|
|
|
if-gez v0, :cond_6
|
|
|
|
return v3
|
|
|
|
.line 338
|
|
:cond_6
|
|
iget-boolean v1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->F:Z
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
.line 339
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
move-result p1
|
|
|
|
.line 340
|
|
iget v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->G:F
|
|
|
|
sub-float/2addr p1, v0
|
|
|
|
mul-float p1, p1, v2
|
|
|
|
.line 341
|
|
iput-boolean v3, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->F:Z
|
|
|
|
.line 342
|
|
invoke-direct {p0, p1}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->c(F)V
|
|
|
|
:cond_7
|
|
const/4 p1, -0x1
|
|
|
|
.line 344
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
return v3
|
|
|
|
.line 300
|
|
:pswitch_6
|
|
invoke-virtual {p1, v3}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->D:I
|
|
|
|
.line 301
|
|
iput-boolean v3, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->F:Z
|
|
|
|
:cond_8
|
|
:goto_0
|
|
return v1
|
|
|
|
:cond_9
|
|
:goto_1
|
|
return v3
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_0
|
|
:pswitch_2
|
|
:pswitch_1
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public requestDisallowInterceptTouchEvent(Z)V
|
|
.locals 2
|
|
|
|
.line 216
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x15
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->o:Landroid/view/View;
|
|
|
|
instance-of v0, v0, Landroid/widget/AbsListView;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->o:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->o:Landroid/view/View;
|
|
|
|
.line 217
|
|
invoke-static {v0}, Landroid/support/v4/view/ViewCompat;->isNestedScrollingEnabled(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 220
|
|
:cond_1
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->requestDisallowInterceptTouchEvent(Z)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method setAnimationProgress(F)V
|
|
.locals 1
|
|
|
|
.line 567
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->l:Lcom/moji/swiperefreshlayout/ViewControl;
|
|
|
|
invoke-interface {v0, p1}, Lcom/moji/swiperefreshlayout/ViewControl;->a(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setEnabled(Z)V
|
|
.locals 0
|
|
|
|
.line 128
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->setEnabled(Z)V
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 130
|
|
invoke-virtual {p0}, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->e()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method setHeaderOffsetTopAndBottom(I)V
|
|
.locals 1
|
|
|
|
.line 536
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
invoke-static {v0, p1}, Landroid/support/v4/view/ViewCompat;->offsetTopAndBottom(Landroid/view/View;I)V
|
|
|
|
.line 537
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->n:Landroid/view/View;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 538
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->n:Landroid/view/View;
|
|
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
invoke-static {p1, v0}, Landroid/support/v4/view/ViewCompat;->setTranslationY(Landroid/view/View;F)V
|
|
|
|
.line 540
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->m:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->r:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMinKeepTime(J)V
|
|
.locals 0
|
|
|
|
.line 123
|
|
iput-wide p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->k:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setNestedScrollingEnabled(Z)V
|
|
.locals 1
|
|
|
|
.line 652
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->x:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/view/NestedScrollingChildHelper;->setNestedScrollingEnabled(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnChildScrollUpCallback(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnChildScrollUpCallback;)V
|
|
.locals 0
|
|
.param p1 # Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnChildScrollUpCallback;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 744
|
|
iput-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->P:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnChildScrollUpCallback;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnRefreshListener(Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnRefreshListener;)V
|
|
.locals 0
|
|
|
|
.line 734
|
|
iput-object p1, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->O:Lcom/moji/swiperefreshlayout/SwipeRefreshLayout$OnRefreshListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public startNestedScroll(I)Z
|
|
.locals 1
|
|
|
|
.line 662
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->x:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/view/NestedScrollingChildHelper;->startNestedScroll(I)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public stopNestedScroll()V
|
|
.locals 1
|
|
|
|
.line 667
|
|
iget-object v0, p0, Lcom/moji/swiperefreshlayout/SwipeRefreshLayout;->x:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/view/NestedScrollingChildHelper;->stopNestedScroll()V
|
|
|
|
return-void
|
|
.end method
|