SeekBar.smali

.class public Lim/tpelyyftgw/ui/components/SeekBar;
.super Ljava/lang/Object;
.source "SeekBar.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;
    }
.end annotation


# static fields
.field private static paint:Landroid/graphics/Paint;

.field private static thumbWidth:I


# instance fields
.field private backgroundColor:I

.field private backgroundSelectedColor:I

.field private bufferedProgress:F

.field private cacheColor:I

.field private circleColor:I

.field private delegate:Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;

.field private draggingThumbX:I

.field private height:I

.field private lineHeight:I

.field private pressed:Z

.field private progressColor:I

.field private rect:Landroid/graphics/RectF;

.field private selected:Z

.field private thumbDX:I

.field private thumbX:I

.field private width:I


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

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;

    .line 41
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 24
    const/4 v0, 0x0

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbX:I

    .line 25
    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    .line 26
    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbDX:I

    .line 27
    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    .line 36
    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->rect:Landroid/graphics/RectF;

    .line 37
    const/high16 v0, 0x40000000    # 2.0f

    invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->lineHeight:I

    .line 42
    sget-object v0, Lim/tpelyyftgw/ui/components/SeekBar;->paint:Landroid/graphics/Paint;

    if-nez v0, :cond_2f

    .line 43
    new-instance v0, Landroid/graphics/Paint;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V

    sput-object v0, Lim/tpelyyftgw/ui/components/SeekBar;->paint:Landroid/graphics/Paint;

    .line 44
    const/high16 v0, 0x41c00000    # 24.0f

    invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v0

    sput v0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    .line 46
    :cond_2f
    return-void
.end method


# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
    .registers 11
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .line 179
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->rect:Landroid/graphics/RectF;

    sget v1, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    div-int/lit8 v2, v1, 0x2

    int-to-float v2, v2

    iget v3, p0, Lim/tpelyyftgw/ui/components/SeekBar;->height:I

    div-int/lit8 v4, v3, 0x2

    iget v5, p0, Lim/tpelyyftgw/ui/components/SeekBar;->lineHeight:I

    div-int/lit8 v6, v5, 0x2

    sub-int/2addr v4, v6

    int-to-float v4, v4

    iget v6, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    div-int/lit8 v1, v1, 0x2

    sub-int/2addr v6, v1

    int-to-float v1, v6

    div-int/lit8 v3, v3, 0x2

    div-int/lit8 v5, v5, 0x2

    add-int/2addr v3, v5

    int-to-float v3, v3

    invoke-virtual {v0, v2, v4, v1, v3}, Landroid/graphics/RectF;->set(FFFF)V

    .line 180
    sget-object v0, Lim/tpelyyftgw/ui/components/SeekBar;->paint:Landroid/graphics/Paint;

    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->selected:Z

    if-eqz v1, :cond_29

    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->backgroundSelectedColor:I

    goto :goto_2b

    :cond_29
    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->backgroundColor:I

    :goto_2b
    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 181
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->rect:Landroid/graphics/RectF;

    sget v1, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    div-int/lit8 v2, v1, 0x2

    int-to-float v2, v2

    div-int/lit8 v1, v1, 0x2

    int-to-float v1, v1

    sget-object v3, Lim/tpelyyftgw/ui/components/SeekBar;->paint:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v2, v1, v3}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V

    .line 182
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->bufferedProgress:F

    const/4 v1, 0x0

    cmpl-float v0, v0, v1

    if-lez v0, :cond_87

    .line 183
    sget-object v0, Lim/tpelyyftgw/ui/components/SeekBar;->paint:Landroid/graphics/Paint;

    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->selected:Z

    if-eqz v1, :cond_4d

    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->backgroundSelectedColor:I

    goto :goto_4f

    :cond_4d
    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->cacheColor:I

    :goto_4f
    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 184
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->rect:Landroid/graphics/RectF;

    sget v1, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    div-int/lit8 v2, v1, 0x2

    int-to-float v2, v2

    iget v3, p0, Lim/tpelyyftgw/ui/components/SeekBar;->height:I

    div-int/lit8 v4, v3, 0x2

    iget v5, p0, Lim/tpelyyftgw/ui/components/SeekBar;->lineHeight:I

    div-int/lit8 v6, v5, 0x2

    sub-int/2addr v4, v6

    int-to-float v4, v4

    div-int/lit8 v6, v1, 0x2

    int-to-float v6, v6

    iget v7, p0, Lim/tpelyyftgw/ui/components/SeekBar;->bufferedProgress:F

    iget v8, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    sub-int/2addr v8, v1

    int-to-float v1, v8

    mul-float v7, v7, v1

    add-float/2addr v6, v7

    div-int/lit8 v3, v3, 0x2

    div-int/lit8 v5, v5, 0x2

    add-int/2addr v3, v5

    int-to-float v1, v3

    invoke-virtual {v0, v2, v4, v6, v1}, Landroid/graphics/RectF;->set(FFFF)V

    .line 185
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->rect:Landroid/graphics/RectF;

    sget v1, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    div-int/lit8 v2, v1, 0x2

    int-to-float v2, v2

    div-int/lit8 v1, v1, 0x2

    int-to-float v1, v1

    sget-object v3, Lim/tpelyyftgw/ui/components/SeekBar;->paint:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v2, v1, v3}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V

    .line 187
    :cond_87
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->rect:Landroid/graphics/RectF;

    sget v1, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    div-int/lit8 v2, v1, 0x2

    int-to-float v2, v2

    iget v3, p0, Lim/tpelyyftgw/ui/components/SeekBar;->height:I

    div-int/lit8 v4, v3, 0x2

    iget v5, p0, Lim/tpelyyftgw/ui/components/SeekBar;->lineHeight:I

    div-int/lit8 v6, v5, 0x2

    sub-int/2addr v4, v6

    int-to-float v4, v4

    div-int/lit8 v1, v1, 0x2

    iget v6, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbX:I

    add-int/2addr v1, v6

    int-to-float v1, v1

    div-int/lit8 v3, v3, 0x2

    div-int/lit8 v5, v5, 0x2

    add-int/2addr v3, v5

    int-to-float v3, v3

    invoke-virtual {v0, v2, v4, v1, v3}, Landroid/graphics/RectF;->set(FFFF)V

    .line 188
    sget-object v0, Lim/tpelyyftgw/ui/components/SeekBar;->paint:Landroid/graphics/Paint;

    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->progressColor:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 189
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->rect:Landroid/graphics/RectF;

    sget v1, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    div-int/lit8 v2, v1, 0x2

    int-to-float v2, v2

    div-int/lit8 v1, v1, 0x2

    int-to-float v1, v1

    sget-object v3, Lim/tpelyyftgw/ui/components/SeekBar;->paint:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v2, v1, v3}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V

    .line 190
    sget-object v0, Lim/tpelyyftgw/ui/components/SeekBar;->paint:Landroid/graphics/Paint;

    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->circleColor:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 191
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    if-eqz v0, :cond_cb

    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    goto :goto_cd

    :cond_cb
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbX:I

    :goto_cd
    sget v1, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    div-int/lit8 v1, v1, 0x2

    add-int/2addr v0, v1

    int-to-float v0, v0

    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->height:I

    div-int/lit8 v1, v1, 0x2

    int-to-float v1, v1

    iget-boolean v2, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    if-eqz v2, :cond_df

    const/high16 v2, 0x41000000    # 8.0f

    goto :goto_e1

    :cond_df
    const/high16 v2, 0x40c00000    # 6.0f

    :goto_e1
    invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v2

    int-to-float v2, v2

    sget-object v3, Lim/tpelyyftgw/ui/components/SeekBar;->paint:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    .line 192
    return-void
.end method

.method public getProgress()F
    .registers 4

    .line 150
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbX:I

    int-to-float v0, v0

    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    sget v2, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    sub-int/2addr v1, v2

    int-to-float v1, v1

    div-float/2addr v0, v1

    return v0
.end method

.method public getThumbX()I
    .registers 3

    .line 154
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    if-eqz v0, :cond_7

    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    goto :goto_9

    :cond_7
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbX:I

    :goto_9
    sget v1, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    div-int/lit8 v1, v1, 0x2

    add-int/2addr v0, v1

    return v0
.end method

.method public getWidth()I
    .registers 3

    .line 171
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    sget v1, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    sub-int/2addr v0, v1

    return v0
.end method

.method public isDragging()Z
    .registers 2

    .line 158
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    return v0
.end method

