.class public Lcom/moji/mjweather/aqi/widget/FloatScrollView;
.super Landroid/widget/FrameLayout;
.source "FloatScrollView.java"


# instance fields
.field private a:Landroid/widget/Scroller;

.field private b:I

.field private c:Z

.field private d:Landroid/view/VelocityTracker;

.field private e:I

.field private f:I

.field private g:I

.field private h:I

.field private i:I

.field private j:Landroid/content/Context;

.field private k:Landroid/view/View;

.field private l:I

.field private m:I

.field private n:Landroid/widget/LinearLayout;

.field private o:Landroid/widget/EdgeEffect;

.field private p:Landroid/widget/EdgeEffect;

.field private q:I

.field private final r:I


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

    const/4 v0, 0x0

    .line 52
    invoke-direct {p0, p1, v0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

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

    const/4 v0, 0x0

    .line 56
    invoke-direct {p0, p1, p2, v0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

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

    const/4 p1, 0x0

    .line 27
    iput-boolean p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c:Z

    const/4 p1, -0x1

    .line 33
    iput p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->h:I

    const/16 p1, 0x10

    .line 367
    iput p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->r:I

    .line 61
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b()V

    return-void
.end method

.method private a(Landroid/view/MotionEvent;)V
    .locals 3

    .line 341
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const v1, 0xff00

    and-int/2addr v0, v1

    shr-int/lit8 v0, v0, 0x8

    .line 343
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v1

    .line 344
    iget v2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->h: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 349
    :goto_0
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v1

    float-to-int v1, v1

    iput v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b:I

    .line 350
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result p1

    iput p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->h:I

    .line 351
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    if-eqz p1, :cond_1

    .line 352
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    invoke-virtual {p1}, Landroid/view/VelocityTracker;->clear()V

    :cond_1
    return-void
.end method

.method private a(II)Z
    .locals 4

    .line 183
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getChildCount()I

    move-result v0

    const/4 v1, 0x0

    if-lez v0, :cond_1

    .line 184
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result v0

    .line 185
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    .line 186
    invoke-virtual {v2}, Landroid/view/View;->getTop()I

    move-result v3

    sub-int/2addr v3, v0

    if-lt p2, v3, :cond_0

    .line 187
    invoke-virtual {v2}, Landroid/view/View;->getBottom()I

    move-result v3

    sub-int/2addr v3, v0

    if-ge p2, v3, :cond_0

    .line 188
    invoke-virtual {v2}, Landroid/view/View;->getLeft()I

    move-result p2

    if-lt p1, p2, :cond_0

    .line 189
    invoke-virtual {v2}, Landroid/view/View;->getRight()I

    move-result p2

    if-ge p1, p2, :cond_0

    const/4 v1, 0x1

    :cond_0
    return v1

    :cond_1
    return v1
.end method

.method private b()V
    .locals 2

    .line 80
    new-instance v0, Landroid/widget/Scroller;

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/Scroller;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a:Landroid/widget/Scroller;

    const/4 v0, 0x1

    .line 81
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->setFocusable(Z)V

    const/high16 v0, 0x40000

    .line 82
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->setDescendantFocusability(I)V

    const/4 v0, 0x0

    .line 83
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->setWillNotDraw(Z)V

    .line 84
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->j:Landroid/content/Context;

    .line 85
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->j:Landroid/content/Context;

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

    move-result-object v0

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

    move-result v1

    iput v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->e:I

    .line 87
    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledMinimumFlingVelocity()I

    move-result v1

    iput v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->f:I

    .line 88
    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledMaximumFlingVelocity()I

    move-result v0

    iput v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->g:I

    .line 89
    new-instance v0, Landroid/widget/EdgeEffect;

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/EdgeEffect;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->o:Landroid/widget/EdgeEffect;

    .line 90
    new-instance v0, Landroid/widget/EdgeEffect;

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/EdgeEffect;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->p:Landroid/widget/EdgeEffect;

    .line 92
    invoke-static {}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getListHeight()I

    move-result v0

    iput v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->q:I

    return-void
.end method

.method private c()V
    .locals 1

    .line 96
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    if-nez v0, :cond_0

    .line 97
    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    :cond_0
    return-void
.end method

.method private d()V
    .locals 1

    .line 102
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_0

    .line 103
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->recycle()V

    const/4 v0, 0x0

    .line 104
    iput-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    :cond_0
    return-void
.end method

.method private e()V
    .locals 1

    .line 195
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    if-nez v0, :cond_0

    .line 196
    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    goto :goto_0

    .line 198
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->clear()V

    :goto_0
    return-void
.end method

.method private f()Z
    .locals 1

    .line 370
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->o:Landroid/widget/EdgeEffect;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private g()V
    .locals 1

    const/4 v0, 0x0

    .line 421
    iput-boolean v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c:Z

    .line 422
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d()V

    .line 423
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->f()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 424
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->o:Landroid/widget/EdgeEffect;

    invoke-virtual {v0}, Landroid/widget/EdgeEffect;->onRelease()V

    .line 425
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->p:Landroid/widget/EdgeEffect;

    invoke-virtual {v0}, Landroid/widget/EdgeEffect;->onRelease()V

    :cond_0
    return-void
.end method

.method public static getListHeight()I
    .locals 3

    .line 68
    invoke-static {}, Lcom/moji/tool/DeviceTool;->c()I

    move-result v0

    invoke-static {}, Lcom/moji/tool/DeviceTool;->d()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0700ae

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v1

    sub-int/2addr v0, v1

    return v0
.end method

.method private getListScrollRange()I
    .locals 2

    .line 76
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v1

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

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

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

    move-result v0

    iget v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->q:I

    sub-int/2addr v0, v1

    return v0
.end method

.method private getScrollRange()I
    .locals 4

    .line 359
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getChildCount()I

    move-result v0

    const/4 v1, 0x0

    if-lez v0, :cond_0

    .line 360
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    .line 362
    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v0

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getHeight()I

    move-result v2

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getPaddingBottom()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getPaddingTop()I

    move-result v3

    sub-int/2addr v2, v3

    sub-int/2addr v0, v2

    .line 361
    invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I

    move-result v1

    :cond_0
    return v1
.end method


# virtual methods
.method public a(I)V
    .locals 11

    const/4 v0, 0x0

    if-gez p1, :cond_0

    const v1, 0x7fffffff

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    .line 452
    :goto_0
    iget-object v2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a:Landroid/widget/Scroller;

    const/4 v3, 0x0

    const/4 v5, 0x0

    const/4 v7, 0x0

    const v8, 0x7fffffff

    const/4 v9, 0x0

    const v10, 0x7fffffff

    move v4, v1

    move v6, p1

    invoke-virtual/range {v2 .. v10}, Landroid/widget/Scroller;->fling(IIIIIIII)V

    .line 454
    iput v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->l:I

    .line 455
    iput v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->m:I

    .line 456
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->invalidate()V

    return-void
.end method

.method public a(Landroid/view/View;Landroid/widget/LinearLayout;)V
    .locals 0

    .line 512
    iput-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->k:Landroid/view/View;

    .line 513
    iput-object p2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    return-void
.end method

.method public a()Z
    .locals 2

    .line 517
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 518
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getScrollY()I

    move-result v0

    if-nez v0, :cond_1

    const/4 v1, 0x1

    :cond_1
    return v1
.end method

.method public b(I)V
    .locals 2

    .line 499
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getScrollY()I

    move-result v0

    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getListScrollRange()I

    move-result v1

    if-le v0, v1, :cond_0

    goto :goto_1

    .line 503
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getScrollY()I

    move-result v0

    add-int/2addr v0, p1

    if-gez v0, :cond_1

    .line 504
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    invoke-virtual {p1}, Landroid/widget/LinearLayout;->getScrollY()I

    move-result p1

    neg-int p1, p1

    goto :goto_0

    .line 505
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getScrollY()I

    move-result v0

    add-int/2addr v0, p1

    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getListScrollRange()I

    move-result v1

    if-le v0, v1, :cond_2

    .line 506
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getListScrollRange()I

    move-result p1

    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getScrollY()I

    move-result v0

    sub-int/2addr p1, v0

    .line 508
    :cond_2
    :goto_0
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, p1}, Landroid/widget/LinearLayout;->scrollBy(II)V

    return-void

    :cond_3
    :goto_1
    return-void
.end method

.method public computeScroll()V
    .locals 6

    .line 461
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->computeScrollOffset()Z

    move-result v0

    if-eqz v0, :cond_7

    .line 462
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->getCurrX()I

    move-result v0

    .line 463
    iget-object v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a:Landroid/widget/Scroller;

    invoke-virtual {v1}, Landroid/widget/Scroller;->getCurrY()I

    move-result v1

    .line 464
    iget v2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->m:I

    sub-int v2, v1, v2

    .line 465
    iget v3, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->l:I

    sub-int v3, v0, v3

    if-gez v2, :cond_2

    .line 468
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a()Z

    move-result v4

    if-eqz v4, :cond_1

    .line 469
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result v4

    add-int/2addr v4, v2

    if-gez v4, :cond_0

    .line 470
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result v2

    neg-int v2, v2

    .line 472
    :cond_0
    invoke-virtual {p0, v3, v2}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->scrollBy(II)V

    goto :goto_0

    .line 474
    :cond_1
    invoke-virtual {p0, v2}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b(I)V

    goto :goto_0

    .line 477
    :cond_2
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result v4

    iget-object v5, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->k:Landroid/view/View;

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

    move-result v5

    if-lt v4, v5, :cond_3

    .line 478
    invoke-virtual {p0, v2}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b(I)V

    goto :goto_0

    .line 480
    :cond_3
    iget v4, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->l:I

    if-ne v4, v0, :cond_4

    iget v4, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->m:I

    if-eq v4, v1, :cond_6

    .line 481
    :cond_4
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result v4

    add-int/2addr v4, v2

    iget-object v5, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->k:Landroid/view/View;

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

    move-result v5

    if-lt v4, v5, :cond_5

    .line 482
    iget-object v2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->k:Landroid/view/View;

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

    move-result v2

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result v4

    sub-int/2addr v2, v4

    .line 483
    invoke-virtual {p0, v3, v2}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->scrollBy(II)V

    goto :goto_0

    .line 486
    :cond_5
    invoke-virtual {p0, v3, v2}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->scrollBy(II)V

    .line 492
    :cond_6
    :goto_0
    iput v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->m:I

    .line 493
    iput v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->l:I

    .line 494
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->invalidate()V

    :cond_7
    return-void
.end method

.method protected measureChild(Landroid/view/View;II)V
    .locals 3

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

    move-result-object v0

    .line 434
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getPaddingLeft()I

    move-result v1

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getPaddingRight()I

    move-result v2

    add-int/2addr v1, v2

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

    invoke-static {p2, v1, v0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getChildMeasureSpec(III)I

    move-result p2

    .line 435
    invoke-static {p3}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result p3

    const/4 v0, 0x0

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

    move-result p3

    .line 437
    invoke-virtual {p1, p2, p3}, Landroid/view/View;->measure(II)V

    return-void
.end method

.method protected measureChildWithMargins(Landroid/view/View;IIII)V
    .locals 2

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

    move-result-object p5

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

    .line 444
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getPaddingLeft()I

    move-result v0

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getPaddingRight()I

    move-result v1

    add-int/2addr v0, v1

    iget v1, p5, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    add-int/2addr v0, v1

    iget v1, p5, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I

    add-int/2addr v0, v1

    add-int/2addr v0, p3

    iget p3, p5, Landroid/view/ViewGroup$MarginLayoutParams;->width:I

    .line 443
    invoke-static {p2, v0, p3}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getChildMeasureSpec(III)I

    move-result p2

    .line 445
    invoke-static {p4}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result p3

    const/4 p4, 0x0

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

    move-result p3

    .line 447
    invoke-virtual {p1, p2, p3}, Landroid/view/View;->measure(II)V

    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 7

    .line 375
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onDraw(Landroid/graphics/Canvas;)V

    .line 376
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->f()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 377
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result v0

    .line 378
    iget-object v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->o:Landroid/widget/EdgeEffect;

    invoke-virtual {v1}, Landroid/widget/EdgeEffect;->isFinished()Z

    move-result v1

    const/4 v2, 0x0

    if-nez v1, :cond_1

    .line 379
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    move-result v1

    .line 385
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getWidth()I

    move-result v3

    .line 386
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getHeight()I

    move-result v4

    const/4 v5, 0x0

    .line 389
    invoke-static {v5, v0}, Ljava/lang/Math;->min(II)I

    move-result v5

    int-to-float v5, v5

    add-float/2addr v5, v2

    invoke-virtual {p1, v2, v5}, Landroid/graphics/Canvas;->translate(FF)V

    .line 390
    iget-object v5, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->o:Landroid/widget/EdgeEffect;

    invoke-virtual {v5, v3, v4}, Landroid/widget/EdgeEffect;->setSize(II)V

    .line 391
    iget-object v3, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->o:Landroid/widget/EdgeEffect;

    invoke-virtual {v3, p1}, Landroid/widget/EdgeEffect;->draw(Landroid/graphics/Canvas;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 392
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->invalidate()V

    .line 394
    :cond_0
    invoke-virtual {p1, v1}, Landroid/graphics/Canvas;->restoreToCount(I)V

    .line 397
    :cond_1
    iget-object v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->p:Landroid/widget/EdgeEffect;

    invoke-virtual {v1}, Landroid/widget/EdgeEffect;->isFinished()Z

    move-result v1

    if-nez v1, :cond_3

    .line 398
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    move-result v1

    .line 403
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getWidth()I

    move-result v3

    .line 404
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getHeight()I

    move-result v4

    neg-int v5, v3

    int-to-float v5, v5

    add-float/2addr v5, v2

    .line 409
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollRange()I

    move-result v6

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

    move-result v0

    add-int/2addr v0, v4

    int-to-float v0, v0

    add-float/2addr v0, v2

    .line 408
    invoke-virtual {p1, v5, v0}, Landroid/graphics/Canvas;->translate(FF)V

    const/high16 v0, 0x43340000    # 180.0f

    int-to-float v5, v3

    .line 410
    invoke-virtual {p1, v0, v5, v2}, Landroid/graphics/Canvas;->rotate(FFF)V

    .line 411
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->p:Landroid/widget/EdgeEffect;

    invoke-virtual {v0, v3, v4}, Landroid/widget/EdgeEffect;->setSize(II)V

    .line 412
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->p:Landroid/widget/EdgeEffect;

    invoke-virtual {v0, p1}, Landroid/widget/EdgeEffect;->draw(Landroid/graphics/Canvas;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 413
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->invalidate()V

    .line 415
    :cond_2
    invoke-virtual {p1, v1}, Landroid/graphics/Canvas;->restoreToCount(I)V

    :cond_3
    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 4

    .line 110
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const/4 v1, 0x1

    const/4 v2, 0x2

    if-ne v0, v2, :cond_0

    .line 111
    iget-boolean v2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c:Z

    if-eqz v2, :cond_0

    return v1

    :cond_0
    and-int/lit16 v0, v0, 0xff

    const/4 v2, -0x1

    const/4 v3, 0x0

    packed-switch v0, :pswitch_data_0

    goto :goto_0

    .line 117
    :pswitch_0
    iget v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->h:I

    if-ne v0, v2, :cond_1

    goto :goto_0

    .line 123
    :cond_1
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I

    move-result v0

    if-ne v0, v2, :cond_2

    goto :goto_0

    .line 128
    :cond_2
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v0

    float-to-int v0, v0

    .line 129
    iget v2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b:I

    sub-int v2, v0, v2

    invoke-static {v2}, Ljava/lang/Math;->abs(I)I

    move-result v2

    .line 130
    iget v3, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->e:I

    if-le v2, v3, :cond_5

    .line 131
    iput-boolean v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c:Z

    .line 132
    iput v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b:I

    .line 133
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 135
    invoke-interface {v0, v1}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V

    .line 137
    :cond_3
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c()V

    .line 138
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    invoke-virtual {v0, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    goto :goto_0

    .line 172
    :pswitch_1
    iput-boolean v3, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c:Z

    .line 173
    iput v2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->h:I

    .line 174
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d()V

    goto :goto_0

    .line 144
    :pswitch_2
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    float-to-int v0, v0

    .line 145
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    float-to-int v2, v2

    invoke-direct {p0, v2, v0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a(II)Z

    move-result v2

    if-nez v2, :cond_4

    .line 146
    iput-boolean v3, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c:Z

    .line 147
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d()V

    goto :goto_0

    .line 155
    :cond_4
    iput v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b:I

    .line 156
    invoke-virtual {p1, v3}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v0

    iput v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->h:I

    .line 158
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->e()V

    .line 159
    iget-object v0, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    invoke-virtual {v0, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    .line 165
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a:Landroid/widget/Scroller;

    invoke-virtual {p1}, Landroid/widget/Scroller;->isFinished()Z

    move-result p1

    xor-int/2addr p1, v1

    iput-boolean p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c:Z

    .line 178
    :cond_5
    :goto_0
    iget-boolean p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c:Z

    return p1

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 7

    .line 207
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c()V

    .line 208
    invoke-static {p1}, Landroid/view/MotionEvent;->obtain(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;

    move-result-object v0

    .line 210
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I

    move-result v1

    const/4 v2, 0x0

    if-nez v1, :cond_0

    .line 212
    iput v2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->i:I

    :cond_0
    const/4 v3, 0x0

    .line 214
    iget v4, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->i:I

    int-to-float v4, v4

    invoke-virtual {v0, v3, v4}, Landroid/view/MotionEvent;->offsetLocation(FF)V

    const/4 v3, -0x1

    const/4 v4, 0x1

    packed-switch v1, :pswitch_data_0

    :pswitch_0
    goto/16 :goto_2

    .line 326
    :pswitch_1
    invoke-direct {p0, p1}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a(Landroid/view/MotionEvent;)V

    .line 327
    iget v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->h:I

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

    move-result v1

    invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getY(I)F

    move-result p1

    float-to-int p1, p1

    iput p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b:I

    goto/16 :goto_2

    .line 320
    :pswitch_2
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionIndex()I

    move-result v1

    .line 321
    invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getY(I)F

    move-result v2

    float-to-int v2, v2

    iput v2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b:I

    .line 322
    invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result p1

    iput p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->h:I

    goto/16 :goto_2

    .line 228
    :pswitch_3
    iget v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->h:I

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

    move-result v1

    if-ne v1, v3, :cond_1

    goto/16 :goto_2

    .line 233
    :cond_1
    invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getY(I)F

    move-result p1

    float-to-int p1, p1

    .line 234
    iget v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b:I

    sub-int/2addr v1, p1

    .line 236
    iget-boolean v3, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c:Z

    if-nez v3, :cond_4

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

    move-result v3

    iget v5, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->e:I

    if-le v3, v5, :cond_4

    .line 237
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getParent()Landroid/view/ViewParent;

    move-result-object v3

    if-eqz v3, :cond_2

    .line 239
    invoke-interface {v3, v4}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V

    .line 241
    :cond_2
    iput-boolean v4, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c:Z

    if-lez v1, :cond_3

    .line 243
    iget v3, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->e:I

    sub-int/2addr v1, v3

    goto :goto_0

    .line 245
    :cond_3
    iget v3, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->e:I

    add-int/2addr v1, v3

    .line 248
    :cond_4
    :goto_0
    iget-boolean v3, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c:Z

    if-eqz v3, :cond_f

    .line 249
    iput p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b:I

    .line 250
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result p1

    .line 251
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollRange()I

    move-result v3

    add-int/2addr p1, v1

    if-lez v1, :cond_8

    .line 263
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result v5

    iget-object v6, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->k:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getHeight()I

    move-result v6

    if-ge v5, v6, :cond_6

    .line 264
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result p1

    add-int/2addr p1, v1

    iget-object v3, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->k:Landroid/view/View;

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

    move-result v3

    if-le p1, v3, :cond_5

    .line 265
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->k:Landroid/view/View;

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

    move-result p1

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result v1

    sub-int v1, p1, v1

    .line 267
    :cond_5
    invoke-virtual {p0, v2, v1}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->scrollBy(II)V

    goto/16 :goto_1

    .line 269
    :cond_6
    iget-object v2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v2}, Landroid/widget/LinearLayout;->getScrollY()I

    move-result v2

    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getListScrollRange()I

    move-result v5

    if-ne v2, v5, :cond_7

    .line 270
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->f()Z

    move-result v2

    if-eqz v2, :cond_7

    if-le p1, v3, :cond_7

    .line 271
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->p:Landroid/widget/EdgeEffect;

    int-to-float v2, v1

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getHeight()I

    move-result v3

    int-to-float v3, v3

    div-float/2addr v2, v3

    invoke-virtual {p1, v2}, Landroid/widget/EdgeEffect;->onPull(F)V

    .line 272
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->o:Landroid/widget/EdgeEffect;

    invoke-virtual {p1}, Landroid/widget/EdgeEffect;->isFinished()Z

    move-result p1

    if-nez p1, :cond_7

    .line 273
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->o:Landroid/widget/EdgeEffect;

    invoke-virtual {p1}, Landroid/widget/EdgeEffect;->onRelease()V

    .line 277
    :cond_7
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b(I)V

    goto :goto_1

    .line 280
    :cond_8
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a()Z

    move-result v3

    if-eqz v3, :cond_b

    .line 282
    iget-object v3, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->k:Landroid/view/View;

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

    move-result v3

    if-nez v3, :cond_9

    .line 283
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->f()Z

    move-result v3

    if-eqz v3, :cond_9

    if-gez p1, :cond_9

    .line 284
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->o:Landroid/widget/EdgeEffect;

    int-to-float v3, v1

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getHeight()I

    move-result v5

    int-to-float v5, v5

    div-float/2addr v3, v5

    invoke-virtual {p1, v3}, Landroid/widget/EdgeEffect;->onPull(F)V

    .line 285
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->p:Landroid/widget/EdgeEffect;

    invoke-virtual {p1}, Landroid/widget/EdgeEffect;->isFinished()Z

    move-result p1

    if-nez p1, :cond_9

    .line 286
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->p:Landroid/widget/EdgeEffect;

    invoke-virtual {p1}, Landroid/widget/EdgeEffect;->onRelease()V

    .line 290
    :cond_9
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result p1

    add-int/2addr p1, v1

    if-gez p1, :cond_a

    .line 291
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->getScrollY()I

    move-result p1

    neg-int v1, p1

    .line 293
    :cond_a
    invoke-virtual {p0, v2, v1}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->scrollBy(II)V

    goto :goto_1

    .line 295
    :cond_b
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b(I)V

    .line 300
    :goto_1
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->f()Z

    move-result p1

    if-eqz p1, :cond_f

    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->o:Landroid/widget/EdgeEffect;

    invoke-virtual {p1}, Landroid/widget/EdgeEffect;->isFinished()Z

    move-result p1

    if-eqz p1, :cond_c

    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->p:Landroid/widget/EdgeEffect;

    invoke-virtual {p1}, Landroid/widget/EdgeEffect;->isFinished()Z

    move-result p1

    if-nez p1, :cond_f

    .line 301
    :cond_c
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->invalidate()V

    goto :goto_2

    .line 306
    :pswitch_4
    iget-boolean p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->c:Z

    if-eqz p1, :cond_f

    .line 307
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    const/16 v1, 0x3e8

    .line 308
    iget v2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->g:I

    int-to-float v2, v2

    invoke-virtual {p1, v1, v2}, Landroid/view/VelocityTracker;->computeCurrentVelocity(IF)V

    .line 309
    iget v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->h:I

    invoke-virtual {p1, v1}, Landroid/view/VelocityTracker;->getYVelocity(I)F

    move-result p1

    float-to-int p1, p1

    .line 311
    invoke-static {p1}, Ljava/lang/Math;->abs(I)I

    move-result v1

    iget v2, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->f:I

    if-le v1, v2, :cond_d

    neg-int p1, p1

    .line 312
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a(I)V

    .line 315
    :cond_d
    iput v3, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->h:I

    .line 316
    invoke-direct {p0}, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->g()V

    goto :goto_2

    .line 218
    :pswitch_5
    iget-object v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a:Landroid/widget/Scroller;

    invoke-virtual {v1}, Landroid/widget/Scroller;->isFinished()Z

    move-result v1

    if-nez v1, :cond_e

    .line 219
    iget-object v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->a:Landroid/widget/Scroller;

    invoke-virtual {v1}, Landroid/widget/Scroller;->abortAnimation()V

    .line 223
    :cond_e
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    float-to-int v1, v1

    iput v1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->b:I

    .line 224
    invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result p1

    iput p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->h:I

    .line 332
    :cond_f
    :goto_2
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    if-eqz p1, :cond_10

    .line 333
    iget-object p1, p0, Lcom/moji/mjweather/aqi/widget/FloatScrollView;->d:Landroid/view/VelocityTracker;

    invoke-virtual {p1, v0}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    .line 335
    :cond_10
    invoke-virtual {v0}, Landroid/view/MotionEvent;->recycle()V

    return v4

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_0
        :pswitch_0
        :pswitch_2
        :pswitch_1
    .end packed-switch
.end method
