2019-07-24 11:27:29 +00:00
|
|
|
.class final Lcom/yalantis/ucrop/UCropActivity$6;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "UCropActivity.java"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lcom/yalantis/ucrop/view/widget/HorizontalProgressWheelView$a;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x0
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-10-28 23:46:47 +00:00
|
|
|
.field final synthetic aYF:Lcom/yalantis/ucrop/UCropActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method constructor <init>(Lcom/yalantis/ucrop/UCropActivity;)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iput-object p1, p0, Lcom/yalantis/ucrop/UCropActivity$6;->aYF:Lcom/yalantis/ucrop/UCropActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-10-07 23:23:22 +00:00
|
|
|
.method public final A(F)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 5
|
|
|
|
|
|
|
|
const v0, 0x466a6000 # 15000.0f
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
cmpl-float v1, p1, v1
|
|
|
|
|
|
|
|
if-lez v1, :cond_0
|
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object v1, p0, Lcom/yalantis/ucrop/UCropActivity$6;->aYF:Lcom/yalantis/ucrop/UCropActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v1}, Lcom/yalantis/ucrop/UCropActivity;->d(Lcom/yalantis/ucrop/UCropActivity;)Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object v2, p0, Lcom/yalantis/ucrop/UCropActivity$6;->aYF:Lcom/yalantis/ucrop/UCropActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v2}, Lcom/yalantis/ucrop/UCropActivity;->d(Lcom/yalantis/ucrop/UCropActivity;)Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/yalantis/ucrop/view/GestureCropImageView;->getCurrentScale()F
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object v3, p0, Lcom/yalantis/ucrop/UCropActivity$6;->aYF:Lcom/yalantis/ucrop/UCropActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v3}, Lcom/yalantis/ucrop/UCropActivity;->d(Lcom/yalantis/ucrop/UCropActivity;)Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/yalantis/ucrop/view/GestureCropImageView;->getMaxScale()F
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object v4, p0, Lcom/yalantis/ucrop/UCropActivity$6;->aYF:Lcom/yalantis/ucrop/UCropActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v4}, Lcom/yalantis/ucrop/UCropActivity;->d(Lcom/yalantis/ucrop/UCropActivity;)Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/yalantis/ucrop/view/GestureCropImageView;->getMinScale()F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
sub-float/2addr v3, v4
|
|
|
|
|
|
|
|
div-float/2addr v3, v0
|
|
|
|
|
|
|
|
mul-float p1, p1, v3
|
|
|
|
|
|
|
|
add-float/2addr v2, p1
|
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object p1, v1, Lcom/yalantis/ucrop/view/a;->aYQ:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/RectF;->centerX()F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object v0, v1, Lcom/yalantis/ucrop/view/a;->aYQ:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/RectF;->centerY()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, p1, v0}, Lcom/yalantis/ucrop/view/a;->f(FFF)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object v1, p0, Lcom/yalantis/ucrop/UCropActivity$6;->aYF:Lcom/yalantis/ucrop/UCropActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v1}, Lcom/yalantis/ucrop/UCropActivity;->d(Lcom/yalantis/ucrop/UCropActivity;)Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object v2, p0, Lcom/yalantis/ucrop/UCropActivity$6;->aYF:Lcom/yalantis/ucrop/UCropActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v2}, Lcom/yalantis/ucrop/UCropActivity;->d(Lcom/yalantis/ucrop/UCropActivity;)Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/yalantis/ucrop/view/GestureCropImageView;->getCurrentScale()F
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object v3, p0, Lcom/yalantis/ucrop/UCropActivity$6;->aYF:Lcom/yalantis/ucrop/UCropActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v3}, Lcom/yalantis/ucrop/UCropActivity;->d(Lcom/yalantis/ucrop/UCropActivity;)Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/yalantis/ucrop/view/GestureCropImageView;->getMaxScale()F
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object v4, p0, Lcom/yalantis/ucrop/UCropActivity$6;->aYF:Lcom/yalantis/ucrop/UCropActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v4}, Lcom/yalantis/ucrop/UCropActivity;->d(Lcom/yalantis/ucrop/UCropActivity;)Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lcom/yalantis/ucrop/view/GestureCropImageView;->getMinScale()F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
sub-float/2addr v3, v4
|
|
|
|
|
|
|
|
div-float/2addr v3, v0
|
|
|
|
|
|
|
|
mul-float p1, p1, v3
|
|
|
|
|
|
|
|
add-float/2addr v2, p1
|
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object p1, v1, Lcom/yalantis/ucrop/view/a;->aYQ:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/RectF;->centerX()F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object v0, v1, Lcom/yalantis/ucrop/view/a;->aYQ:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/RectF;->centerY()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/yalantis/ucrop/view/a;->getMinScale()F
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
cmpl-float v3, v2, v3
|
|
|
|
|
|
|
|
if-ltz v3, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/yalantis/ucrop/view/a;->getCurrentScale()F
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
div-float/2addr v2, v3
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, p1, v0}, Lcom/yalantis/ucrop/view/a;->g(FFF)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
.method public final Bn()V
|
2019-10-07 23:23:22 +00:00
|
|
|
.locals 2
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object v0, p0, Lcom/yalantis/ucrop/UCropActivity$6;->aYF:Lcom/yalantis/ucrop/UCropActivity;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/yalantis/ucrop/UCropActivity;->d(Lcom/yalantis/ucrop/UCropActivity;)Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/yalantis/ucrop/view/a;->setImageToWrapCropBounds(Z)V
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
.method public final Bo()V
|
2019-10-07 23:23:22 +00:00
|
|
|
.locals 1
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-28 23:46:47 +00:00
|
|
|
iget-object v0, p0, Lcom/yalantis/ucrop/UCropActivity$6;->aYF:Lcom/yalantis/ucrop/UCropActivity;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/yalantis/ucrop/UCropActivity;->d(Lcom/yalantis/ucrop/UCropActivity;)Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-31 00:47:18 +00:00
|
|
|
invoke-virtual {v0}, Lcom/yalantis/ucrop/view/GestureCropImageView;->Bv()V
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|