.method public onTouch(IFF)Z
    .registers 11
    .param p1, "action"    # I
    .param p2, "x"    # F
    .param p3, "y"    # F

    .line 53
    const/4 v0, 0x2

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-nez p1, :cond_32

    .line 54
    iget v3, p0, Lim/tpelyyftgw/ui/components/SeekBar;->height:I

    sget v4, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    sub-int v5, v3, v4

    div-int/2addr v5, v0

    .line 55
    .local v5, "additionWidth":I
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbX:I

    sub-int v6, v0, v5

    int-to-float v6, v6

    cmpg-float v6, v6, p2

    if-gtz v6, :cond_31

    add-int/2addr v4, v0

    add-int/2addr v4, v5

    int-to-float v4, v4

    cmpg-float v4, p2, v4

    if-gtz v4, :cond_31

    const/4 v4, 0x0

    cmpl-float v4, p3, v4

    if-ltz v4, :cond_31

    int-to-float v3, v3

    cmpg-float v3, p3, v3

    if-gtz v3, :cond_31

    .line 56
    iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    .line 57
    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    .line 58
    int-to-float v0, v0

    sub-float v0, p2, v0

    float-to-int v0, v0

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbDX:I

    .line 59
    return v2

    .line 61
    .end local v5    # "additionWidth":I
    :cond_31
    goto :goto_84

    :cond_32
    if-eq p1, v2, :cond_68

    const/4 v3, 0x3

    if-ne p1, v3, :cond_38

    goto :goto_68

    .line 70
    :cond_38
    if-ne p1, v0, :cond_84

    .line 71
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    if-eqz v0, :cond_84

    .line 72
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbDX:I

    int-to-float v0, v0

    sub-float v0, p2, v0

    float-to-int v0, v0

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    .line 73
    if-gez v0, :cond_4b

    .line 74
    iput v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    goto :goto_56

    .line 75
    :cond_4b
    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    sget v3, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    sub-int v4, v1, v3

    if-le v0, v4, :cond_56

    .line 76
    sub-int/2addr v1, v3

    iput v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    .line 78
    :cond_56
    :goto_56
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->delegate:Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;

    if-eqz v0, :cond_67

    .line 79
    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    int-to-float v1, v1

    iget v3, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    sget v4, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    sub-int/2addr v3, v4

    int-to-float v3, v3

    div-float/2addr v1, v3

    invoke-interface {v0, v1}, Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;->onSeekBarContinuousDrag(F)V

    .line 81
    :cond_67
    return v2

    .line 62
    :cond_68
    :goto_68
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    if-eqz v0, :cond_84

    .line 63
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbX:I

    .line 64
    if-ne p1, v2, :cond_81

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/SeekBar;->delegate:Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;

    if-eqz v3, :cond_81

    .line 65
    int-to-float v0, v0

    iget v4, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    sget v5, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    sub-int/2addr v4, v5

    int-to-float v4, v4

    div-float/2addr v0, v4

    invoke-interface {v3, v0}, Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;->onSeekBarDrag(F)V

    .line 67
    :cond_81
    iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    .line 68
    return v2

    .line 84
    :cond_84
    :goto_84
    return v1
.end method

.method public onTouchNew(IFF)Z
    .registers 12
    .param p1, "action"    # I
    .param p2, "x"    # F
    .param p3, "y"    # F

    .line 88
    const/4 v0, 0x0

    const/4 v1, 0x2

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-nez p1, :cond_32

    .line 89
    iget v4, p0, Lim/tpelyyftgw/ui/components/SeekBar;->height:I

    sget v5, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    sub-int v6, v4, v5

    div-int/2addr v6, v1

    .line 90
    .local v6, "additionWidth":I
    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbX:I

    sub-int v7, v1, v6

    int-to-float v7, v7

    cmpg-float v7, v7, p2

    if-gtz v7, :cond_31

    add-int/2addr v5, v1

    add-int/2addr v5, v6

    int-to-float v5, v5

    cmpg-float v5, p2, v5

    if-gtz v5, :cond_31

    cmpl-float v0, p3, v0

    if-ltz v0, :cond_31

    int-to-float v0, v4

    cmpg-float v0, p3, v0

    if-gtz v0, :cond_31

    .line 91
    iput-boolean v3, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    .line 92
    iput v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    .line 93
    int-to-float v0, v1

    sub-float v0, p2, v0

    float-to-int v0, v0

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbDX:I

    .line 94
    return v3

    .line 96
    .end local v6    # "additionWidth":I
    :cond_31
    goto :goto_9b

    :cond_32
    if-eq p1, v3, :cond_68

    const/4 v4, 0x3

    if-ne p1, v4, :cond_38

    goto :goto_68

    .line 111
    :cond_38
    if-ne p1, v1, :cond_9b

    .line 112
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    if-eqz v0, :cond_9b

    .line 113
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbDX:I

    int-to-float v0, v0

    sub-float v0, p2, v0

    float-to-int v0, v0

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    .line 114
    if-gez v0, :cond_4b

    .line 115
    iput v2, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    goto :goto_56

    .line 116
    :cond_4b
    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    sget v2, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    sub-int v4, v1, v2

    if-le v0, v4, :cond_56

    .line 117
    sub-int/2addr v1, v2

    iput v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    .line 119
    :cond_56
    :goto_56
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->delegate:Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;

    if-eqz v0, :cond_67

    .line 120
    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    int-to-float v1, v1

    iget v2, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    sget v4, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    sub-int/2addr v2, v4

    int-to-float v2, v2

    div-float/2addr v1, v2

    invoke-interface {v0, v1}, Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;->onSeekBarContinuousDrag(F)V

    .line 122
    :cond_67
    return v3

    .line 97
    :cond_68
    :goto_68
    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    if-eqz v1, :cond_84

    .line 98
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->draggingThumbX:I

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbX:I

    .line 99
    if-ne p1, v3, :cond_81

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->delegate:Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;

    if-eqz v1, :cond_81

    .line 100
    int-to-float v0, v0

    iget v4, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    sget v5, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    sub-int/2addr v4, v5

    int-to-float v4, v4

    div-float/2addr v0, v4

    invoke-interface {v1, v0}, Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;->onSeekBarDrag(F)V

    .line 102
    :cond_81
    iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/SeekBar;->pressed:Z

    .line 103
    return v3

    .line 105
    :cond_84
    cmpl-float v0, p2, v0

    if-lez v0, :cond_9b

    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    int-to-float v1, v0

    cmpg-float v1, p2, v1

    if-gez v1, :cond_9b

    .line 106
    if-ne p1, v3, :cond_9b

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->delegate:Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;

    if-eqz v1, :cond_9b

    .line 107
    int-to-float v0, v0

    div-float v0, p2, v0

    invoke-interface {v1, v0}, Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;->onSeekBarDrag(F)V

    .line 125
    :cond_9b
    :goto_9b
    return v2
