apkfuckery/com.discord/smali/com/discord/utilities/apng/ApngUtils$renderApngFromFil...

80 lines
2.3 KiB
Smali

.class public final Lcom/discord/utilities/apng/ApngUtils$renderApngFromFile$3;
.super Ljava/lang/Object;
.source "ApngUtils.kt"
# interfaces
.implements Landroid/view/View$OnAttachStateChangeListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/utilities/apng/ApngUtils;->renderApngFromFile(Ljava/io/File;Landroid/widget/ImageView;Ljava/lang/Integer;Ljava/lang/Integer;Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic $imageViewRef:Ljava/lang/ref/WeakReference;
.field public final synthetic $job:Lkotlin/jvm/internal/Ref$ObjectRef;
# direct methods
.method public constructor <init>(Lkotlin/jvm/internal/Ref$ObjectRef;Ljava/lang/ref/WeakReference;)V
.locals 0
iput-object p1, p0, Lcom/discord/utilities/apng/ApngUtils$renderApngFromFile$3;->$job:Lkotlin/jvm/internal/Ref$ObjectRef;
iput-object p2, p0, Lcom/discord/utilities/apng/ApngUtils$renderApngFromFile$3;->$imageViewRef:Ljava/lang/ref/WeakReference;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onViewAttachedToWindow(Landroid/view/View;)V
.locals 0
return-void
.end method
.method public onViewDetachedFromWindow(Landroid/view/View;)V
.locals 2
iget-object p1, p0, Lcom/discord/utilities/apng/ApngUtils$renderApngFromFile$3;->$job:Lkotlin/jvm/internal/Ref$ObjectRef;
iget-object p1, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
check-cast p1, Lkotlinx/coroutines/Job;
if-eqz p1, :cond_0
const/4 v0, 0x1
const/4 v1, 0x0
invoke-static {p1, v1, v0, v1}, Lk0/j/a;->m(Lkotlinx/coroutines/Job;Ljava/util/concurrent/CancellationException;ILjava/lang/Object;)V
:cond_0
iget-object p1, p0, Lcom/discord/utilities/apng/ApngUtils$renderApngFromFile$3;->$imageViewRef:Ljava/lang/ref/WeakReference;
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/widget/ImageView;
if-eqz p1, :cond_1
invoke-virtual {p1, p0}, Landroid/widget/ImageView;->removeOnAttachStateChangeListener(Landroid/view/View$OnAttachStateChangeListener;)V
:cond_1
return-void
.end method