LikeBottomBehavior$2.smali
.class final Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;
.super Landroidx/customview/widget/ViewDragHelper$Callback;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
# direct methods
.method constructor <init>(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)V
.registers 2
.line 596
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-direct {p0}, Landroidx/customview/widget/ViewDragHelper$Callback;-><init>()V
return-void
.end method
# virtual methods
.method public final clampViewPositionHorizontal(Landroid/view/View;II)I
.registers 4
.line 670
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
move-result p1
return p1
.end method
.method public final clampViewPositionVertical(Landroid/view/View;II)I
.registers 4
.line 665
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->g(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result p1
iget-object p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p3}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->h(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Z
move-result p3
if-eqz p3, :cond_15
iget-object p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p3}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result p3
goto :goto_1b
:cond_15
iget-object p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p3}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->k(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result p3
:goto_1b
invoke-static {p2, p1, p3}, Landroidx/core/math/MathUtils;->clamp(III)I
move-result p1
return p1
.end method
.method public final getViewVerticalDragRange(Landroid/view/View;)I
.registers 3
.line 675
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->h(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Z
move-result p1
if-eqz p1, :cond_16
.line 676
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result p1
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->g(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result v0
:goto_14
sub-int/2addr p1, v0
return p1
.line 678
:cond_16
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->k(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result p1
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->g(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result v0
goto :goto_14
.end method
.method public final onViewDragStateChanged(I)V
.registers 3
const/4 v0, 0x1
if-ne p1, v0, :cond_8
.line 624
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-virtual {p1, v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(I)V
:cond_8
return-void
.end method
.method public final onViewPositionChanged(Landroid/view/View;IIII)V
.registers 6
.line 618
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-virtual {p1, p3}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->d(I)V
return-void
.end method
.method public final onViewReleased(Landroid/view/View;FF)V
.registers 7
const/4 p2, 0x4
const/4 v0, 0x3
const/4 v1, 0x0
cmpg-float v2, p3, v1
if-gez v2, :cond_e
.line 633
iget-object p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->g(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result p2
goto :goto_6b
.line 635
:cond_e
iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {v2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->h(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Z
move-result v2
if-eqz v2, :cond_34
iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-virtual {v2, p1, p3}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a(Landroid/view/View;F)Z
move-result v2
if-eqz v2, :cond_34
.line 636
iget-object p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->i(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result p2
const/4 p3, 0x5
.line 638
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$a;
move-result-object v0
if-eqz v0, :cond_32
.line 639
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->j(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$a;
:cond_32
const/4 v0, 0x5
goto :goto_6b
:cond_34
cmpl-float p3, p3, v1
if-nez p3, :cond_63
.line 642
invoke-virtual {p1}, Landroid/view/View;->getTop()I
move-result p3
.line 643
iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {v1}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->g(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result v1
sub-int v1, p3, v1
invoke-static {v1}, Ljava/lang/Math;->abs(I)I
move-result v1
iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {v2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->k(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result v2
sub-int/2addr p3, v2
invoke-static {p3}, Ljava/lang/Math;->abs(I)I
move-result p3
if-ge v1, p3, :cond_5c
.line 644
iget-object p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->g(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result p2
goto :goto_6b
.line 647
:cond_5c
iget-object p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p3}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->k(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result p3
goto :goto_69
.line 651
:cond_63
iget-object p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p3}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->k(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result p3
:goto_69
move p2, p3
const/4 v0, 0x4
.line 654
:goto_6b
iget-object p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p3}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->l(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Landroidx/customview/widget/ViewDragHelper;
move-result-object p3
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
move-result v1
invoke-virtual {p3, v1, p2}, Landroidx/customview/widget/ViewDragHelper;->settleCapturedViewAt(II)Z
move-result p2
if-eqz p2, :cond_8c
.line 655
iget-object p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
const/4 p3, 0x2
invoke-virtual {p2, p3}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(I)V
.line 656
new-instance p2, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$b;
iget-object p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-direct {p2, p3, p1, v0}, 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, p2}, Landroidx/core/view/ViewCompat;->postOnAnimation(Landroid/view/View;Ljava/lang/Runnable;)V
return-void
.line 659
:cond_8c
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-virtual {p1, v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(I)V
return-void
.end method
.method public final tryCaptureView(Landroid/view/View;I)Z
.registers 7
.line 600
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result v0
const/4 v1, 0x1
const/4 v2, 0x0
if-ne v0, v1, :cond_b
return v2
.line 603
:cond_b
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->b(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Z
move-result v0
if-eqz v0, :cond_14
return v2
.line 606
:cond_14
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->a(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result v0
const/4 v3, 0x3
if-ne v0, v3, :cond_3b
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->c(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)I
move-result v0
if-ne v0, p2, :cond_3b
.line 607
iget-object p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->d(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Ljava/lang/ref/WeakReference;
move-result-object p2
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p2
check-cast p2, Landroid/view/View;
if-eqz p2, :cond_3b
const/4 v0, -0x1
.line 608
invoke-virtual {p2, v0}, Landroid/view/View;->canScrollVertically(I)Z
move-result p2
if-eqz p2, :cond_3b
return v2
.line 613
:cond_3b
iget-object p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->e(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Ljava/lang/ref/WeakReference;
move-result-object p2
if-eqz p2, :cond_4c
iget-object p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior$2;->a:Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;
invoke-static {p2}, Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;->f(Lcom/imo/android/imoim/feeds/ui/detail/widgets/behavior/LikeBottomBehavior;)Landroid/view/View;
move-result-object p2
if-ne p2, p1, :cond_4c
return v1
:cond_4c
return v2
.end method