BottomDialogNestedScrollLayout.smali

.class public final Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;
.super Landroidx/constraintlayout/widget/ConstraintLayout;
.source "SourceFile"

# interfaces
.implements Landroidx/core/view/NestedScrollingParent;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$b;,
        Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$a;
    }
.end annotation


# static fields
.field public static final a:Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$a;


# instance fields
.field private b:F

.field private c:F

.field private d:Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$b;

.field private e:F


# direct methods
.method static constructor <clinit>()V
    .registers 2

    new-instance v0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$a;-><init>(Lkotlin/f/b/j;)V

    sput-object v0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->a:Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$a;

    return-void
.end method

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

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 22
    invoke-direct {p0, p1}, Landroidx/constraintlayout/widget/ConstraintLayout;-><init>(Landroid/content/Context;)V

    return-void
.end method

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

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 24
    invoke-direct {p0, p1, p2}, Landroidx/constraintlayout/widget/ConstraintLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

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

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

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

    return-void
.end method


# virtual methods
.method public final getNestedScrollCallback()Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$b;
    .registers 2

    .line 18
    iget-object v0, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->d:Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$b;

    return-object v0
.end method

.method public final getSize$App_stable()F
    .registers 2

    .line 20
    iget v0, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->e:F

    return v0
.end method

.method public final onMeasure(II)V
    .registers 3

    .line 100
    invoke-super {p0, p1, p2}, Landroidx/constraintlayout/widget/ConstraintLayout;->onMeasure(II)V

    .line 101
    invoke-virtual {p0}, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->getMeasuredHeight()I

    move-result p1

    int-to-float p1, p1

    const p2, 0x3df5c28f    # 0.12f

    mul-float p1, p1, p2

    iput p1, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->c:F

    return-void
.end method

.method public final onNestedFling(Landroid/view/View;FFZ)Z
    .registers 5

    const-string p2, "target"

    invoke-static {p1, p2}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public final onNestedPreFling(Landroid/view/View;FF)Z
    .registers 4

    const-string p2, "target"

    invoke-static {p1, p2}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public final onNestedPreScroll(Landroid/view/View;II[I)V
    .registers 5

    const-string p2, "target"

    invoke-static {p1, p2}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    const-string p2, "consumed"

    invoke-static {p4, p2}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    if-gez p3, :cond_13

    const/4 p2, -0x1

    .line 45
    invoke-virtual {p1, p2}, Landroid/view/View;->canScrollVertically(I)Z

    move-result p1

    if-eqz p1, :cond_1e

    :cond_13
    if-lez p3, :cond_2a

    invoke-virtual {p0}, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->getTranslationY()F

    move-result p1

    const/4 p2, 0x0

    cmpl-float p1, p1, p2

    if-lez p1, :cond_2a

    :cond_1e
    const/4 p1, 0x1

    .line 47
    aput p3, p4, p1

    .line 48
    iget p1, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->e:F

    int-to-float p2, p3

    sub-float/2addr p1, p2

    iput p1, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->e:F

    .line 49
    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->setTranslationY(F)V

    :cond_2a
    return-void
.end method

.method public final onNestedScroll(Landroid/view/View;IIII)V
    .registers 6

    const-string p2, "target"

    invoke-static {p1, p2}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    return-void
.end method

.method public final onNestedScrollAccepted(Landroid/view/View;Landroid/view/View;I)V
    .registers 4

    const-string p3, "child"

    invoke-static {p1, p3}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    const-string p1, "target"

    invoke-static {p2, p1}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    return-void
.end method

.method public final onStartNestedScroll(Landroid/view/View;Landroid/view/View;I)Z
    .registers 4

    const-string p3, "child"

    invoke-static {p1, p3}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    const-string p1, "target"

    invoke-static {p2, p1}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    const/4 p1, 0x1

    return p1
.end method

.method public final onStopNestedScroll(Landroid/view/View;)V
    .registers 4

    const-string v0, "child"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 62
    iget p1, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->e:F

    const/4 v0, 0x0

    cmpl-float v1, p1, v0

    if-lez v1, :cond_1d

    .line 63
    iget v1, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->c:F

    cmpg-float p1, p1, v1

    if-gez p1, :cond_16

    .line 64
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->setTranslationY(F)V

    goto :goto_1d

    .line 66
    :cond_16
    iget-object p1, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->d:Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$b;

    if-eqz p1, :cond_1d

    invoke-interface {p1}, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$b;->f()V

    .line 69
    :cond_1d
    :goto_1d
    iput v0, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->e:F

    return-void
.end method

.method public final onTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 6

    const-string v0, "event"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

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

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_35

    const/4 v2, 0x0

    if-eq v0, v1, :cond_31

    const/4 v3, 0x2

    if-eq v0, v3, :cond_13

    goto :goto_3b

    .line 78
    :cond_13
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result p1

    iget v0, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->b:F

    sub-float/2addr p1, v0

    cmpl-float v0, p1, v2

    if-lez v0, :cond_3b

    .line 80
    iget v0, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->c:F

    cmpl-float v0, p1, v0

    if-lez v0, :cond_2d

    .line 81
    iget-object p1, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->d:Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$b;

    if-eqz p1, :cond_2b

    invoke-interface {p1}, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$b;->f()V

    :cond_2b
    const/4 p1, 0x0

    return p1

    .line 84
    :cond_2d
    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->setTranslationY(F)V

    goto :goto_3b

    .line 89
    :cond_31
    invoke-virtual {p0, v2}, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->setTranslationY(F)V

    goto :goto_3b

    .line 75
    :cond_35
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result p1

    iput p1, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->b:F

    :cond_3b
    :goto_3b
    return v1
.end method

.method public final setNestedScrollCallback(Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$b;)V
    .registers 2

    .line 18
    iput-object p1, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->d:Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout$b;

    return-void
.end method

.method public final setSize$App_stable(F)V
    .registers 2

    .line 20
    iput p1, p0, Lcom/imo/android/imoim/fragments/BottomDialogNestedScrollLayout;->e:F

    return-void
.end method