CustomSpeedLinearLayoutManager.smali

.class public Lhurriyet/mobil/android/hurriyet/utils/CustomSpeedLinearLayoutManager;
.super Landroidx/recyclerview/widget/LinearLayoutManager;
.source "CustomSpeedLinearLayoutManager.java"


# instance fields
.field private scrollSpeedInMsPerInch:F


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

    .line 20
    invoke-direct {p0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V

    const/high16 p1, 0x43960000    # 300.0f

    .line 17
    iput p1, p0, Lhurriyet/mobil/android/hurriyet/utils/CustomSpeedLinearLayoutManager;->scrollSpeedInMsPerInch:F

    return-void
.end method

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

    .line 24
    invoke-direct {p0, p1, p2, p3}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;IZ)V

    const/high16 p1, 0x43960000    # 300.0f

    .line 17
    iput p1, p0, Lhurriyet/mobil/android/hurriyet/utils/CustomSpeedLinearLayoutManager;->scrollSpeedInMsPerInch:F

    return-void
.end method

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

    .line 28
    invoke-direct {p0, p1, p2, p3, p4}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V

    const/high16 p1, 0x43960000    # 300.0f

    .line 17
    iput p1, p0, Lhurriyet/mobil/android/hurriyet/utils/CustomSpeedLinearLayoutManager;->scrollSpeedInMsPerInch:F

    return-void
.end method

.method static synthetic access$000(Lhurriyet/mobil/android/hurriyet/utils/CustomSpeedLinearLayoutManager;)F
    .registers 1

    .line 15
    iget p0, p0, Lhurriyet/mobil/android/hurriyet/utils/CustomSpeedLinearLayoutManager;->scrollSpeedInMsPerInch:F

    return p0
.end method


# virtual methods
.method public setScrollSpeedInMsPerInch(I)V
    .registers 2

    int-to-float p1, p1

    .line 35
    iput p1, p0, Lhurriyet/mobil/android/hurriyet/utils/CustomSpeedLinearLayoutManager;->scrollSpeedInMsPerInch:F

    return-void
.end method

.method public smoothScrollToPosition(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$State;I)V
    .registers 4

    .line 41
    new-instance p2, Lhurriyet/mobil/android/hurriyet/utils/CustomSpeedLinearLayoutManager$1;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-direct {p2, p0, p1}, Lhurriyet/mobil/android/hurriyet/utils/CustomSpeedLinearLayoutManager$1;-><init>(Lhurriyet/mobil/android/hurriyet/utils/CustomSpeedLinearLayoutManager;Landroid/content/Context;)V

    .line 54
    invoke-virtual {p2, p3}, Landroidx/recyclerview/widget/LinearSmoothScroller;->setTargetPosition(I)V

    .line 55
    invoke-virtual {p0, p2}, Lhurriyet/mobil/android/hurriyet/utils/CustomSpeedLinearLayoutManager;->startSmoothScroll(Landroidx/recyclerview/widget/RecyclerView$SmoothScroller;)V

    return-void
.end method