apkfuckery/com.discord/smali/androidx/transition/ImageViewUtils$1.smali
2019-02-04 21:29:01 +01:00

85 lines
2.7 KiB
Smali

.class final Landroidx/transition/ImageViewUtils$1;
.super Landroid/animation/AnimatorListenerAdapter;
.source "ImageViewUtils.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/transition/ImageViewUtils;->reserveEndAnimateTransform(Landroid/widget/ImageView;Landroid/animation/Animator;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = null
.end annotation
# instance fields
.field final synthetic val$view:Landroid/widget/ImageView;
# direct methods
.method constructor <init>(Landroid/widget/ImageView;)V
.locals 0
iput-object p1, p0, Landroidx/transition/ImageViewUtils$1;->val$view:Landroid/widget/ImageView;
invoke-direct {p0}, Landroid/animation/AnimatorListenerAdapter;-><init>()V
return-void
.end method
# virtual methods
.method public final onAnimationEnd(Landroid/animation/Animator;)V
.locals 4
iget-object v0, p0, Landroidx/transition/ImageViewUtils$1;->val$view:Landroid/widget/ImageView;
sget v1, Landroidx/transition/R$id;->save_scale_type:I
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->getTag(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/widget/ImageView$ScaleType;
iget-object v1, p0, Landroidx/transition/ImageViewUtils$1;->val$view:Landroid/widget/ImageView;
invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
iget-object v1, p0, Landroidx/transition/ImageViewUtils$1;->val$view:Landroid/widget/ImageView;
sget v2, Landroidx/transition/R$id;->save_scale_type:I
const/4 v3, 0x0
invoke-virtual {v1, v2, v3}, Landroid/widget/ImageView;->setTag(ILjava/lang/Object;)V
sget-object v1, Landroid/widget/ImageView$ScaleType;->MATRIX:Landroid/widget/ImageView$ScaleType;
if-ne v0, v1, :cond_0
iget-object v0, p0, Landroidx/transition/ImageViewUtils$1;->val$view:Landroid/widget/ImageView;
sget v1, Landroidx/transition/R$id;->save_image_matrix:I
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->getTag(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/graphics/Matrix;
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageMatrix(Landroid/graphics/Matrix;)V
iget-object v0, p0, Landroidx/transition/ImageViewUtils$1;->val$view:Landroid/widget/ImageView;
sget v1, Landroidx/transition/R$id;->save_image_matrix:I
invoke-virtual {v0, v1, v3}, Landroid/widget/ImageView;->setTag(ILjava/lang/Object;)V
:cond_0
invoke-virtual {p1, p0}, Landroid/animation/Animator;->removeListener(Landroid/animation/Animator$AnimatorListener;)V
return-void
.end method