.class Lcom/moji/mjweather/assshop/view/DragTopLayout$2;
.super Landroid/support/v4/widget/ViewDragHelper$Callback;
.source "DragTopLayout.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjweather/assshop/view/DragTopLayout;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjweather/assshop/view/DragTopLayout;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/assshop/view/DragTopLayout;)V
    .locals 0

    .line 296
    iput-object p1, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-direct {p0}, Landroid/support/v4/widget/ViewDragHelper$Callback;-><init>()V

    return-void
.end method


# virtual methods
.method public clampViewPositionVertical(Landroid/view/View;II)I
    .locals 1

    .line 322
    iget-object p1, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p1}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->h(Lcom/moji/mjweather/assshop/view/DragTopLayout;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 324
    iget-object p1, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-virtual {p1}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->getPaddingTop()I

    move-result p1

    iget-object p3, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p3}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->i(Lcom/moji/mjweather/assshop/view/DragTopLayout;)I

    move-result p3

    add-int/2addr p1, p3

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

    move-result p1

    return p1

    .line 326
    :cond_0
    iget-object p1, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p1}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->j(Lcom/moji/mjweather/assshop/view/DragTopLayout;)I

    move-result p1

    iget-object p3, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-virtual {p3}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->getPaddingTop()I

    move-result p3

    iget-object v0, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {v0}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->i(Lcom/moji/mjweather/assshop/view/DragTopLayout;)I

    move-result v0

    add-int/2addr p3, v0

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

    move-result p2

    invoke-static {p1, p2}, Ljava/lang/Math;->min(II)I

    move-result p1

    return p1
.end method

.method public getViewVerticalDragRange(Landroid/view/View;)I
    .locals 0

    .line 317
    iget-object p1, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p1}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->g(Lcom/moji/mjweather/assshop/view/DragTopLayout;)I

    move-result p1

    return p1
.end method

.method public onViewDragStateChanged(I)V
    .locals 0

    .line 350
    invoke-super {p0, p1}, Landroid/support/v4/widget/ViewDragHelper$Callback;->onViewDragStateChanged(I)V

    return-void
.end method

.method public onViewPositionChanged(Landroid/view/View;IIII)V
    .locals 0

    .line 308
    invoke-super/range {p0 .. p5}, Landroid/support/v4/widget/ViewDragHelper$Callback;->onViewPositionChanged(Landroid/view/View;IIII)V

    .line 309
    iget-object p1, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p1, p3}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->a(Lcom/moji/mjweather/assshop/view/DragTopLayout;I)I

    .line 310
    iget-object p1, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-virtual {p1}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->requestLayout()V

    .line 311
    iget-object p1, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    iget-object p2, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p2}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->e(Lcom/moji/mjweather/assshop/view/DragTopLayout;)I

    move-result p2

    int-to-float p2, p2

    invoke-static {p1, p2}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->a(Lcom/moji/mjweather/assshop/view/DragTopLayout;F)V

    .line 312
    iget-object p1, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p1}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->f(Lcom/moji/mjweather/assshop/view/DragTopLayout;)V

    return-void
.end method

.method public onViewReleased(Landroid/view/View;FF)V
    .locals 1

    .line 332
    invoke-super {p0, p1, p2, p3}, Landroid/support/v4/widget/ViewDragHelper$Callback;->onViewReleased(Landroid/view/View;FF)V

    .line 333
    iget-object p2, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p2}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->k(Lcom/moji/mjweather/assshop/view/DragTopLayout;)Z

    move-result p2

    if-eqz p2, :cond_0

    .line 334
    iget-object p2, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p2}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->b(Lcom/moji/mjweather/assshop/view/DragTopLayout;)Landroid/support/v4/widget/ViewDragHelper;

    move-result-object p2

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

    move-result p1

    iget-object p3, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-virtual {p3}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->getPaddingTop()I

    move-result p3

    iget-object v0, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {v0}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->i(Lcom/moji/mjweather/assshop/view/DragTopLayout;)I

    move-result v0

    add-int/2addr p3, v0

    invoke-virtual {p2, p1, p3}, Landroid/support/v4/widget/ViewDragHelper;->settleCapturedViewAt(II)Z

    goto :goto_2

    :cond_0
    const/4 p2, 0x0

    cmpl-float p2, p3, p2

    if-gtz p2, :cond_2

    .line 338
    iget-object p2, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p2}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->e(Lcom/moji/mjweather/assshop/view/DragTopLayout;)I

    move-result p2

    iget-object p3, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p3}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->j(Lcom/moji/mjweather/assshop/view/DragTopLayout;)I

    move-result p3

    if-le p2, p3, :cond_1

    goto :goto_0

    .line 341
    :cond_1
    iget-object p2, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-virtual {p2}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->getPaddingTop()I

    move-result p2

    iget-object p3, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p3}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->i(Lcom/moji/mjweather/assshop/view/DragTopLayout;)I

    move-result p3

    add-int/2addr p2, p3

    goto :goto_1

    .line 339
    :cond_2
    :goto_0
    iget-object p2, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p2}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->j(Lcom/moji/mjweather/assshop/view/DragTopLayout;)I

    move-result p2

    iget-object p3, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-virtual {p3}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->getPaddingTop()I

    move-result p3

    add-int/2addr p2, p3

    .line 343
    :goto_1
    iget-object p3, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p3}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->b(Lcom/moji/mjweather/assshop/view/DragTopLayout;)Landroid/support/v4/widget/ViewDragHelper;

    move-result-object p3

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

    move-result p1

    invoke-virtual {p3, p1, p2}, Landroid/support/v4/widget/ViewDragHelper;->settleCapturedViewAt(II)Z

    .line 345
    :goto_2
    iget-object p1, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-virtual {p1}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->postInvalidate()V

    return-void
.end method

.method public tryCaptureView(Landroid/view/View;I)Z
    .locals 2

    .line 299
    iget-object v0, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {v0}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->c(Lcom/moji/mjweather/assshop/view/DragTopLayout;)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    if-ne p1, v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {v0}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->d(Lcom/moji/mjweather/assshop/view/DragTopLayout;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 300
    iget-object p1, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p1}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->b(Lcom/moji/mjweather/assshop/view/DragTopLayout;)Landroid/support/v4/widget/ViewDragHelper;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {v0}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->a(Lcom/moji/mjweather/assshop/view/DragTopLayout;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {p1, v0, p2}, Landroid/support/v4/widget/ViewDragHelper;->captureChildView(Landroid/view/View;I)V

    return v1

    .line 303
    :cond_0
    iget-object p2, p0, Lcom/moji/mjweather/assshop/view/DragTopLayout$2;->a:Lcom/moji/mjweather/assshop/view/DragTopLayout;

    invoke-static {p2}, Lcom/moji/mjweather/assshop/view/DragTopLayout;->a(Lcom/moji/mjweather/assshop/view/DragTopLayout;)Landroid/view/View;

    move-result-object p2

    if-ne p1, p2, :cond_1

    const/4 v1, 0x1

    :cond_1
    return v1
.end method
