SmoothScrollLLM$1.smali

.class Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM$1;
.super Landroidx/recyclerview/widget/LinearSmoothScroller;
.source "SmoothScrollLLM.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM;-><init>(Landroid/content/Context;)V
.end annotation

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


# instance fields
.field final synthetic this$0:Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM;


# direct methods
.method constructor <init>(Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM;Landroid/content/Context;)V
    .registers 3

    .line 38
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM$1;->this$0:Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM;

    invoke-direct {p0, p2}, Landroidx/recyclerview/widget/LinearSmoothScroller;-><init>(Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method public calculateDxToMakeVisible(Landroid/view/View;I)I
    .registers 3

    const/4 p2, -0x1

    .line 52
    invoke-super {p0, p1, p2}, Landroidx/recyclerview/widget/LinearSmoothScroller;->calculateDxToMakeVisible(Landroid/view/View;I)I

    move-result p1

    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM$1;->this$0:Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM;

    # getter for: Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM;->scrollOffset:I
    invoke-static {p2}, Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM;->access$000(Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM;)I

    move-result p2

    add-int/2addr p1, p2

    const/16 p2, 0x14

    invoke-static {p2}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetHelper;->dpToPx(I)I

    move-result p2

    sub-int/2addr p1, p2

    return p1
.end method

.method protected calculateSpeedPerPixel(Landroid/util/DisplayMetrics;)F
    .registers 3

    .line 47
    iget p1, p1, Landroid/util/DisplayMetrics;->densityDpi:I

    int-to-float p1, p1

    const/high16 v0, 0x42480000    # 50.0f

    div-float/2addr v0, p1

    return v0
.end method

.method public computeScrollVectorForPosition(I)Landroid/graphics/PointF;
    .registers 3

    .line 42
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM$1;->this$0:Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM;

    invoke-virtual {v0, p1}, Lhurriyet/mobil/android/hurriyet/utils/SmoothScrollLLM;->computeScrollVectorForPosition(I)Landroid/graphics/PointF;

    move-result-object p1

    return-object p1
.end method