.end method

.method public setBufferedProgress(F)V
    .registers 2
    .param p1, "value"    # F

    .line 146
    iput p1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->bufferedProgress:F

    .line 147
    return-void
.end method

.method public setColors(IIIII)V
    .registers 6
    .param p1, "background"    # I
    .param p2, "cache"    # I
    .param p3, "progress"    # I
    .param p4, "circle"    # I
    .param p5, "selected"    # I

    .line 129
    iput p1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->backgroundColor:I

    .line 130
    iput p2, p0, Lim/tpelyyftgw/ui/components/SeekBar;->cacheColor:I

    .line 131
    iput p4, p0, Lim/tpelyyftgw/ui/components/SeekBar;->circleColor:I

    .line 132
    iput p3, p0, Lim/tpelyyftgw/ui/components/SeekBar;->progressColor:I

    .line 133
    iput p5, p0, Lim/tpelyyftgw/ui/components/SeekBar;->backgroundSelectedColor:I

    .line 134
    return-void
.end method

.method public setDelegate(Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;)V
    .registers 2
    .param p1, "seekBarDelegate"    # Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;

    .line 49
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->delegate:Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;

    .line 50
    return-void
.end method

.method public setLineHeight(I)V
    .registers 2
    .param p1, "value"    # I

    .line 175
    iput p1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->lineHeight:I

    .line 176
    return-void
.end method

.method public setProgress(F)V
    .registers 6
    .param p1, "progress"    # F

    .line 137
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    sget v1, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    sub-int/2addr v0, v1

    int-to-float v0, v0

    mul-float v0, v0, p1

    float-to-double v0, v0

    invoke-static {v0, v1}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v0

    double-to-int v0, v0

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbX:I

    .line 138
    if-gez v0, :cond_16

    .line 139
    const/4 v0, 0x0

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbX:I

    goto :goto_21

    .line 140
    :cond_16
    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    sget v2, Lim/tpelyyftgw/ui/components/SeekBar;->thumbWidth:I

    sub-int v3, v1, v2

    if-le v0, v3, :cond_21

    .line 141
    sub-int/2addr v1, v2

    iput v1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->thumbX:I

    .line 143
    :cond_21
    :goto_21
    return-void
.end method

.method public setSelected(Z)V
    .registers 2
    .param p1, "value"    # Z

    .line 162
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->selected:Z

    .line 163
    return-void
.end method

.method public setSize(II)V
    .registers 3
    .param p1, "w"    # I
    .param p2, "h"    # I

    .line 166
    iput p1, p0, Lim/tpelyyftgw/ui/components/SeekBar;->width:I

    .line 167
    iput p2, p0, Lim/tpelyyftgw/ui/components/SeekBar;->height:I

    .line 168
    return-void
.end method