134 lines
3.1 KiB
Smali
134 lines
3.1 KiB
Smali
.class public Le/n/a/f;
|
|
.super Ljava/lang/Object;
|
|
.source "UCropActivity.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView$a;
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/yalantis/ucrop/UCropActivity;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Le/n/a/f;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Le/n/a/f;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v0, v0, Lcom/yalantis/ucrop/UCropActivity;->p:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
invoke-virtual {v0}, Le/n/a/k/a;->e()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(FF)V
|
|
.locals 4
|
|
|
|
const p2, 0x466a6000 # 15000.0f
|
|
|
|
const/4 v0, 0x0
|
|
|
|
cmpl-float v0, p1, v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
iget-object v0, p0, Le/n/a/f;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v0, v0, Lcom/yalantis/ucrop/UCropActivity;->p:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
invoke-virtual {v0}, Le/n/a/k/b;->getCurrentScale()F
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Le/n/a/f;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v2, v2, Lcom/yalantis/ucrop/UCropActivity;->p:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
invoke-virtual {v2}, Le/n/a/k/a;->getMaxScale()F
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, p0, Le/n/a/f;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v3, v3, Lcom/yalantis/ucrop/UCropActivity;->p:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
invoke-virtual {v3}, Le/n/a/k/a;->getMinScale()F
|
|
|
|
move-result v3
|
|
|
|
sub-float/2addr v2, v3
|
|
|
|
div-float/2addr v2, p2
|
|
|
|
mul-float v2, v2, p1
|
|
|
|
add-float/2addr v2, v1
|
|
|
|
invoke-virtual {v0, v2}, Le/n/a/k/a;->b(F)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Le/n/a/f;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v0, v0, Lcom/yalantis/ucrop/UCropActivity;->p:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
invoke-virtual {v0}, Le/n/a/k/b;->getCurrentScale()F
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Le/n/a/f;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v2, v2, Lcom/yalantis/ucrop/UCropActivity;->p:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
invoke-virtual {v2}, Le/n/a/k/a;->getMaxScale()F
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, p0, Le/n/a/f;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v3, v3, Lcom/yalantis/ucrop/UCropActivity;->p:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
invoke-virtual {v3}, Le/n/a/k/a;->getMinScale()F
|
|
|
|
move-result v3
|
|
|
|
sub-float/2addr v2, v3
|
|
|
|
div-float/2addr v2, p2
|
|
|
|
mul-float v2, v2, p1
|
|
|
|
add-float/2addr v2, v1
|
|
|
|
invoke-virtual {v0, v2}, Le/n/a/k/a;->c(F)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Le/n/a/f;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v0, v0, Lcom/yalantis/ucrop/UCropActivity;->p:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
invoke-virtual {v0}, Le/n/a/k/a;->c()V
|
|
|
|
return-void
|
|
.end method
|