PhotoEditorSeekBar.smali
.class public Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;
.super Landroid/view/View;
.source "PhotoEditorSeekBar.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar$PhotoEditorSeekBarDelegate;
}
.end annotation
# instance fields
.field private delegate:Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar$PhotoEditorSeekBarDelegate;
.field private innerPaint:Landroid/graphics/Paint;
.field private maxValue:I
.field private minValue:I
.field private outerPaint:Landroid/graphics/Paint;
.field private pressed:Z
.field private progress:F
.field private thumbDX:I
.field private thumbSize: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 30
invoke-direct {p0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V
.line 15
new-instance v0, Landroid/graphics/Paint;
invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->innerPaint:Landroid/graphics/Paint;
.line 16
new-instance v0, Landroid/graphics/Paint;
const/4 v1, 0x1
invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V
iput-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->outerPaint:Landroid/graphics/Paint;
.line 17
const/high16 v0, 0x41800000 # 16.0f
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v0
iput v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
.line 18
const/4 v0, 0x0
iput v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbDX:I
.line 19
const/4 v1, 0x0
iput v1, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->progress:F
.line 20
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->pressed:Z
.line 32
iget-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->innerPaint:Landroid/graphics/Paint;
const v1, -0xb2b2b3
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
.line 33
iget-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->outerPaint:Landroid/graphics/Paint;
const/4 v1, -0x1
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
.line 34
return-void
.end method
# virtual methods
.method public getProgress()I
.registers 5
.line 100
iget v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->minValue:I
int-to-float v1, v0
iget v2, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->progress:F
iget v3, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->maxValue:I
sub-int/2addr v3, v0
int-to-float v0, v3
mul-float v2, v2, v0
add-float/2addr v1, v2
float-to-int v0, v1
return v0
.end method
.method protected onDraw(Landroid/graphics/Canvas;)V
.registers 19
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 110
move-object/from16 v0, p0
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v1
iget v2, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
sub-int/2addr v1, v2
div-int/lit8 v1, v1, 0x2
.line 111
.local v1, "y":I
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredWidth()I
move-result v2
iget v3, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
sub-int/2addr v2, v3
int-to-float v2, v2
iget v4, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->progress:F
mul-float v2, v2, v4
float-to-int v2, v2
.line 112
.local v2, "thumbX":I
div-int/lit8 v3, v3, 0x2
int-to-float v5, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v3
div-int/lit8 v3, v3, 0x2
const/high16 v10, 0x3f800000 # 1.0f
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
sub-int/2addr v3, v4
int-to-float v6, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredWidth()I
move-result v3
iget v4, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
div-int/lit8 v4, v4, 0x2
sub-int/2addr v3, v4
int-to-float v7, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v3
div-int/lit8 v3, v3, 0x2
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
add-int/2addr v3, v4
int-to-float v8, v3
iget-object v9, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->innerPaint:Landroid/graphics/Paint;
move-object/from16 v4, p1
invoke-virtual/range {v4 .. v9}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 113
iget v3, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->minValue:I
if-nez v3, :cond_71
.line 114
iget v3, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
div-int/lit8 v3, v3, 0x2
int-to-float v5, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v3
div-int/lit8 v3, v3, 0x2
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
sub-int/2addr v3, v4
int-to-float v6, v3
int-to-float v7, v2
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v3
div-int/lit8 v3, v3, 0x2
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
add-int/2addr v3, v4
int-to-float v8, v3
iget-object v9, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->outerPaint:Landroid/graphics/Paint;
move-object/from16 v4, p1
invoke-virtual/range {v4 .. v9}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
goto/16 :goto_126
.line 116
:cond_71
iget v3, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->progress:F
const/high16 v4, 0x3f000000 # 0.5f
cmpl-float v3, v3, v4
if-lez v3, :cond_cf
.line 117
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredWidth()I
move-result v3
div-int/lit8 v3, v3, 0x2
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
sub-int/2addr v3, v4
int-to-float v5, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v3
iget v4, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
sub-int/2addr v3, v4
div-int/lit8 v3, v3, 0x2
int-to-float v6, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredWidth()I
move-result v3
div-int/lit8 v3, v3, 0x2
int-to-float v7, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v3
iget v4, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
add-int/2addr v3, v4
div-int/lit8 v3, v3, 0x2
int-to-float v8, v3
iget-object v9, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->outerPaint:Landroid/graphics/Paint;
move-object/from16 v4, p1
invoke-virtual/range {v4 .. v9}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 118
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredWidth()I
move-result v3
div-int/lit8 v3, v3, 0x2
int-to-float v5, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v3
div-int/lit8 v3, v3, 0x2
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
sub-int/2addr v3, v4
int-to-float v6, v3
int-to-float v7, v2
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v3
div-int/lit8 v3, v3, 0x2
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
add-int/2addr v3, v4
int-to-float v8, v3
iget-object v9, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->outerPaint:Landroid/graphics/Paint;
move-object/from16 v4, p1
invoke-virtual/range {v4 .. v9}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
goto :goto_126
.line 120
:cond_cf
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredWidth()I
move-result v3
div-int/lit8 v3, v3, 0x2
int-to-float v5, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v3
iget v4, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
sub-int/2addr v3, v4
div-int/lit8 v3, v3, 0x2
int-to-float v6, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredWidth()I
move-result v3
div-int/lit8 v3, v3, 0x2
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
add-int/2addr v3, v4
int-to-float v7, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v3
iget v4, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
add-int/2addr v3, v4
div-int/lit8 v3, v3, 0x2
int-to-float v8, v3
iget-object v9, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->outerPaint:Landroid/graphics/Paint;
move-object/from16 v4, p1
invoke-virtual/range {v4 .. v9}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 121
int-to-float v12, v2
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v3
div-int/lit8 v3, v3, 0x2
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
sub-int/2addr v3, v4
int-to-float v13, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredWidth()I
move-result v3
div-int/lit8 v3, v3, 0x2
int-to-float v14, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v3
div-int/lit8 v3, v3, 0x2
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
add-int/2addr v3, v4
int-to-float v15, v3
iget-object v3, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->outerPaint:Landroid/graphics/Paint;
move-object/from16 v11, p1
move-object/from16 v16, v3
invoke-virtual/range {v11 .. v16}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 124
:goto_126
iget v3, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
div-int/lit8 v4, v3, 0x2
add-int/2addr v4, v2
int-to-float v4, v4
div-int/lit8 v5, v3, 0x2
add-int/2addr v5, v1
int-to-float v5, v5
div-int/lit8 v3, v3, 0x2
int-to-float v3, v3
iget-object v6, v0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->outerPaint:Landroid/graphics/Paint;
move-object/from16 v7, p1
invoke-virtual {v7, v4, v5, v3, v6}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V
.line 125
return-void
.end method
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
.registers 11
.param p1, "event" # Landroid/view/MotionEvent;
.line 42
const/4 v0, 0x0
if-nez p1, :cond_4
.line 43
return v0
.line 45
:cond_4
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v1
.line 46
.local v1, "x":F
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v2
.line 47
.local v2, "y":F
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredWidth()I
move-result v3
iget v4, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
sub-int/2addr v3, v4
int-to-float v3, v3
iget v4, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->progress:F
mul-float v3, v3, v4
float-to-int v3, v3
int-to-float v3, v3
.line 48
.local v3, "thumbX":F
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v4
const/4 v5, 0x0
const/4 v6, 0x2
const/4 v7, 0x1
if-nez v4, :cond_5a
.line 49
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v4
iget v8, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
sub-int/2addr v4, v8
div-int/2addr v4, v6
.line 50
.local v4, "additionWidth":I
int-to-float v6, v4
sub-float v6, v3, v6
cmpg-float v6, v6, v1
if-gtz v6, :cond_59
int-to-float v6, v8
add-float/2addr v6, v3
int-to-float v8, v4
add-float/2addr v6, v8
cmpg-float v6, v1, v6
if-gtz v6, :cond_59
cmpl-float v5, v2, v5
if-ltz v5, :cond_59
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredHeight()I
move-result v5
int-to-float v5, v5
cmpg-float v5, v2, v5
if-gtz v5, :cond_59
.line 51
iput-boolean v7, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->pressed:Z
.line 52
sub-float v0, v1, v3
float-to-int v0, v0
iput v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbDX:I
.line 53
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getParent()Landroid/view/ViewParent;
move-result-object v0
invoke-interface {v0, v7}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V
.line 54
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->invalidate()V
.line 55
return v7
.line 57
.end local v4 # "additionWidth":I
:cond_59
goto :goto_c2
:cond_5a
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v4
if-eq v4, v7, :cond_b8
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v4
const/4 v8, 0x3
if-ne v4, v8, :cond_68
goto :goto_b8
.line 63
:cond_68
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v4
if-ne v4, v6, :cond_c2
.line 64
iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->pressed:Z
if-eqz v4, :cond_c2
.line 65
iget v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbDX:I
int-to-float v0, v0
sub-float v0, v1, v0
float-to-int v0, v0
int-to-float v0, v0
.line 66
.end local v3 # "thumbX":F
.local v0, "thumbX":F
cmpg-float v3, v0, v5
if-gez v3, :cond_7f
.line 67
const/4 v0, 0x0
goto :goto_93
.line 68
:cond_7f
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredWidth()I
move-result v3
iget v4, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
sub-int/2addr v3, v4
int-to-float v3, v3
cmpl-float v3, v0, v3
if-lez v3, :cond_93
.line 69
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredWidth()I
move-result v3
iget v4, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
sub-int/2addr v3, v4
int-to-float v0, v3
.line 71
:cond_93
:goto_93
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getMeasuredWidth()I
move-result v3
iget v4, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->thumbSize:I
sub-int/2addr v3, v4
int-to-float v3, v3
div-float v3, v0, v3
iput v3, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->progress:F
.line 72
iget-object v3, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->delegate:Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar$PhotoEditorSeekBarDelegate;
if-eqz v3, :cond_b4
.line 73
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getTag()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/Integer;
invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I
move-result v4
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getProgress()I
move-result v5
invoke-interface {v3, v4, v5}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar$PhotoEditorSeekBarDelegate;->onProgressChanged(II)V
.line 75
:cond_b4
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->invalidate()V
.line 76
return v7
.line 58
.end local v0 # "thumbX":F
.restart local v3 # "thumbX":F
:cond_b8
:goto_b8
iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->pressed:Z
if-eqz v4, :cond_c2
.line 59
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->pressed:Z
.line 60
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->invalidate()V
.line 61
return v7
.line 79
:cond_c2
:goto_c2
return v0
.end method
.method public setDelegate(Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar$PhotoEditorSeekBarDelegate;)V
.registers 2
.param p1, "delegate" # Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar$PhotoEditorSeekBarDelegate;
.line 37
iput-object p1, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->delegate:Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar$PhotoEditorSeekBarDelegate;
.line 38
return-void
.end method
.method public setMinMax(II)V
.registers 3
.param p1, "min" # I
.param p2, "max" # I
.line 104
iput p1, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->minValue:I
.line 105
iput p2, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->maxValue:I
.line 106
return-void
.end method
.method public setProgress(I)V
.registers 3
.param p1, "progress" # I
.line 83
const/4 v0, 0x1
invoke-virtual {p0, p1, v0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->setProgress(IZ)V
.line 84
return-void
.end method
.method public setProgress(IZ)V
.registers 6
.param p1, "progress" # I
.param p2, "notify" # Z
.line 87
iget v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->minValue:I
if-ge p1, v0, :cond_7
.line 88
iget p1, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->minValue:I
goto :goto_d
.line 89
:cond_7
iget v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->maxValue:I
if-le p1, v0, :cond_d
.line 90
iget p1, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->maxValue:I
.line 92
:cond_d
:goto_d
iget v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->minValue:I
sub-int v1, p1, v0
int-to-float v1, v1
iget v2, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->maxValue:I
sub-int/2addr v2, v0
int-to-float v0, v2
div-float/2addr v1, v0
iput v1, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->progress:F
.line 93
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->invalidate()V
.line 94
if-eqz p2, :cond_33
iget-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->delegate:Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar$PhotoEditorSeekBarDelegate;
if-eqz v0, :cond_33
.line 95
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getTag()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar;->getProgress()I
move-result v2
invoke-interface {v0, v1, v2}, Lim/tpelyyftgw/ui/components/PhotoEditorSeekBar$PhotoEditorSeekBarDelegate;->onProgressChanged(II)V
.line 97
:cond_33
return-void
.end method