1668 lines
40 KiB
Smali
1668 lines
40 KiB
Smali
.class public final Lcom/discord/utilities/images/MGImages;
|
|
.super Ljava/lang/Object;
|
|
.source "MGImages.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/utilities/images/MGImages$ChangeDetector;,
|
|
Lcom/discord/utilities/images/MGImages$DistinctChangeDetector;,
|
|
Lcom/discord/utilities/images/MGImages$AlwaysUpdateChangeDetector;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/utilities/images/MGImages;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/utilities/images/MGImages;
|
|
|
|
invoke-direct {v0}, Lcom/discord/utilities/images/MGImages;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/utilities/images/MGImages;->INSTANCE:Lcom/discord/utilities/images/MGImages;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getDrawee(Landroid/widget/ImageView;)Lcom/facebook/drawee/view/DraweeView;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/widget/ImageView;",
|
|
")",
|
|
"Lcom/facebook/drawee/view/DraweeView<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
check-cast p1, Lcom/facebook/drawee/view/DraweeView;
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
new-instance p1, Lx/l;
|
|
|
|
const-string v0, "null cannot be cast to non-null type com.facebook.drawee.view.DraweeView<*>"
|
|
|
|
invoke-direct {p1, v0}, Lx/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private final getHierarchy(Landroid/widget/ImageView;)Lcom/facebook/drawee/generic/GenericDraweeHierarchy;
|
|
.locals 2
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/utilities/images/MGImages;->getDrawee(Landroid/widget/ImageView;)Lcom/facebook/drawee/view/DraweeView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/drawee/view/DraweeView;->c()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v1, Le/j/g/f/a;
|
|
|
|
invoke-virtual {p1}, Landroid/widget/ImageView;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v1, p1}, Le/j/g/f/a;-><init>(Landroid/content/res/Resources;)V
|
|
|
|
invoke-virtual {v1}, Le/j/g/f/a;->a()Lcom/facebook/drawee/generic/GenericDraweeHierarchy;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/facebook/drawee/view/DraweeView;->setHierarchy(Le/j/g/h/b;)V
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Lcom/facebook/drawee/view/DraweeView;->getHierarchy()Le/j/g/h/b;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
check-cast p1, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
new-instance p1, Lx/l;
|
|
|
|
const-string v0, "null cannot be cast to non-null type com.facebook.drawee.generic.GenericDraweeHierarchy"
|
|
|
|
invoke-direct {p1, v0}, Lx/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final getImageRequest(Ljava/lang/String;IIZ)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
|
|
.locals 3
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
invoke-static {p0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->b(Landroid/net/Uri;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Le/j/j/p/c$b;->d:Le/j/j/p/c$b;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a(Le/j/j/p/c$b;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "requestBuilder"
|
|
|
|
invoke-static {v0, v1}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
const/4 p3, 0x2
|
|
|
|
const-string v2, "gif"
|
|
|
|
invoke-static {p0, v2, v1, p3}, Lx/a0/u;->contains$default(Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZI)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object p0, Le/j/j/p/c$a;->e:Le/j/j/p/c$a;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
sget-object p0, Le/j/j/p/c$a;->d:Le/j/j/p/c$a;
|
|
|
|
:goto_1
|
|
invoke-virtual {v0, p0}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a(Le/j/j/p/c$a;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
if-lez p2, :cond_2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_2
|
|
if-eqz v1, :cond_3
|
|
|
|
new-instance p0, Le/j/j/d/e;
|
|
|
|
invoke-direct {p0, p1, p2}, Le/j/j/d/e;-><init>(II)V
|
|
|
|
invoke-virtual {v0, p0}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a(Le/j/j/d/e;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
|
|
|
|
:cond_3
|
|
return-object v0
|
|
|
|
:cond_4
|
|
const-string p0, "url"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final prepareImageUpload(Landroid/net/Uri;Ljava/lang/String;Landroidx/fragment/app/FragmentManager;Lcom/miguelgaeta/media_picker/MediaPicker$Provider;Lrx/functions/Action1;Lcom/discord/dialogs/ImageUploadDialog$PreviewType;)V
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/net/Uri;",
|
|
"Ljava/lang/String;",
|
|
"Landroidx/fragment/app/FragmentManager;",
|
|
"Lcom/miguelgaeta/media_picker/MediaPicker$Provider;",
|
|
"Lrx/functions/Action1<",
|
|
"Ljava/lang/String;",
|
|
">;",
|
|
"Lcom/discord/dialogs/ImageUploadDialog$PreviewType;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
sget-object v1, Lcom/discord/dialogs/ImageUploadDialog;->n:Lcom/discord/dialogs/ImageUploadDialog$b;
|
|
|
|
move-object v2, p2
|
|
|
|
move-object v3, p0
|
|
|
|
move-object v4, p3
|
|
|
|
move-object v5, p1
|
|
|
|
move-object v6, p4
|
|
|
|
move-object v7, p5
|
|
|
|
invoke-virtual/range {v1 .. v7}, Lcom/discord/dialogs/ImageUploadDialog$b;->a(Landroidx/fragment/app/FragmentManager;Landroid/net/Uri;Lcom/miguelgaeta/media_picker/MediaPicker$Provider;Ljava/lang/String;Lrx/functions/Action1;Lcom/discord/dialogs/ImageUploadDialog$PreviewType;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p0, "previewType"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p0, "provider"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p0, "fragmentManager"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
const-string p0, "mimeType"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
const-string p0, "uri"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final requestAvatarCrop(Landroid/content/Context;Lcom/miguelgaeta/media_picker/MediaPicker$Provider;Landroid/net/Uri;)V
|
|
.locals 7
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
new-instance v6, Le/n/a/a;
|
|
|
|
invoke-direct {v6}, Le/n/a/a;-><init>()V
|
|
|
|
const v0, 0x7f060050
|
|
|
|
invoke-static {p0, v0}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, v6, Le/n/a/a;->a:Landroid/os/Bundle;
|
|
|
|
const-string v3, "com.yalantis.ucrop.ToolbarColor"
|
|
|
|
invoke-virtual {v2, v3, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
const v1, 0x7f060057
|
|
|
|
invoke-static {p0, v1}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, v6, Le/n/a/a;->a:Landroid/os/Bundle;
|
|
|
|
const-string v3, "com.yalantis.ucrop.StatusBarColor"
|
|
|
|
invoke-virtual {v2, v3, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
const v1, 0x7f06026a
|
|
|
|
invoke-static {p0, v1}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, v6, Le/n/a/a;->a:Landroid/os/Bundle;
|
|
|
|
const-string v3, "com.yalantis.ucrop.UcropToolbarWidgetColor"
|
|
|
|
invoke-virtual {v2, v3, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
invoke-static {p0, v0}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, v6, Le/n/a/a;->a:Landroid/os/Bundle;
|
|
|
|
const-string v2, "com.yalantis.ucrop.UcropColorWidgetActive"
|
|
|
|
invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
const/16 v3, 0x400
|
|
|
|
const/16 v4, 0x400
|
|
|
|
new-instance v5, Lcom/discord/utilities/images/MGImages$requestAvatarCrop$1;
|
|
|
|
invoke-direct {v5, p0}, Lcom/discord/utilities/images/MGImages$requestAvatarCrop$1;-><init>(Landroid/content/Context;)V
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
invoke-static/range {v1 .. v6}, Lcom/miguelgaeta/media_picker/MediaPicker;->startForImageCrop(Lcom/miguelgaeta/media_picker/MediaPicker$Provider;Landroid/net/Uri;IILcom/miguelgaeta/media_picker/MediaPicker$OnError;Le/n/a/a;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p0, "inputUri"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p0, "provider"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final requestDataUrl(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;Lrx/functions/Action1;)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Landroid/net/Uri;",
|
|
"Ljava/lang/String;",
|
|
"Lrx/functions/Action1<",
|
|
"Ljava/lang/String;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
const/16 v1, 0xc
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const v3, 0x7f120265
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
|
|
|
move-result-object v5
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
invoke-virtual {v5, p1}, Landroid/content/ContentResolver;->openInputStream(Landroid/net/Uri;)Ljava/io/InputStream;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
:try_start_1
|
|
invoke-static {p2, p1}, Lcom/miguelgaeta/media_picker/Encoder;->getDataUrl(Ljava/lang/String;Ljava/io/InputStream;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-interface {p3, p2}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p2
|
|
|
|
:try_start_2
|
|
throw p2
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception p3
|
|
|
|
:try_start_3
|
|
invoke-static {p1, p2}, Le/n/a/j/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
throw p3
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-static {p1, v0}, Le/n/a/j/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
:try_end_3
|
|
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
|
|
.catch Ljava/lang/NullPointerException; {:try_start_3 .. :try_end_3} :catch_0
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
new-array p2, v2, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/NullPointerException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, p2, v4
|
|
|
|
invoke-virtual {p0, v3, p2}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p0, p1, v4, v0, v1}, Le/a/b/j;->a(Landroid/content/Context;Ljava/lang/CharSequence;ILcom/discord/utilities/view/ToastManager;I)V
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
new-array p2, v2, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {p1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, p2, v4
|
|
|
|
invoke-virtual {p0, v3, p2}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p0, p1, v4, v0, v1}, Le/a/b/j;->a(Landroid/content/Context;Ljava/lang/CharSequence;ILcom/discord/utilities/view/ToastManager;I)V
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-void
|
|
|
|
:cond_2
|
|
const-string p0, "mimeType"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
const-string p0, "uri"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final setCornerRadius(Landroid/widget/ImageView;FZLjava/lang/Integer;)V
|
|
.locals 3
|
|
.param p3 # Ljava/lang/Integer;
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
new-instance p1, Le/j/g/f/c;
|
|
|
|
invoke-direct {p1}, Le/j/g/f/c;-><init>()V
|
|
|
|
iput-boolean v0, p1, Le/j/g/f/c;->b:Z
|
|
|
|
sget-object p2, Le/j/g/f/c$a;->d:Le/j/g/f/c$a;
|
|
|
|
iput-object p2, p1, Le/j/g/f/c;->a:Le/j/g/f/c$a;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p2, Le/j/g/f/c;
|
|
|
|
invoke-direct {p2}, Le/j/g/f/c;-><init>()V
|
|
|
|
invoke-virtual {p2}, Le/j/g/f/c;->a()[F
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1, p1}, Ljava/util/Arrays;->fill([FF)V
|
|
|
|
move-object p1, p2
|
|
|
|
:goto_0
|
|
sget p2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
const-string v2, "roundingParams"
|
|
|
|
if-ne p2, v1, :cond_1
|
|
|
|
invoke-static {p1, v2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-boolean v0, p1, Le/j/g/f/c;->i:Z
|
|
|
|
:cond_1
|
|
if-eqz p3, :cond_2
|
|
|
|
invoke-virtual {p3}, Ljava/lang/Number;->intValue()I
|
|
|
|
invoke-static {p1, v2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p3}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1, p2}, Le/j/g/f/c;->a(I)Le/j/g/f/c;
|
|
|
|
:cond_2
|
|
sget-object p2, Lcom/discord/utilities/images/MGImages;->INSTANCE:Lcom/discord/utilities/images/MGImages;
|
|
|
|
invoke-direct {p2, p0}, Lcom/discord/utilities/images/MGImages;->getHierarchy(Landroid/widget/ImageView;)Lcom/facebook/drawee/generic/GenericDraweeHierarchy;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->a(Le/j/g/f/c;)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
const-string p0, "view"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static synthetic setCornerRadius$default(Landroid/widget/ImageView;FZLjava/lang/Integer;ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p4, p4, 0x8
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:cond_0
|
|
invoke-static {p0, p1, p2, p3}, Lcom/discord/utilities/images/MGImages;->setCornerRadius(Landroid/widget/ImageView;FZLjava/lang/Integer;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;ILcom/discord/utilities/images/MGImages$ChangeDetector;)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {p2, p0, v0}, Lcom/discord/utilities/images/MGImages$ChangeDetector;->track(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
sget-object p2, Lcom/discord/utilities/images/MGImages;->INSTANCE:Lcom/discord/utilities/images/MGImages;
|
|
|
|
invoke-direct {p2, p0}, Lcom/discord/utilities/images/MGImages;->getHierarchy(Landroid/widget/ImageView;)Lcom/facebook/drawee/generic/GenericDraweeHierarchy;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->f(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p0, "changeDetector"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p0, "view"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;Ljava/lang/String;)V
|
|
.locals 9
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x7c
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-static/range {v0 .. v8}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;Ljava/lang/String;I)V
|
|
.locals 9
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x78
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
invoke-static/range {v0 .. v8}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;Ljava/lang/String;II)V
|
|
.locals 9
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x70
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
invoke-static/range {v0 .. v8}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;Ljava/lang/String;IIZ)V
|
|
.locals 9
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x60
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
move v4, p4
|
|
|
|
invoke-static/range {v0 .. v8}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;)V
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/widget/ImageView;",
|
|
"Ljava/lang/String;",
|
|
"IIZ",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lcom/facebook/imagepipeline/request/ImageRequestBuilder;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x40
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
move v4, p4
|
|
|
|
move-object v5, p5
|
|
|
|
invoke-static/range {v0 .. v8}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;)V
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/widget/ImageView;",
|
|
"Ljava/lang/String;",
|
|
"IIZ",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lcom/facebook/imagepipeline/request/ImageRequestBuilder;",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lcom/discord/utilities/images/MGImages$ChangeDetector;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object/from16 v6, p6
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
invoke-interface {v6, p0, p1}, Lcom/discord/utilities/images/MGImages$ChangeDetector;->track(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-static {p1}, Lx/a0/p;->isBlank(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v2, 0x1
|
|
|
|
new-array v2, v2, [Ljava/lang/String;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v1, v2, v3
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0x80
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, v2
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
move v4, p4
|
|
|
|
move-object v5, p5
|
|
|
|
move-object/from16 v6, p6
|
|
|
|
invoke-static/range {v0 .. v9}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;[Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Lcom/facebook/drawee/controller/ControllerListener;ILjava/lang/Object;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
sget-object v1, Lcom/discord/utilities/images/MGImages;->INSTANCE:Lcom/discord/utilities/images/MGImages;
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/utilities/images/MGImages;->getDrawee(Landroid/widget/ImageView;)Lcom/facebook/drawee/view/DraweeView;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v2}, Lcom/facebook/drawee/view/DraweeView;->setController(Le/j/g/h/a;)V
|
|
|
|
:goto_1
|
|
return-void
|
|
|
|
:cond_3
|
|
const-string v0, "changeDetector"
|
|
|
|
invoke-static {v0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_4
|
|
const-string v0, "view"
|
|
|
|
invoke-static {v0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;[Ljava/lang/String;)V
|
|
.locals 10
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0xfc
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-static/range {v0 .. v9}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;[Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Lcom/facebook/drawee/controller/ControllerListener;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;[Ljava/lang/String;I)V
|
|
.locals 10
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0xf8
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
invoke-static/range {v0 .. v9}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;[Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Lcom/facebook/drawee/controller/ControllerListener;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;[Ljava/lang/String;II)V
|
|
.locals 10
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0xf0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
invoke-static/range {v0 .. v9}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;[Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Lcom/facebook/drawee/controller/ControllerListener;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;[Ljava/lang/String;IIZ)V
|
|
.locals 10
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0xe0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
move v4, p4
|
|
|
|
invoke-static/range {v0 .. v9}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;[Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Lcom/facebook/drawee/controller/ControllerListener;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;[Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;)V
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/widget/ImageView;",
|
|
"[",
|
|
"Ljava/lang/String;",
|
|
"IIZ",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lcom/facebook/imagepipeline/request/ImageRequestBuilder;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0xc0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
move v4, p4
|
|
|
|
move-object v5, p5
|
|
|
|
invoke-static/range {v0 .. v9}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;[Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Lcom/facebook/drawee/controller/ControllerListener;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;[Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;)V
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/widget/ImageView;",
|
|
"[",
|
|
"Ljava/lang/String;",
|
|
"IIZ",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lcom/facebook/imagepipeline/request/ImageRequestBuilder;",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lcom/discord/utilities/images/MGImages$ChangeDetector;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0x80
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
move v4, p4
|
|
|
|
move-object v5, p5
|
|
|
|
move-object/from16 v6, p6
|
|
|
|
invoke-static/range {v0 .. v9}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;[Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Lcom/facebook/drawee/controller/ControllerListener;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setImage(Landroid/widget/ImageView;[Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Lcom/facebook/drawee/controller/ControllerListener;)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/widget/ImageView;",
|
|
"[",
|
|
"Ljava/lang/String;",
|
|
"IIZ",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lcom/facebook/imagepipeline/request/ImageRequestBuilder;",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lcom/discord/utilities/images/MGImages$ChangeDetector;",
|
|
"Lcom/facebook/drawee/controller/ControllerListener<",
|
|
"Lcom/facebook/imagepipeline/image/ImageInfo;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_9
|
|
|
|
if-eqz p1, :cond_8
|
|
|
|
if-eqz p6, :cond_7
|
|
|
|
invoke-interface {p6, p0, p1}, Lcom/discord/utilities/images/MGImages$ChangeDetector;->track(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p6
|
|
|
|
if-nez p6, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
array-length p6, p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-nez p6, :cond_1
|
|
|
|
const/4 p6, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p6, 0x0
|
|
|
|
:goto_0
|
|
if-eqz p6, :cond_2
|
|
|
|
sget-object p1, Lcom/discord/utilities/images/MGImages;->INSTANCE:Lcom/discord/utilities/images/MGImages;
|
|
|
|
invoke-direct {p1, p0}, Lcom/discord/utilities/images/MGImages;->getDrawee(Landroid/widget/ImageView;)Lcom/facebook/drawee/view/DraweeView;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/facebook/drawee/view/DraweeView;->setController(Le/j/g/h/a;)V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
new-instance p6, Ljava/util/ArrayList;
|
|
|
|
array-length v0, p1
|
|
|
|
invoke-direct {p6, v0}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
array-length v0, p1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_1
|
|
if-ge v3, v0, :cond_4
|
|
|
|
aget-object v4, p1, v3
|
|
|
|
invoke-static {v4, p2, p3, p4}, Lcom/discord/utilities/images/MGImages;->getImageRequest(Ljava/lang/String;IIZ)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz p5, :cond_3
|
|
|
|
invoke-interface {p5, v4}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lkotlin/Unit;
|
|
|
|
:cond_3
|
|
invoke-virtual {v4}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a()Le/j/j/p/c;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {p6, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
new-array p1, v1, [Le/j/j/p/c;
|
|
|
|
invoke-interface {p6, p1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
check-cast p1, [Le/j/j/p/c;
|
|
|
|
invoke-static {}, Le/j/g/a/a/b;->b()Le/j/g/a/a/d;
|
|
|
|
move-result-object p2
|
|
|
|
sget-object p3, Lcom/discord/utilities/images/MGImages;->INSTANCE:Lcom/discord/utilities/images/MGImages;
|
|
|
|
invoke-direct {p3, p0}, Lcom/discord/utilities/images/MGImages;->getDrawee(Landroid/widget/ImageView;)Lcom/facebook/drawee/view/DraweeView;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p3}, Lcom/facebook/drawee/view/DraweeView;->getController()Le/j/g/h/a;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p2, Le/j/g/c/a;->n:Le/j/g/h/a;
|
|
|
|
iput-object p7, p2, Le/j/g/c/a;->i:Lcom/facebook/drawee/controller/ControllerListener;
|
|
|
|
iput-boolean v2, p2, Le/j/g/c/a;->k:Z
|
|
|
|
array-length p3, p1
|
|
|
|
if-lez p3, :cond_5
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_5
|
|
const-string p3, "No requests specified!"
|
|
|
|
invoke-static {v1, p3}, Lr/a/b/b/a;->a(ZLjava/lang/Object;)V
|
|
|
|
iput-object p1, p2, Le/j/g/c/a;->f:[Ljava/lang/Object;
|
|
|
|
iput-boolean v2, p2, Le/j/g/c/a;->g:Z
|
|
|
|
sget-object p1, Lcom/discord/utilities/images/MGImages;->INSTANCE:Lcom/discord/utilities/images/MGImages;
|
|
|
|
invoke-direct {p1, p0}, Lcom/discord/utilities/images/MGImages;->getDrawee(Landroid/widget/ImageView;)Lcom/facebook/drawee/view/DraweeView;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p2}, Le/j/g/c/a;->a()Lcom/facebook/drawee/controller/AbstractDraweeController;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/facebook/drawee/view/DraweeView;->setController(Le/j/g/h/a;)V
|
|
|
|
return-void
|
|
|
|
:cond_6
|
|
new-instance p0, Lx/l;
|
|
|
|
const-string p1, "null cannot be cast to non-null type kotlin.Array<T>"
|
|
|
|
invoke-direct {p0, p1}, Lx/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_7
|
|
const-string p0, "changeDetector"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_8
|
|
const-string p0, "urls"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_9
|
|
const-string p0, "view"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static synthetic setImage$default(Landroid/widget/ImageView;ILcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p3, p3, 0x4
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
sget-object p2, Lcom/discord/utilities/images/MGImages$AlwaysUpdateChangeDetector;->INSTANCE:Lcom/discord/utilities/images/MGImages$AlwaysUpdateChangeDetector;
|
|
|
|
:cond_0
|
|
invoke-static {p0, p1, p2}, Lcom/discord/utilities/images/MGImages;->setImage(Landroid/widget/ImageView;ILcom/discord/utilities/images/MGImages$ChangeDetector;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic setImage$default(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
.locals 5
|
|
|
|
and-int/lit8 v0, p7, 0x4
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, p2
|
|
|
|
:goto_0
|
|
and-int/lit8 v2, p7, 0x8
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v2, p3
|
|
|
|
:goto_1
|
|
and-int/lit8 v3, p7, 0x10
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v1, p4
|
|
|
|
:goto_2
|
|
and-int/lit8 v3, p7, 0x20
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
const/4 v3, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-object v3, p5
|
|
|
|
:goto_3
|
|
and-int/lit8 v4, p7, 0x40
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
sget-object v4, Lcom/discord/utilities/images/MGImages$AlwaysUpdateChangeDetector;->INSTANCE:Lcom/discord/utilities/images/MGImages$AlwaysUpdateChangeDetector;
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
move-object v4, p6
|
|
|
|
:goto_4
|
|
move-object p2, p0
|
|
|
|
move-object p3, p1
|
|
|
|
move p4, v0
|
|
|
|
move p5, v2
|
|
|
|
move p6, v1
|
|
|
|
move-object p7, v3
|
|
|
|
move-object p8, v4
|
|
|
|
invoke-static/range {p2 .. p8}, Lcom/discord/utilities/images/MGImages;->setImage(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic setImage$default(Landroid/widget/ImageView;[Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Lcom/facebook/drawee/controller/ControllerListener;ILjava/lang/Object;)V
|
|
.locals 7
|
|
|
|
move v0, p8
|
|
|
|
and-int/lit8 v1, v0, 0x4
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, p2
|
|
|
|
:goto_0
|
|
and-int/lit8 v3, v0, 0x8
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v3, p3
|
|
|
|
:goto_1
|
|
and-int/lit8 v4, v0, 0x10
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v2, p4
|
|
|
|
:goto_2
|
|
and-int/lit8 v4, v0, 0x20
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
move-object v4, v5
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-object v4, p5
|
|
|
|
:goto_3
|
|
and-int/lit8 v6, v0, 0x40
|
|
|
|
if-eqz v6, :cond_4
|
|
|
|
sget-object v6, Lcom/discord/utilities/images/MGImages$AlwaysUpdateChangeDetector;->INSTANCE:Lcom/discord/utilities/images/MGImages$AlwaysUpdateChangeDetector;
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
move-object v6, p6
|
|
|
|
:goto_4
|
|
and-int/lit16 v0, v0, 0x80
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
move-object v5, p7
|
|
|
|
:goto_5
|
|
move-object p2, p0
|
|
|
|
move-object p3, p1
|
|
|
|
move p4, v1
|
|
|
|
move p5, v3
|
|
|
|
move p6, v2
|
|
|
|
move-object p7, v4
|
|
|
|
move-object p8, v6
|
|
|
|
move-object/from16 p9, v5
|
|
|
|
invoke-static/range {p2 .. p9}, Lcom/discord/utilities/images/MGImages;->setImage(Landroid/widget/ImageView;[Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;Lcom/facebook/drawee/controller/ControllerListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic setImage$default(Lcom/discord/utilities/images/MGImages;Landroid/widget/ImageView;Landroid/net/Uri;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
sget-object p3, Lcom/discord/utilities/images/MGImages$AlwaysUpdateChangeDetector;->INSTANCE:Lcom/discord/utilities/images/MGImages$AlwaysUpdateChangeDetector;
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/utilities/images/MGImages;->setImage(Landroid/widget/ImageView;Landroid/net/Uri;Lcom/discord/utilities/images/MGImages$ChangeDetector;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final setScaleType(Landroid/widget/ImageView;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
sget-object v0, Lcom/discord/utilities/images/MGImages;->INSTANCE:Lcom/discord/utilities/images/MGImages;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/utilities/images/MGImages;->getHierarchy(Landroid/widget/ImageView;)Lcom/facebook/drawee/generic/GenericDraweeHierarchy;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->a(Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p0, "scaleType"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p0, "view"
|
|
|
|
invoke-static {p0}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final setImage(Landroid/widget/ImageView;Landroid/net/Uri;Lcom/discord/utilities/images/MGImages$ChangeDetector;)V
|
|
.locals 9
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
invoke-virtual {p2}, Landroid/net/Uri;->getScheme()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "android.resource"
|
|
|
|
invoke-static {v0, v1}, Lx/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p2}, Landroid/net/Uri;->getHost()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "view.context"
|
|
|
|
invoke-static {v1, v2}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Lx/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p2}, Landroid/net/Uri;->getLastPathSegment()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-static {p2}, Lx/a0/o;->toIntOrNull(Ljava/lang/String;)Ljava/lang/Integer;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p2, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {p1, p2, p3}, Lcom/discord/utilities/images/MGImages;->setImage(Landroid/widget/ImageView;ILcom/discord/utilities/images/MGImages$ChangeDetector;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/16 v7, 0x3c
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v0, p1
|
|
|
|
move-object v6, p3
|
|
|
|
invoke-static/range {v0 .. v8}, Lcom/discord/utilities/images/MGImages;->setImage$default(Landroid/widget/ImageView;Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
|
|
:goto_1
|
|
return-void
|
|
|
|
:cond_2
|
|
const-string p1, "changeDetector"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
const-string p1, "uri"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
const-string p1, "view"
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|