i$2.smali

.class final Lcom/github/chrisbanes/photoview/i$2;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroid/view/GestureDetector$OnDoubleTapListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/github/chrisbanes/photoview/i;-><init>(Landroid/widget/ImageView;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/github/chrisbanes/photoview/i;


# direct methods
.method constructor <init>(Lcom/github/chrisbanes/photoview/i;)V
    .registers 2

    .line 136
    iput-object p1, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

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

    return-void
.end method


# virtual methods
.method public final onDoubleTap(Landroid/view/MotionEvent;)Z
    .registers 6

    const/4 v0, 0x1

    .line 171
    :try_start_1
    iget-object v1, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    invoke-virtual {v1}, Lcom/github/chrisbanes/photoview/i;->b()F

    move-result v1

    .line 172
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    .line 173
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    .line 175
    iget-object v3, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    .line 1256
    iget v3, v3, Lcom/github/chrisbanes/photoview/i;->c:F

    cmpg-float v3, v1, v3

    if-gez v3, :cond_21

    .line 176
    iget-object v1, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    iget-object v3, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    .line 2256
    iget v3, v3, Lcom/github/chrisbanes/photoview/i;->c:F

    .line 176
    invoke-virtual {v1, v3, v2, p1, v0}, Lcom/github/chrisbanes/photoview/i;->a(FFFZ)V

    goto :goto_44

    .line 177
    :cond_21
    iget-object v3, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    .line 3256
    iget v3, v3, Lcom/github/chrisbanes/photoview/i;->c:F

    cmpl-float v3, v1, v3

    if-ltz v3, :cond_3b

    .line 177
    iget-object v3, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    .line 3260
    iget v3, v3, Lcom/github/chrisbanes/photoview/i;->d:F

    cmpg-float v1, v1, v3

    if-gez v1, :cond_3b

    .line 178
    iget-object v1, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    iget-object v3, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    .line 4260
    iget v3, v3, Lcom/github/chrisbanes/photoview/i;->d:F

    .line 178
    invoke-virtual {v1, v3, v2, p1, v0}, Lcom/github/chrisbanes/photoview/i;->a(FFFZ)V

    goto :goto_44

    .line 180
    :cond_3b
    iget-object v1, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    iget-object v3, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    .line 5252
    iget v3, v3, Lcom/github/chrisbanes/photoview/i;->b:F

    .line 180
    invoke-virtual {v1, v3, v2, p1, v0}, Lcom/github/chrisbanes/photoview/i;->a(FFFZ)V
    :try_end_44
    .catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_1 .. :try_end_44} :catch_44

    :catch_44
    :goto_44
    return v0
.end method

.method public final onDoubleTapEvent(Landroid/view/MotionEvent;)Z
    .registers 2

    const/4 p1, 0x0

    return p1
.end method

.method public final onSingleTapConfirmed(Landroid/view/MotionEvent;)Z
    .registers 4

    .line 139
    iget-object v0, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    invoke-static {v0}, Lcom/github/chrisbanes/photoview/i;->d(Lcom/github/chrisbanes/photoview/i;)Landroid/view/View$OnClickListener;

    move-result-object v0

    if-eqz v0, :cond_17

    .line 140
    iget-object v0, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    invoke-static {v0}, Lcom/github/chrisbanes/photoview/i;->d(Lcom/github/chrisbanes/photoview/i;)Landroid/view/View$OnClickListener;

    move-result-object v0

    iget-object v1, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    invoke-static {v1}, Lcom/github/chrisbanes/photoview/i;->b(Lcom/github/chrisbanes/photoview/i;)Landroid/widget/ImageView;

    move-result-object v1

    invoke-interface {v0, v1}, Landroid/view/View$OnClickListener;->onClick(Landroid/view/View;)V

    .line 142
    :cond_17
    iget-object v0, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    invoke-virtual {v0}, Lcom/github/chrisbanes/photoview/i;->a()Landroid/graphics/RectF;

    move-result-object v0

    if-eqz v0, :cond_5d

    .line 145
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    .line 148
    invoke-virtual {v0, v1, p1}, Landroid/graphics/RectF;->contains(FF)Z

    move-result p1

    if-eqz p1, :cond_4b

    .line 150
    iget p1, v0, Landroid/graphics/RectF;->left:F

    .line 151
    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    .line 152
    iget p1, v0, Landroid/graphics/RectF;->top:F

    .line 153
    invoke-virtual {v0}, Landroid/graphics/RectF;->height()F

    .line 155
    iget-object p1, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    invoke-static {p1}, Lcom/github/chrisbanes/photoview/i;->e(Lcom/github/chrisbanes/photoview/i;)Lcom/github/chrisbanes/photoview/f;

    move-result-object p1

    if-eqz p1, :cond_49

    .line 156
    iget-object p1, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    invoke-static {p1}, Lcom/github/chrisbanes/photoview/i;->e(Lcom/github/chrisbanes/photoview/i;)Lcom/github/chrisbanes/photoview/f;

    iget-object p1, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    invoke-static {p1}, Lcom/github/chrisbanes/photoview/i;->b(Lcom/github/chrisbanes/photoview/i;)Landroid/widget/ImageView;

    :cond_49
    const/4 p1, 0x1

    return p1

    .line 160
    :cond_4b
    iget-object p1, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    invoke-static {p1}, Lcom/github/chrisbanes/photoview/i;->f(Lcom/github/chrisbanes/photoview/i;)Lcom/github/chrisbanes/photoview/e;

    move-result-object p1

    if-eqz p1, :cond_5d

    .line 161
    iget-object p1, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    invoke-static {p1}, Lcom/github/chrisbanes/photoview/i;->f(Lcom/github/chrisbanes/photoview/i;)Lcom/github/chrisbanes/photoview/e;

    iget-object p1, p0, Lcom/github/chrisbanes/photoview/i$2;->a:Lcom/github/chrisbanes/photoview/i;

    invoke-static {p1}, Lcom/github/chrisbanes/photoview/i;->b(Lcom/github/chrisbanes/photoview/i;)Landroid/widget/ImageView;

    :cond_5d
    const/4 p1, 0x0

    return p1
.end method