AnimationManager$XAnimation.smali

.class Lcom/github/barteksc/pdfviewer/AnimationManager$XAnimation;
.super Landroid/animation/AnimatorListenerAdapter;
.source "AnimationManager.java"

# interfaces
.implements Landroid/animation/ValueAnimator$AnimatorUpdateListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/github/barteksc/pdfviewer/AnimationManager;
.end annotation

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


# instance fields
.field final synthetic this$0:Lcom/github/barteksc/pdfviewer/AnimationManager;


# direct methods
.method constructor <init>(Lcom/github/barteksc/pdfviewer/AnimationManager;)V
    .registers 2

    .line 128
    iput-object p1, p0, Lcom/github/barteksc/pdfviewer/AnimationManager$XAnimation;->this$0:Lcom/github/barteksc/pdfviewer/AnimationManager;

    invoke-direct {p0}, Landroid/animation/AnimatorListenerAdapter;-><init>()V

    return-void
.end method


# virtual methods
.method public onAnimationCancel(Landroid/animation/Animator;)V
    .registers 3

    .line 139
    iget-object p1, p0, Lcom/github/barteksc/pdfviewer/AnimationManager$XAnimation;->this$0:Lcom/github/barteksc/pdfviewer/AnimationManager;

    # getter for: Lcom/github/barteksc/pdfviewer/AnimationManager;->pdfView:Lcom/github/barteksc/pdfviewer/PDFView;
    invoke-static {p1}, Lcom/github/barteksc/pdfviewer/AnimationManager;->access$000(Lcom/github/barteksc/pdfviewer/AnimationManager;)Lcom/github/barteksc/pdfviewer/PDFView;

    move-result-object p1

    invoke-virtual {p1}, Lcom/github/barteksc/pdfviewer/PDFView;->loadPages()V

    .line 140
    iget-object p1, p0, Lcom/github/barteksc/pdfviewer/AnimationManager$XAnimation;->this$0:Lcom/github/barteksc/pdfviewer/AnimationManager;

    const/4 v0, 0x0

    # setter for: Lcom/github/barteksc/pdfviewer/AnimationManager;->pageFlinging:Z
    invoke-static {p1, v0}, Lcom/github/barteksc/pdfviewer/AnimationManager;->access$102(Lcom/github/barteksc/pdfviewer/AnimationManager;Z)Z

    .line 141
    iget-object p1, p0, Lcom/github/barteksc/pdfviewer/AnimationManager$XAnimation;->this$0:Lcom/github/barteksc/pdfviewer/AnimationManager;

    # invokes: Lcom/github/barteksc/pdfviewer/AnimationManager;->hideHandle()V
    invoke-static {p1}, Lcom/github/barteksc/pdfviewer/AnimationManager;->access$200(Lcom/github/barteksc/pdfviewer/AnimationManager;)V

    return-void
.end method

.method public onAnimationEnd(Landroid/animation/Animator;)V
    .registers 3

    .line 146
    iget-object p1, p0, Lcom/github/barteksc/pdfviewer/AnimationManager$XAnimation;->this$0:Lcom/github/barteksc/pdfviewer/AnimationManager;

    # getter for: Lcom/github/barteksc/pdfviewer/AnimationManager;->pdfView:Lcom/github/barteksc/pdfviewer/PDFView;
    invoke-static {p1}, Lcom/github/barteksc/pdfviewer/AnimationManager;->access$000(Lcom/github/barteksc/pdfviewer/AnimationManager;)Lcom/github/barteksc/pdfviewer/PDFView;

    move-result-object p1

    invoke-virtual {p1}, Lcom/github/barteksc/pdfviewer/PDFView;->loadPages()V

    .line 147
    iget-object p1, p0, Lcom/github/barteksc/pdfviewer/AnimationManager$XAnimation;->this$0:Lcom/github/barteksc/pdfviewer/AnimationManager;

    const/4 v0, 0x0

    # setter for: Lcom/github/barteksc/pdfviewer/AnimationManager;->pageFlinging:Z
    invoke-static {p1, v0}, Lcom/github/barteksc/pdfviewer/AnimationManager;->access$102(Lcom/github/barteksc/pdfviewer/AnimationManager;Z)Z

    .line 148
    iget-object p1, p0, Lcom/github/barteksc/pdfviewer/AnimationManager$XAnimation;->this$0:Lcom/github/barteksc/pdfviewer/AnimationManager;

    # invokes: Lcom/github/barteksc/pdfviewer/AnimationManager;->hideHandle()V
    invoke-static {p1}, Lcom/github/barteksc/pdfviewer/AnimationManager;->access$200(Lcom/github/barteksc/pdfviewer/AnimationManager;)V

    return-void
.end method

.method public onAnimationUpdate(Landroid/animation/ValueAnimator;)V
    .registers 4

    .line 132
    invoke-virtual {p1}, Landroid/animation/ValueAnimator;->getAnimatedValue()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Float;

    invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F

    move-result p1

    .line 133
    iget-object v0, p0, Lcom/github/barteksc/pdfviewer/AnimationManager$XAnimation;->this$0:Lcom/github/barteksc/pdfviewer/AnimationManager;

    # getter for: Lcom/github/barteksc/pdfviewer/AnimationManager;->pdfView:Lcom/github/barteksc/pdfviewer/PDFView;
    invoke-static {v0}, Lcom/github/barteksc/pdfviewer/AnimationManager;->access$000(Lcom/github/barteksc/pdfviewer/AnimationManager;)Lcom/github/barteksc/pdfviewer/PDFView;

    move-result-object v0

    iget-object v1, p0, Lcom/github/barteksc/pdfviewer/AnimationManager$XAnimation;->this$0:Lcom/github/barteksc/pdfviewer/AnimationManager;

    # getter for: Lcom/github/barteksc/pdfviewer/AnimationManager;->pdfView:Lcom/github/barteksc/pdfviewer/PDFView;
    invoke-static {v1}, Lcom/github/barteksc/pdfviewer/AnimationManager;->access$000(Lcom/github/barteksc/pdfviewer/AnimationManager;)Lcom/github/barteksc/pdfviewer/PDFView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/github/barteksc/pdfviewer/PDFView;->getCurrentYOffset()F

    move-result v1

    invoke-virtual {v0, p1, v1}, Lcom/github/barteksc/pdfviewer/PDFView;->moveTo(FF)V

    .line 134
    iget-object p1, p0, Lcom/github/barteksc/pdfviewer/AnimationManager$XAnimation;->this$0:Lcom/github/barteksc/pdfviewer/AnimationManager;

    # getter for: Lcom/github/barteksc/pdfviewer/AnimationManager;->pdfView:Lcom/github/barteksc/pdfviewer/PDFView;
    invoke-static {p1}, Lcom/github/barteksc/pdfviewer/AnimationManager;->access$000(Lcom/github/barteksc/pdfviewer/AnimationManager;)Lcom/github/barteksc/pdfviewer/PDFView;

    move-result-object p1

    invoke-virtual {p1}, Lcom/github/barteksc/pdfviewer/PDFView;->loadPageByOffset()V

    return-void
.end method