i$a.smali

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

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/github/chrisbanes/photoview/i;
.end annotation

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


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

.field private final b:F

.field private final c:F

.field private final d:J

.field private final e:F

.field private final f:F


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

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

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

    .line 732
    iput p4, p0, Lcom/github/chrisbanes/photoview/i$a;->b:F

    .line 733
    iput p5, p0, Lcom/github/chrisbanes/photoview/i$a;->c:F

    .line 734
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide p4

    iput-wide p4, p0, Lcom/github/chrisbanes/photoview/i$a;->d:J

    .line 735
    iput p2, p0, Lcom/github/chrisbanes/photoview/i$a;->e:F

    .line 736
    iput p3, p0, Lcom/github/chrisbanes/photoview/i$a;->f:F

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 7

    .line 1755
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/github/chrisbanes/photoview/i$a;->d:J

    sub-long/2addr v0, v2

    long-to-float v0, v0

    const/high16 v1, 0x3f800000    # 1.0f

    mul-float v0, v0, v1

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

    invoke-static {v2}, Lcom/github/chrisbanes/photoview/i;->g(Lcom/github/chrisbanes/photoview/i;)I

    move-result v2

    int-to-float v2, v2

    div-float/2addr v0, v2

    .line 1756
    invoke-static {v1, v0}, Ljava/lang/Math;->min(FF)F

    move-result v0

    .line 1757
    iget-object v2, p0, Lcom/github/chrisbanes/photoview/i$a;->a:Lcom/github/chrisbanes/photoview/i;

    invoke-static {v2}, Lcom/github/chrisbanes/photoview/i;->h(Lcom/github/chrisbanes/photoview/i;)Landroid/view/animation/Interpolator;

    move-result-object v2

    invoke-interface {v2, v0}, Landroid/view/animation/Interpolator;->getInterpolation(F)F

    move-result v0

    .line 743
    iget v2, p0, Lcom/github/chrisbanes/photoview/i$a;->e:F

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

    sub-float/2addr v3, v2

    mul-float v3, v3, v0

    add-float/2addr v2, v3

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

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

    move-result v3

    div-float/2addr v2, v3

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

    iget v4, p0, Lcom/github/chrisbanes/photoview/i$a;->b:F

    iget v5, p0, Lcom/github/chrisbanes/photoview/i$a;->c:F

    invoke-virtual {v3, v2, v4, v5}, Lcom/github/chrisbanes/photoview/i;->a(FFF)V

    cmpg-float v0, v0, v1

    if-gez v0, :cond_47

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

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

    move-result-object v0

    invoke-static {v0, p0}, Lcom/github/chrisbanes/photoview/a;->a(Landroid/view/View;Ljava/lang/Runnable;)V

    :cond_47
    return-void
.end method