2020-05-17 12:40:10 +00:00
|
|
|
.class public Lcom/yalantis/ucrop/view/GestureCropImageView$b;
|
|
|
|
.super Landroid/view/GestureDetector$SimpleOnGestureListener;
|
|
|
|
.source "GestureCropImageView.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x1
|
|
|
|
name = "b"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic d:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public constructor <init>(Lcom/yalantis/ucrop/view/GestureCropImageView;Lcom/yalantis/ucrop/view/GestureCropImageView$a;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/yalantis/ucrop/view/GestureCropImageView$b;->d:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Landroid/view/GestureDetector$SimpleOnGestureListener;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public onDoubleTap(Landroid/view/MotionEvent;)Z
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 10
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v8, p0, Lcom/yalantis/ucrop/view/GestureCropImageView$b;->d:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v8}, Lcom/yalantis/ucrop/view/GestureCropImageView;->getDoubleTapTargetScale()F
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result v7
|
|
|
|
|
|
|
|
invoke-virtual {v8}, Lf/n/a/l/a;->getMaxScale()F
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
cmpl-float v1, v0, v1
|
|
|
|
|
|
|
|
if-lez v1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v8}, Lf/n/a/l/a;->getMaxScale()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {v8}, Lf/n/a/l/c;->getCurrentScale()F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
sub-float v5, v0, v4
|
|
|
|
|
|
|
|
new-instance v9, Lf/n/a/l/a$b;
|
|
|
|
|
|
|
|
const-wide/16 v2, 0xc8
|
|
|
|
|
|
|
|
move-object v0, v9
|
|
|
|
|
|
|
|
move-object v1, v8
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v7}, Lf/n/a/l/a$b;-><init>(Lf/n/a/l/a;JFFFF)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iput-object v9, v8, Lf/n/a/l/a;->y:Ljava/lang/Runnable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v8, v9}, Landroid/widget/ImageView;->post(Ljava/lang/Runnable;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/view/GestureDetector$SimpleOnGestureListener;->onDoubleTap(Landroid/view/MotionEvent;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/yalantis/ucrop/view/GestureCropImageView$b;->d:Lcom/yalantis/ucrop/view/GestureCropImageView;
|
|
|
|
|
|
|
|
neg-float p2, p3
|
|
|
|
|
|
|
|
neg-float p3, p4
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1, p2, p3}, Lf/n/a/l/c;->g(FF)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|