219 lines
6.3 KiB
Smali
219 lines
6.3 KiB
Smali
.class public Lcom/facebook/samples/zoomable/b;
|
|
.super Lcom/facebook/samples/zoomable/a;
|
|
.source "AnimatedZoomableController.java"
|
|
|
|
|
|
# static fields
|
|
.field static final GL:Ljava/lang/Class;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Class<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private final mValueAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const-class v0, Lcom/facebook/samples/zoomable/b;
|
|
|
|
sput-object v0, Lcom/facebook/samples/zoomable/b;->GL:Ljava/lang/Class;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Lcom/facebook/samples/a/b;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/samples/zoomable/a;-><init>(Lcom/facebook/samples/a/b;)V
|
|
|
|
const/4 p1, 0x2
|
|
|
|
new-array p1, p1, [F
|
|
|
|
fill-array-data p1, :array_0
|
|
|
|
invoke-static {p1}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/facebook/samples/zoomable/b;->mValueAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
iget-object p1, p0, Lcom/facebook/samples/zoomable/b;->mValueAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
new-instance v0, Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
invoke-direct {v0}, Landroid/view/animation/DecelerateInterpolator;-><init>()V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
|
|
|
|
return-void
|
|
|
|
:array_0
|
|
.array-data 4
|
|
0x0
|
|
0x3f800000 # 1.0f
|
|
.end array-data
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/facebook/samples/zoomable/b;Landroid/graphics/Matrix;)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Lcom/facebook/samples/zoomable/a;->f(Landroid/graphics/Matrix;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static kW()Lcom/facebook/samples/zoomable/b;
|
|
.locals 3
|
|
|
|
new-instance v0, Lcom/facebook/samples/zoomable/b;
|
|
|
|
new-instance v1, Lcom/facebook/samples/a/b;
|
|
|
|
new-instance v2, Lcom/facebook/samples/a/a;
|
|
|
|
invoke-direct {v2}, Lcom/facebook/samples/a/a;-><init>()V
|
|
|
|
invoke-direct {v1, v2}, Lcom/facebook/samples/a/b;-><init>(Lcom/facebook/samples/a/a;)V
|
|
|
|
invoke-direct {v0, v1}, Lcom/facebook/samples/zoomable/b;-><init>(Lcom/facebook/samples/a/b;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final b(Landroid/graphics/Matrix;JLjava/lang/Runnable;)V
|
|
.locals 4
|
|
|
|
sget-object v0, Lcom/facebook/samples/zoomable/b;->GL:Ljava/lang/Class;
|
|
|
|
invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "setTransformAnimated: duration %d ms"
|
|
|
|
invoke-static {v0, v2, v1}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/samples/zoomable/b;->kV()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
cmp-long v3, p2, v1
|
|
|
|
if-lez v3, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v1}, Lcom/facebook/common/d/i;->checkArgument(Z)V
|
|
|
|
iget-boolean v1, p0, Lcom/facebook/samples/zoomable/a;->aaT:Z
|
|
|
|
xor-int/2addr v1, v0
|
|
|
|
invoke-static {v1}, Lcom/facebook/common/d/i;->checkState(Z)V
|
|
|
|
iput-boolean v0, p0, Lcom/facebook/samples/zoomable/a;->aaT:Z
|
|
|
|
iget-object v0, p0, Lcom/facebook/samples/zoomable/b;->mValueAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
invoke-virtual {v0, p2, p3}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/samples/zoomable/b;->la()Landroid/graphics/Matrix;
|
|
|
|
move-result-object p2
|
|
|
|
iget-object p3, p0, Lcom/facebook/samples/zoomable/a;->aaU:[F
|
|
|
|
invoke-virtual {p2, p3}, Landroid/graphics/Matrix;->getValues([F)V
|
|
|
|
iget-object p2, p0, Lcom/facebook/samples/zoomable/a;->aaV:[F
|
|
|
|
invoke-virtual {p1, p2}, Landroid/graphics/Matrix;->getValues([F)V
|
|
|
|
iget-object p1, p0, Lcom/facebook/samples/zoomable/b;->mValueAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
new-instance p2, Lcom/facebook/samples/zoomable/b$1;
|
|
|
|
invoke-direct {p2, p0}, Lcom/facebook/samples/zoomable/b$1;-><init>(Lcom/facebook/samples/zoomable/b;)V
|
|
|
|
invoke-virtual {p1, p2}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
|
|
iget-object p1, p0, Lcom/facebook/samples/zoomable/b;->mValueAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
new-instance p2, Lcom/facebook/samples/zoomable/b$2;
|
|
|
|
invoke-direct {p2, p0, p4}, Lcom/facebook/samples/zoomable/b$2;-><init>(Lcom/facebook/samples/zoomable/b;Ljava/lang/Runnable;)V
|
|
|
|
invoke-virtual {p1, p2}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
iget-object p1, p0, Lcom/facebook/samples/zoomable/b;->mValueAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->start()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected final getLogTag()Ljava/lang/Class;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/lang/Class<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
sget-object v0, Lcom/facebook/samples/zoomable/b;->GL:Ljava/lang/Class;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final kV()V
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Lcom/facebook/samples/zoomable/a;->aaT:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
sget-object v0, Lcom/facebook/samples/zoomable/b;->GL:Ljava/lang/Class;
|
|
|
|
const-string v1, "stopAnimation"
|
|
|
|
invoke-static {v0, v1}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/facebook/samples/zoomable/b;->mValueAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->cancel()V
|
|
|
|
iget-object v0, p0, Lcom/facebook/samples/zoomable/b;->mValueAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->removeAllUpdateListeners()V
|
|
|
|
iget-object v0, p0, Lcom/facebook/samples/zoomable/b;->mValueAnimator:Landroid/animation/ValueAnimator;
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->removeAllListeners()V
|
|
|
|
return-void
|
|
.end method
|