LikeBottomBehavior.smali

.class public Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
.super Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$SavedState;,
        Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$b;,
        Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$a;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<V:",
        "Landroid/view/View;",
        ">",
        "Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior<",
        "TV;>;"
    }
.end annotation


# instance fields
.field private a:F

.field public b:Z

.field public c:I

.field public d:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;

.field public e:F

.field private f:I

.field private g:Z

.field private h:I

.field private i:I

.field private j:I

.field private k:Z

.field private l:Landroidx/customview/widget/ViewDragHelper;

.field private m:Z

.field private n:I

.field private o:Z

.field private p:I

.field private q:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference<",
            "TV;>;"
        }
    .end annotation
.end field

.field private r:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference<",
            "Landroid/view/View;",
            ">;"
        }
    .end annotation
.end field

.field private s:Landroid/view/VelocityTracker;

.field private t:I

.field private u:I

.field private v:Z

.field private w:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$a;

.field private final x:Landroidx/customview/widget/ViewDragHelper$Callback;


# direct methods
.method public constructor <init>()V
    .registers 2

    .line 98
    invoke-direct {p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;-><init>()V

    const/4 v0, 0x4

    .line 64
    iput v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    const/high16 v0, 0x3f000000    # 0.5f

    .line 91
    iput v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->e:F

    .line 596
    new-instance v0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;

    invoke-direct {v0, p0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;-><init>(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)V

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->x:Landroidx/customview/widget/ViewDragHelper$Callback;

    return-void
.end method

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

    .line 108
    invoke-direct {p0, p1, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, 0x4

    .line 64
    iput v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    const/high16 v0, 0x3f000000    # 0.5f

    .line 91
    iput v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->e:F

    .line 596
    new-instance v0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;

    invoke-direct {v0, p0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;-><init>(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)V

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->x:Landroidx/customview/widget/ViewDragHelper$Callback;

    .line 109
    sget-object v0, Lcom/masala/share/b$b;->BottomSheetBehavior_Layout:[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 111
    invoke-virtual {p2, v0}, Landroid/content/res/TypedArray;->peekValue(I)Landroid/util/TypedValue;

    move-result-object v1

    const/4 v2, -0x1

    if-eqz v1, :cond_29

    .line 112
    iget v3, v1, Landroid/util/TypedValue;->data:I

    if-ne v3, v2, :cond_29

    .line 113
    iget v0, v1, Landroid/util/TypedValue;->data:I

    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a(I)V

    goto :goto_30

    .line 115
    :cond_29
    invoke-virtual {p2, v0, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a(I)V

    :goto_30
    const/4 v0, 0x0

    .line 118
    invoke-virtual {p2, v0, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v1

    .line 1423
    iput-boolean v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b:Z

    const/4 v1, 0x2

    .line 119
    invoke-virtual {p2, v1, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v0

    .line 1444
    iput-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->k:Z

    .line 121
    invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V

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

    move-result-object p1

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

    move-result p1

    int-to-float p1, p1

    iput p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a:F

    return-void
.end method

.method static synthetic a(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
    .registers 1

    .line 29
    iget p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    return p0
.end method

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

    .line 553
    invoke-static {p1}, Landroidx/core/view/ViewCompat;->isNestedScrollingEnabled(Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_7

    return-object p1

    .line 556
    :cond_7
    instance-of v0, p1, Landroid/view/ViewGroup;

    if-eqz v0, :cond_22

    .line 557
    check-cast p1, Landroid/view/ViewGroup;

    const/4 v0, 0x0

    .line 558
    invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v1

    :goto_12
    if-ge v0, v1, :cond_22

    .line 559
    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-direct {p0, v2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a(Landroid/view/View;)Landroid/view/View;

    move-result-object v2

    if-eqz v2, :cond_1f

    return-object v2

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

    goto :goto_12

    :cond_22
    const/4 p1, 0x0

    return-object p1
.end method

.method private a()V
    .registers 2

    const/4 v0, -0x1

    .line 527
    iput v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->t:I

    .line 528
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->s:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_d

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

    const/4 v0, 0x0

    .line 530
    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->s:Landroid/view/VelocityTracker;

    :cond_d
    return-void
.end method

.method private b()Landroid/view/View;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TV;"
        }
    .end annotation

    .line 536
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->q:Ljava/lang/ref/WeakReference;

    if-eqz v0, :cond_b

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    return-object v0

    :cond_b
    const/4 v0, 0x0

    return-object v0
.end method

.method static synthetic b(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Z
    .registers 1

    .line 29
    iget-boolean p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->v:Z

    return p0
.end method

.method static synthetic c(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
    .registers 1

    .line 29
    iget p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->t:I

    return p0
.end method

.method static synthetic d(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Ljava/lang/ref/WeakReference;
    .registers 1

    .line 29
    iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->r:Ljava/lang/ref/WeakReference;

    return-object p0
.end method

.method static synthetic e(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Ljava/lang/ref/WeakReference;
    .registers 1

    .line 29
    iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->q:Ljava/lang/ref/WeakReference;

    return-object p0
.end method

.method static synthetic f(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Landroid/view/View;
    .registers 1

    .line 29
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b()Landroid/view/View;

    move-result-object p0

    return-object p0
.end method

.method static synthetic g(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
    .registers 1

    .line 29
    iget p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i:I

    return p0
.end method

.method static synthetic h(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Z
    .registers 1

    .line 29
    iget-boolean p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b:Z

    return p0
.end method

.method static synthetic i(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
    .registers 1

    .line 29
    iget p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->p:I

    return p0
.end method

.method static synthetic j(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$a;
    .registers 1

    .line 29
    iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->w:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$a;

    return-object p0
.end method

.method static synthetic k(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
    .registers 1

    .line 29
    iget p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j:I

    return p0
.end method

.method static synthetic l(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Landroidx/customview/widget/ViewDragHelper;
    .registers 1

    .line 29
    iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l:Landroidx/customview/widget/ViewDragHelper;

    return-object p0
.end method


# virtual methods
.method public final a(I)V
    .registers 5

    const/4 v0, 0x1

    const/4 v1, 0x0

    const/4 v2, -0x1

    if-ne p1, v2, :cond_c

    .line 387
    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->g:Z

    if-nez p1, :cond_15

    .line 388
    iput-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->g:Z

    goto :goto_24

    .line 391
    :cond_c
    iget-boolean v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->g:Z

    if-nez v2, :cond_17

    iget v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->f:I

    if-eq v2, p1, :cond_15

    goto :goto_17

    :cond_15
    const/4 v0, 0x0

    goto :goto_24

    .line 392
    :cond_17
    :goto_17
    iput-boolean v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->g:Z

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

    move-result v1

    iput v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->f:I

    .line 394
    iget v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->p:I

    sub-int/2addr v1, p1

    iput v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j:I

    :goto_24
    if-eqz v0, :cond_38

    .line 397
    iget p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    const/4 v0, 0x4

    if-ne p1, v0, :cond_38

    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->q:Ljava/lang/ref/WeakReference;

    if-eqz p1, :cond_38

    .line 398
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b()Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_38

    .line 400
    invoke-virtual {p1}, Landroid/view/View;->requestLayout()V

    :cond_38
    return-void
.end method

.method final a(Landroid/view/View;I)V
    .registers 6

    const/4 v0, 0x4

    if-ne p2, v0, :cond_6

    .line 580
    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j:I

    goto :goto_15

    :cond_6
    const/4 v0, 0x3

    if-ne p2, v0, :cond_c

    .line 582
    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i:I

    goto :goto_15

    .line 583
    :cond_c
    iget-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b:Z

    if-eqz v0, :cond_32

    const/4 v0, 0x5

    if-ne p2, v0, :cond_32

    .line 584
    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->p:I

    .line 588
    :goto_15
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l:Landroidx/customview/widget/ViewDragHelper;

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

    move-result v2

    invoke-virtual {v1, p1, v2, v0}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z

    move-result v0

    if-eqz v0, :cond_2e

    const/4 v0, 0x2

    .line 589
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(I)V

    .line 590
    new-instance v0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$b;

    invoke-direct {v0, p0, p1, p2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$b;-><init>(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;Landroid/view/View;I)V

    invoke-static {p1, v0}, Landroidx/core/view/ViewCompat;->postOnAnimation(Landroid/view/View;Ljava/lang/Runnable;)V

    return-void

    .line 592
    :cond_2e
    invoke-virtual {p0, p2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(I)V

    return-void

    .line 586
    :cond_32
    new-instance p1, Ljava/lang/IllegalArgumentException;

    invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p2

    const-string v0, "Illegal state argument: "

    invoke-virtual {v0, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method final a(Landroid/view/View;F)Z
    .registers 7

    .line 540
    iget-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->k:Z

    const/4 v1, 0x1

    if-eqz v0, :cond_6

    return v1

    .line 543
    :cond_6
    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v0

    iget v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j:I

    const/4 v3, 0x0

    if-ge v0, v2, :cond_10

    return v3

    .line 547
    :cond_10
    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result p1

    int-to-float p1, p1

    const v0, 0x3dcccccd    # 0.1f

    mul-float p2, p2, v0

    add-float/2addr p1, p2

    .line 548
    iget p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j:I

    int-to-float p2, p2

    sub-float/2addr p1, p2

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

    move-result p1

    iget p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->f:I

    int-to-float p2, p2

    div-float/2addr p1, p2

    iget p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->e:F

    cmpl-float p1, p1, p2

    if-lez p1, :cond_2e

    return v1

    :cond_2e
    return v3
.end method

.method public final b(I)V
    .registers 4

    .line 475
    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    if-ne p1, v0, :cond_5

    return-void

    .line 478
    :cond_5
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->q:Ljava/lang/ref/WeakReference;

    if-nez v0, :cond_19

    const/4 v0, 0x4

    if-eq p1, v0, :cond_16

    const/4 v0, 0x3

    if-eq p1, v0, :cond_16

    .line 480
    iget-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b:Z

    if-eqz v0, :cond_18

    const/4 v0, 0x5

    if-ne p1, v0, :cond_18

    .line 482
    :cond_16
    iput p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    :cond_18
    return-void

    .line 486
    :cond_19
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b()Landroid/view/View;

    move-result-object v0

    if-nez v0, :cond_20

    return-void

    .line 491
    :cond_20
    invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    if-eqz v1, :cond_3b

    .line 492
    invoke-interface {v1}, Landroid/view/ViewParent;->isLayoutRequested()Z

    move-result v1

    if-eqz v1, :cond_3b

    invoke-static {v0}, Landroidx/core/view/ViewCompat;->isAttachedToWindow(Landroid/view/View;)Z

    move-result v1

    if-eqz v1, :cond_3b

    .line 493
    new-instance v1, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$1;

    invoke-direct {v1, p0, v0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$1;-><init>(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;Landroid/view/View;I)V

    invoke-virtual {v0, v1}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z

    return-void

    .line 500
    :cond_3b
    invoke-virtual {p0, v0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a(Landroid/view/View;I)V

    return-void
.end method

.method final c(I)V
    .registers 4

    .line 516
    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    if-ne v0, p1, :cond_5

    return-void

    .line 519
    :cond_5
    iput p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    .line 520
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_14

    .line 521
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->d:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;

    if-eqz v1, :cond_14

    .line 522
    invoke-virtual {v1, v0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;->onStateChanged(Landroid/view/View;I)V

    :cond_14
    return-void
.end method

.method final d(I)V
    .registers 6

    .line 684
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_25

    .line 685
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->d:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;

    if-eqz v1, :cond_25

    .line 686
    iget v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j:I

    if-le p1, v2, :cond_1a

    sub-int p1, v2, p1

    int-to-float p1, p1

    .line 687
    iget v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->p:I

    sub-int/2addr v3, v2

    int-to-float v2, v3

    div-float/2addr p1, v2

    invoke-virtual {v1, v0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;->onSlide(Landroid/view/View;F)V

    return-void

    :cond_1a
    sub-int p1, v2, p1

    int-to-float p1, p1

    .line 690
    iget v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i:I

    sub-int/2addr v2, v3

    int-to-float v2, v2

    div-float/2addr p1, v2

    invoke-virtual {v1, v0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;->onSlide(Landroid/view/View;F)V

    :cond_25
    return-void
.end method

.method public onInterceptTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
    .registers 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
            "TV;",
            "Landroid/view/MotionEvent;",
            ")Z"
        }
    .end annotation

    .line 184
    invoke-virtual {p2}, Landroid/view/View;->isShown()Z

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-nez v0, :cond_b

    .line 185
    iput-boolean v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->m:Z

    return v1

    .line 188
    :cond_b
    invoke-virtual {p3}, Landroid/view/MotionEvent;->getActionMasked()I

    move-result v0

    if-nez v0, :cond_14

    .line 191
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a()V

    .line 193
    :cond_14
    iget-object v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->s:Landroid/view/VelocityTracker;

    if-nez v3, :cond_1e

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

    move-result-object v3

    iput-object v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->s:Landroid/view/VelocityTracker;

    .line 196
    :cond_1e
    iget-object v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->s:Landroid/view/VelocityTracker;

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

    const/4 v3, -0x1

    if-eqz v0, :cond_37

    if-eq v0, v2, :cond_2c

    const/4 v4, 0x3

    if-eq v0, v4, :cond_2c

    goto :goto_76

    .line 200
    :cond_2c
    iput-boolean v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->v:Z

    .line 201
    iput v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->t:I

    .line 203
    iget-boolean v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->m:Z

    if-eqz v3, :cond_76

    .line 204
    iput-boolean v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->m:Z

    return v1

    .line 209
    :cond_37
    invoke-virtual {p3}, Landroid/view/MotionEvent;->getX()F

    move-result v4

    float-to-int v4, v4

    .line 210
    invoke-virtual {p3}, Landroid/view/MotionEvent;->getY()F

    move-result v5

    float-to-int v5, v5

    iput v5, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->u:I

    .line 211
    iget-object v5, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->r:Ljava/lang/ref/WeakReference;

    if-eqz v5, :cond_4e

    .line 212
    invoke-virtual {v5}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/view/View;

    goto :goto_4f

    :cond_4e
    const/4 v5, 0x0

    :goto_4f
    if-eqz v5, :cond_65

    .line 213
    iget v6, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->u:I

    invoke-virtual {p1, v5, v4, v6}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->isPointInChildBounds(Landroid/view/View;II)Z

    move-result v5

    if-eqz v5, :cond_65

    .line 214
    invoke-virtual {p3}, Landroid/view/MotionEvent;->getActionIndex()I

    move-result v5

    invoke-virtual {p3, v5}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v5

    iput v5, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->t:I

    .line 215
    iput-boolean v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->v:Z

    .line 217
    :cond_65
    iget v5, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->t:I

    if-ne v5, v3, :cond_73

    iget v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->u:I

    .line 218
    invoke-virtual {p1, p2, v4, v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->isPointInChildBounds(Landroid/view/View;II)Z

    move-result v3

    if-nez v3, :cond_73

    const/4 v3, 0x1

    goto :goto_74

    :cond_73
    const/4 v3, 0x0

    :goto_74
    iput-boolean v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->m:Z

    .line 221
    :cond_76
    :goto_76
    iget-object v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l:Landroidx/customview/widget/ViewDragHelper;

    if-nez v3, :cond_82

    .line 222
    iget-object v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->x:Landroidx/customview/widget/ViewDragHelper$Callback;

    invoke-static {p1, v3}, Landroidx/customview/widget/ViewDragHelper;->create(Landroid/view/ViewGroup;Landroidx/customview/widget/ViewDragHelper$Callback;)Landroidx/customview/widget/ViewDragHelper;

    move-result-object v3

    iput-object v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l:Landroidx/customview/widget/ViewDragHelper;

    .line 224
    :cond_82
    iget-boolean v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->m:Z

    if-nez v3, :cond_8f

    iget-object v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {v3, p3}, Landroidx/customview/widget/ViewDragHelper;->shouldInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v3

    if-eqz v3, :cond_8f

    return v2

    .line 230
    :cond_8f
    iget-object v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->r:Ljava/lang/ref/WeakReference;

    if-nez v3, :cond_9e

    .line 231
    new-instance v3, Ljava/lang/ref/WeakReference;

    invoke-direct {p0, p2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a(Landroid/view/View;)Landroid/view/View;

    move-result-object p2

    invoke-direct {v3, p2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->r:Ljava/lang/ref/WeakReference;

    .line 233
    :cond_9e
    iget-object p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->r:Ljava/lang/ref/WeakReference;

    invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Landroid/view/View;

    const/4 v3, 0x2

    if-ne v0, v3, :cond_db

    if-eqz p2, :cond_db

    .line 234
    iget-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->m:Z

    if-nez v0, :cond_db

    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    if-eq v0, v2, :cond_db

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

    move-result v0

    float-to-int v0, v0

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

    move-result v3

    float-to-int v3, v3

    invoke-virtual {p1, p2, v0, v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->isPointInChildBounds(Landroid/view/View;II)Z

    move-result p1

    if-nez p1, :cond_db

    iget p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->u:I

    int-to-float p1, p1

    .line 237
    invoke-virtual {p3}, Landroid/view/MotionEvent;->getY()F

    move-result p2

    sub-float/2addr p1, p2

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

    move-result p1

    iget-object p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {p2}, Landroidx/customview/widget/ViewDragHelper;->getTouchSlop()I

    move-result p2

    int-to-float p2, p2

    cmpl-float p1, p1, p2

    if-lez p1, :cond_db

    return v2

    :cond_db
    return v1
.end method

.method public onLayoutChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;I)Z
    .registers 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
            "TV;I)Z"
        }
    .end annotation

    .line 145
    invoke-static {p1}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_10

    invoke-static {p2}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z

    move-result v0

    if-nez v0, :cond_10

    .line 146
    invoke-static {p2, v1}, Landroidx/core/view/ViewCompat;->setFitsSystemWindows(Landroid/view/View;Z)V

    .line 148
    :cond_10
    invoke-virtual {p2}, Landroid/view/View;->getTop()I

    move-result v0

    .line 150
    invoke-virtual {p1, p2, p3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onLayoutChild(Landroid/view/View;I)V

    .line 152
    invoke-virtual {p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getHeight()I

    move-result p3

    iput p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->p:I

    .line 154
    iget-boolean p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->g:Z

    if-eqz p3, :cond_44

    .line 155
    iget p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->h:I

    if-nez p3, :cond_32

    .line 156
    invoke-virtual {p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getResources()Landroid/content/res/Resources;

    move-result-object p3

    const v2, 0x7e060008

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

    move-result p3

    iput p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->h:I

    .line 159
    :cond_32
    iget p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->h:I

    iget v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->p:I

    invoke-virtual {p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getWidth()I

    move-result v3

    mul-int/lit8 v3, v3, 0x9

    div-int/lit8 v3, v3, 0x10

    sub-int/2addr v2, v3

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

    move-result p3

    goto :goto_46

    .line 161
    :cond_44
    iget p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->f:I

    :goto_46
    const/4 v2, 0x0

    .line 163
    iget v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->p:I

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

    move-result v4

    sub-int/2addr v3, v4

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

    move-result v2

    iput v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i:I

    .line 164
    iget v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->p:I

    sub-int/2addr v3, p3

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

    move-result p3

    iput p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j:I

    .line 165
    iget p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    const/4 v2, 0x3

    if-ne p3, v2, :cond_68

    .line 166
    iget p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i:I

    invoke-static {p2, p3}, Landroidx/core/view/ViewCompat;->offsetTopAndBottom(Landroid/view/View;I)V

    goto :goto_8d

    .line 167
    :cond_68
    iget-boolean v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b:Z

    if-eqz v2, :cond_75

    const/4 v2, 0x5

    if-ne p3, v2, :cond_75

    .line 168
    iget p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->p:I

    invoke-static {p2, p3}, Landroidx/core/view/ViewCompat;->offsetTopAndBottom(Landroid/view/View;I)V

    goto :goto_8d

    .line 169
    :cond_75
    iget p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    const/4 v2, 0x4

    if-ne p3, v2, :cond_80

    .line 170
    iget p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j:I

    invoke-static {p2, p3}, Landroidx/core/view/ViewCompat;->offsetTopAndBottom(Landroid/view/View;I)V

    goto :goto_8d

    :cond_80
    if-eq p3, v1, :cond_85

    const/4 v2, 0x2

    if-ne p3, v2, :cond_8d

    .line 172
    :cond_85
    invoke-virtual {p2}, Landroid/view/View;->getTop()I

    move-result p3

    sub-int/2addr v0, p3

    invoke-static {p2, v0}, Landroidx/core/view/ViewCompat;->offsetTopAndBottom(Landroid/view/View;I)V

    .line 174
    :cond_8d
    :goto_8d
    iget-object p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l:Landroidx/customview/widget/ViewDragHelper;

    if-nez p3, :cond_99

    .line 175
    iget-object p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->x:Landroidx/customview/widget/ViewDragHelper$Callback;

    invoke-static {p1, p3}, Landroidx/customview/widget/ViewDragHelper;->create(Landroid/view/ViewGroup;Landroidx/customview/widget/ViewDragHelper$Callback;)Landroidx/customview/widget/ViewDragHelper;

    move-result-object p1

    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l:Landroidx/customview/widget/ViewDragHelper;

    .line 177
    :cond_99
    new-instance p1, Ljava/lang/ref/WeakReference;

    invoke-direct {p1, p2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->q:Ljava/lang/ref/WeakReference;

    .line 178
    new-instance p1, Ljava/lang/ref/WeakReference;

    invoke-direct {p0, p2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a(Landroid/view/View;)Landroid/view/View;

    move-result-object p2

    invoke-direct {p1, p2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->r:Ljava/lang/ref/WeakReference;

    return v1
.end method

.method public onNestedPreFling(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;FF)Z
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
            "TV;",
            "Landroid/view/View;",
            "FF)Z"
        }
    .end annotation

    .line 361
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->r:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    if-ne p3, v0, :cond_15

    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    const/4 v1, 0x3

    if-ne v0, v1, :cond_13

    .line 363
    invoke-super/range {p0 .. p5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onNestedPreFling(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;FF)Z

    move-result p1

    if-eqz p1, :cond_15

    :cond_13
    const/4 p1, 0x1

    return p1

    :cond_15
    const/4 p1, 0x0

    return p1
.end method

.method public onNestedPreScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;II[I)V
    .registers 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
            "TV;",
            "Landroid/view/View;",
            "II[I)V"
        }
    .end annotation

    .line 281
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->r:Ljava/lang/ref/WeakReference;

    invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/view/View;

    if-eq p3, p1, :cond_b

    return-void

    .line 285
    :cond_b
    invoke-virtual {p2}, Landroid/view/View;->getTop()I

    move-result p1

    sub-int p4, p1, p5

    const/4 v0, 0x1

    if-lez p5, :cond_30

    .line 288
    iget p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i:I

    if-ge p4, p3, :cond_26

    sub-int/2addr p1, p3

    .line 289
    aput p1, p6, v0

    .line 290
    aget p1, p6, v0

    neg-int p1, p1

    invoke-static {p2, p1}, Landroidx/core/view/ViewCompat;->offsetTopAndBottom(Landroid/view/View;I)V

    const/4 p1, 0x3

    .line 291
    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(I)V

    goto :goto_59

    .line 293
    :cond_26
    aput p5, p6, v0

    neg-int p1, p5

    .line 294
    invoke-static {p2, p1}, Landroidx/core/view/ViewCompat;->offsetTopAndBottom(Landroid/view/View;I)V

    .line 295
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(I)V

    goto :goto_59

    :cond_30
    if-gez p5, :cond_59

    const/4 v1, -0x1

    .line 298
    invoke-virtual {p3, v1}, Landroid/view/View;->canScrollVertically(I)Z

    move-result p3

    if-nez p3, :cond_59

    .line 299
    iget p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j:I

    if-le p4, p3, :cond_50

    iget-boolean p4, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b:Z

    if-eqz p4, :cond_42

    goto :goto_50

    :cond_42
    sub-int/2addr p1, p3

    .line 304
    aput p1, p6, v0

    .line 305
    aget p1, p6, v0

    neg-int p1, p1

    invoke-static {p2, p1}, Landroidx/core/view/ViewCompat;->offsetTopAndBottom(Landroid/view/View;I)V

    const/4 p1, 0x4

    .line 306
    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(I)V

    goto :goto_59

    .line 300
    :cond_50
    :goto_50
    aput p5, p6, v0

    neg-int p1, p5

    .line 301
    invoke-static {p2, p1}, Landroidx/core/view/ViewCompat;->offsetTopAndBottom(Landroid/view/View;I)V

    .line 302
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(I)V

    .line 310
    :cond_59
    :goto_59
    invoke-virtual {p2}, Landroid/view/View;->getTop()I

    move-result p1

    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->d(I)V

    .line 311
    iput p5, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->n:I

    .line 312
    iput-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->o:Z

    return-void
.end method

.method public onRestoreInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/os/Parcelable;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
            "TV;",
            "Landroid/os/Parcelable;",
            ")V"
        }
    .end annotation

    .line 133
    check-cast p3, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$SavedState;

    .line 134
    invoke-virtual {p3}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$SavedState;->getSuperState()Landroid/os/Parcelable;

    move-result-object v0

    invoke-super {p0, p1, p2, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onRestoreInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/os/Parcelable;)V

    .line 136
    iget p1, p3, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$SavedState;->a:I

    const/4 p2, 0x1

    if-eq p1, p2, :cond_19

    iget p1, p3, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$SavedState;->a:I

    const/4 p2, 0x2

    if-ne p1, p2, :cond_14

    goto :goto_19

    .line 139
    :cond_14
    iget p1, p3, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$SavedState;->a:I

    iput p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    return-void

    :cond_19
    :goto_19
    const/4 p1, 0x4

    .line 137
    iput p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    return-void
.end method

.method public onSaveInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;)Landroid/os/Parcelable;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
            "TV;)",
            "Landroid/os/Parcelable;"
        }
    .end annotation

    .line 128
    new-instance v0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$SavedState;

    invoke-super {p0, p1, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onSaveInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;)Landroid/os/Parcelable;

    move-result-object p1

    iget p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    invoke-direct {v0, p1, p2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$SavedState;-><init>(Landroid/os/Parcelable;I)V

    return-object v0
.end method

.method public onStartNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;Landroid/view/View;I)Z
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
            "TV;",
            "Landroid/view/View;",
            "Landroid/view/View;",
            "I)Z"
        }
    .end annotation

    const/4 p1, 0x0

    .line 273
    iput p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->n:I

    .line 274
    iput-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->o:Z

    and-int/lit8 p2, p5, 0x2

    if-eqz p2, :cond_a

    const/4 p1, 0x1

    :cond_a
    return p1
.end method

.method public onStopNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;)V
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
            "TV;",
            "Landroid/view/View;",
            ")V"
        }
    .end annotation

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

    move-result p1

    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i:I

    const/4 v1, 0x3

    if-ne p1, v0, :cond_d

    .line 318
    invoke-virtual {p0, v1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(I)V

    return-void

    .line 321
    :cond_d
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->r:Ljava/lang/ref/WeakReference;

    if-eqz p1, :cond_86

    invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object p1

    if-ne p3, p1, :cond_86

    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->o:Z

    if-nez p1, :cond_1c

    goto :goto_86

    .line 327
    :cond_1c
    iget p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->n:I

    const/4 p3, 0x4

    if-lez p1, :cond_24

    .line 328
    iget p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i:I

    goto :goto_67

    .line 330
    :cond_24
    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b:Z

    if-eqz p1, :cond_45

    .line 1573
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->s:Landroid/view/VelocityTracker;

    const/16 v0, 0x3e8

    iget v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a:F

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

    .line 1574
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->s:Landroid/view/VelocityTracker;

    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->t:I

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

    move-result p1

    .line 330
    invoke-virtual {p0, p2, p1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a(Landroid/view/View;F)Z

    move-result p1

    if-eqz p1, :cond_45

    .line 331
    iget p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->p:I

    const/4 v1, 0x5

    .line 333
    iget-object p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->w:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$a;

    goto :goto_67

    .line 336
    :cond_45
    iget p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->n:I

    if-nez p1, :cond_64

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

    move-result p1

    .line 338
    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i:I

    sub-int v0, p1, v0

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

    move-result v0

    iget v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j:I

    sub-int/2addr p1, v2

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

    move-result p1

    if-ge v0, p1, :cond_61

    .line 339
    iget p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i:I

    goto :goto_67

    .line 342
    :cond_61
    iget p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j:I

    goto :goto_66

    .line 346
    :cond_64
    iget p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j:I

    :goto_66
    const/4 v1, 0x4

    .line 349
    :goto_67
    iget-object p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l:Landroidx/customview/widget/ViewDragHelper;

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

    move-result v0

    invoke-virtual {p3, p2, v0, p1}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z

    move-result p1

    if-eqz p1, :cond_80

    const/4 p1, 0x2

    .line 350
    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(I)V

    .line 351
    new-instance p1, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$b;

    invoke-direct {p1, p0, p2, v1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$b;-><init>(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;Landroid/view/View;I)V

    invoke-static {p2, p1}, Landroidx/core/view/ViewCompat;->postOnAnimation(Landroid/view/View;Ljava/lang/Runnable;)V

    goto :goto_83

    .line 353
    :cond_80
    invoke-virtual {p0, v1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(I)V

    :goto_83
    const/4 p1, 0x0

    .line 355
    iput-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->o:Z

    :cond_86
    :goto_86
    return-void
.end method

.method public onTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/coordinatorlayout/widget/CoordinatorLayout;",
            "TV;",
            "Landroid/view/MotionEvent;",
            ")Z"
        }
    .end annotation

    .line 242
    invoke-virtual {p2}, Landroid/view/View;->isShown()Z

    move-result p1

    const/4 v0, 0x0

    if-nez p1, :cond_8

    return v0

    .line 245
    :cond_8
    invoke-virtual {p3}, Landroid/view/MotionEvent;->getActionMasked()I

    move-result p1

    .line 246
    iget v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c:I

    const/4 v2, 0x1

    if-ne v1, v2, :cond_14

    if-nez p1, :cond_14

    return v2

    .line 249
    :cond_14
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l:Landroidx/customview/widget/ViewDragHelper;

    if-eqz v1, :cond_1b

    .line 250
    invoke-virtual {v1, p3}, Landroidx/customview/widget/ViewDragHelper;->processTouchEvent(Landroid/view/MotionEvent;)V

    :cond_1b
    if-nez p1, :cond_20

    .line 254
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a()V

    .line 256
    :cond_20
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->s:Landroid/view/VelocityTracker;

    if-nez v1, :cond_2a

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

    move-result-object v1

    iput-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->s:Landroid/view/VelocityTracker;

    .line 259
    :cond_2a
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->s:Landroid/view/VelocityTracker;

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

    const/4 v1, 0x2

    if-ne p1, v1, :cond_5a

    .line 262
    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->m:Z

    if-nez p1, :cond_5a

    .line 263
    iget p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->u:I

    int-to-float p1, p1

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

    move-result v1

    sub-float/2addr p1, v1

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

    move-result p1

    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {v1}, Landroidx/customview/widget/ViewDragHelper;->getTouchSlop()I

    move-result v1

    int-to-float v1, v1

    cmpl-float p1, p1, v1

    if-lez p1, :cond_5a

    .line 264
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {p3}, Landroid/view/MotionEvent;->getActionIndex()I

    move-result v1

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

    move-result p3

    invoke-virtual {p1, p2, p3}, Landroidx/customview/widget/ViewDragHelper;->captureChildView(Landroid/view/View;I)V

    .line 267
    :cond_5a
    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->m:Z

    if-nez p1, :cond_5f

    return v2

    :cond_5f
    return v0
.end method