apkfuckery/com.discord/smali/com/discord/views/FailedUploadList.smali

511 lines
14 KiB
Smali
Raw Normal View History

2020-08-10 21:02:22 +00:00
.class public final Lcom/discord/views/FailedUploadList;
.super Landroid/widget/LinearLayout;
.source "FailedUploadList.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/views/FailedUploadList$a;,
Lcom/discord/views/FailedUploadList$b;
}
.end annotation
# static fields
.field public static final synthetic e:[Lkotlin/reflect/KProperty;
# instance fields
.field public final d:Lkotlin/properties/ReadOnlyProperty;
# direct methods
.method public static constructor <clinit>()V
.locals 5
const/4 v0, 0x1
new-array v0, v0, [Lkotlin/reflect/KProperty;
2020-09-09 19:21:20 +00:00
const-class v1, Lcom/discord/views/FailedUploadList;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const-string v2, "failedUploadViews"
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const-string v3, "getFailedUploadViews()Ljava/util/List;"
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const/4 v4, 0x0
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v1, v2, v3, v4}, Lf/e/b/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lk0/n/c/r;
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v1
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
aput-object v1, v0, v4
2020-08-10 21:02:22 +00:00
sput-object v0, Lcom/discord/views/FailedUploadList;->e:[Lkotlin/reflect/KProperty;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 0
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
const/4 p1, 0x3
new-array p1, p1, [I
fill-array-data p1, :array_0
2020-09-09 19:21:20 +00:00
const-string p2, "$this$bindViews"
invoke-static {p0, p2}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string p2, "ids"
invoke-static {p1, p2}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sget-object p2, Lm0/d;->d:Lm0/d;
invoke-static {p1, p2}, Lk0/j/a;->K([ILkotlin/jvm/functions/Function2;)Lm0/h;
2020-08-10 21:02:22 +00:00
move-result-object p1
iput-object p1, p0, Lcom/discord/views/FailedUploadList;->d:Lkotlin/properties/ReadOnlyProperty;
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object p1
2020-09-14 18:37:20 +00:00
const p2, 0x7f0d0117
2020-08-10 21:02:22 +00:00
invoke-static {p1, p2, p0}, Landroid/widget/LinearLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
return-void
:array_0
.array-data 4
2020-09-10 21:23:57 +00:00
0x7f0a0274
0x7f0a0275
0x7f0a0276
2020-08-10 21:02:22 +00:00
.end array-data
.end method
.method private final getFailedUploadViews()Ljava/util/List;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/discord/views/FailedUploadView;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/views/FailedUploadList;->d:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/views/FailedUploadList;->e:[Lkotlin/reflect/KProperty;
const/4 v2, 0x0
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/List;
return-object v0
.end method
# virtual methods
.method public final setUp(Ljava/util/List;)V
2020-09-09 19:21:20 +00:00
.locals 10
2020-08-10 21:02:22 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/discord/models/messages/LocalAttachment;",
">;)V"
}
.end annotation
2020-09-09 19:21:20 +00:00
const-string v0, "localAttachments"
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-08-10 21:02:22 +00:00
invoke-direct {p0}, Lcom/discord/views/FailedUploadList;->getFailedUploadViews()Ljava/util/List;
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-08-10 21:02:22 +00:00
:goto_0
2020-09-09 19:21:20 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result v1
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v1, :cond_0
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v1
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
check-cast v1, Lcom/discord/views/FailedUploadView;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const/16 v2, 0x8
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V
2020-08-10 21:02:22 +00:00
goto :goto_0
:cond_0
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
2020-09-09 19:21:20 +00:00
move-result v0
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const/4 v1, 0x1
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
xor-int/2addr v0, v1
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v0, :cond_6
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
new-instance v0, Ljava/util/ArrayList;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const/16 v2, 0xa
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p1, v2}, Lf/h/a/f/e/n/f;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result v3
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v0, v3}, Ljava/util/ArrayList;-><init>(I)V
2020-08-10 21:02:22 +00:00
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_1
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
2020-09-09 19:21:20 +00:00
move-result v3
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v3, :cond_1
2020-08-10 21:02:22 +00:00
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
check-cast v3, Lcom/discord/models/messages/LocalAttachment;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v3}, Lcom/discord/utilities/attachments/AttachmentUtilsKt;->toAttachment(Lcom/discord/models/messages/LocalAttachment;)Lcom/lytefast/flexinput/model/Attachment;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
2020-08-10 21:02:22 +00:00
goto :goto_1
:cond_1
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
2020-08-10 21:02:22 +00:00
move-result p1
2020-09-09 19:21:20 +00:00
const/4 v3, 0x3
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const-string v4, "context.contentResolver"
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const-string v5, "context"
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
if-gt p1, v3, :cond_3
2020-08-10 21:02:22 +00:00
new-instance p1, Ljava/util/ArrayList;
2020-09-09 19:21:20 +00:00
invoke-static {v0, v2}, Lf/h/a/f/e/n/f;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result v2
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {p1, v2}, Ljava/util/ArrayList;-><init>(I)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-08-10 21:02:22 +00:00
:goto_2
2020-09-09 19:21:20 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result v2
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v2, :cond_2
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v2
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
check-cast v2, Lcom/lytefast/flexinput/model/Attachment;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
new-instance v3, Lcom/discord/views/FailedUploadList$a;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v2}, Lcom/lytefast/flexinput/model/Attachment;->getDisplayName()Ljava/lang/String;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v6
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v2}, Lcom/lytefast/flexinput/model/Attachment;->getUri()Landroid/net/Uri;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v7
2020-08-10 21:02:22 +00:00
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
2020-09-09 19:21:20 +00:00
move-result-object v8
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v8, v5}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v8
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v8, v4}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v7, v8}, Lcom/discord/utilities/rest/SendUtilsKt;->computeFileSizeBytes(Landroid/net/Uri;Landroid/content/ContentResolver;)J
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-wide v7
2020-08-10 21:02:22 +00:00
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
2020-09-09 19:21:20 +00:00
move-result-object v9
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v9, v5}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v9}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v9
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v2, v9}, Lcom/discord/utilities/attachments/AttachmentUtilsKt;->getMimeType(Lcom/lytefast/flexinput/model/Attachment;Landroid/content/ContentResolver;)Ljava/lang/String;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v2
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v3, v6, v7, v8, v2}, Lcom/discord/views/FailedUploadList$a;-><init>(Ljava/lang/String;JLjava/lang/String;)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {p1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
2020-08-10 21:02:22 +00:00
goto :goto_2
:cond_2
2020-09-09 19:21:20 +00:00
new-instance v0, Lcom/discord/views/FailedUploadList$b$a;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v0, p1}, Lcom/discord/views/FailedUploadList$b$a;-><init>(Ljava/util/List;)V
2020-08-10 21:02:22 +00:00
goto :goto_4
:cond_3
2020-09-09 19:21:20 +00:00
const-wide/16 v2, 0x0
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
2020-08-10 21:02:22 +00:00
move-result-object p1
:goto_3
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
2020-09-09 19:21:20 +00:00
move-result v6
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v6, :cond_4
2020-08-10 21:02:22 +00:00
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-09-09 19:21:20 +00:00
move-result-object v6
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
check-cast v6, Lcom/lytefast/flexinput/model/Attachment;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v6}, Lcom/lytefast/flexinput/model/Attachment;->getUri()Landroid/net/Uri;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v6
2020-08-10 21:02:22 +00:00
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
2020-09-09 19:21:20 +00:00
move-result-object v7
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v7, v5}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v7}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v7
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v7, v4}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v6, v7}, Lcom/discord/utilities/rest/SendUtilsKt;->computeFileSizeBytes(Landroid/net/Uri;Landroid/content/ContentResolver;)J
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-wide v6
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
add-long/2addr v2, v6
2020-08-10 21:02:22 +00:00
goto :goto_3
:cond_4
new-instance p1, Lcom/discord/views/FailedUploadList$b$b;
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result v0
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {p1, v0, v2, v3}, Lcom/discord/views/FailedUploadList$b$b;-><init>(IJ)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-object v0, p1
2020-08-10 21:02:22 +00:00
:goto_4
nop
2020-09-09 19:21:20 +00:00
instance-of p1, v0, Lcom/discord/views/FailedUploadList$b$a;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const/4 v2, 0x0
2020-08-10 21:02:22 +00:00
if-eqz p1, :cond_5
2020-09-09 19:21:20 +00:00
check-cast v0, Lcom/discord/views/FailedUploadList$b$a;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
iget-object p1, v0, Lcom/discord/views/FailedUploadList$b$a;->a:Ljava/util/List;
2020-08-10 21:02:22 +00:00
invoke-interface {p1}, Ljava/util/Collection;->size()I
move-result v0
const/4 v1, 0x0
:goto_5
if-ge v1, v0, :cond_6
invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
check-cast v3, Lcom/discord/views/FailedUploadList$a;
2020-08-10 21:02:22 +00:00
invoke-direct {p0}, Lcom/discord/views/FailedUploadList;->getFailedUploadViews()Ljava/util/List;
move-result-object v4
invoke-interface {v4, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/discord/views/FailedUploadView;
2020-09-09 19:21:20 +00:00
invoke-virtual {v4, v2}, Landroid/view/View;->setVisibility(I)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
iget-object v6, v3, Lcom/discord/views/FailedUploadList$a;->a:Ljava/lang/String;
2020-08-10 21:02:22 +00:00
invoke-virtual {v4}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object v7
2020-09-09 19:21:20 +00:00
invoke-static {v7, v5}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
iget-object v8, v3, Lcom/discord/views/FailedUploadList$a;->c:Ljava/lang/String;
2020-08-10 21:02:22 +00:00
invoke-static {v7, v8}, Lcom/discord/utilities/file/FileUtilsKt;->getIconForFiletype(Landroid/content/Context;Ljava/lang/String;)I
move-result v7
2020-09-09 19:21:20 +00:00
iget-wide v8, v3, Lcom/discord/views/FailedUploadList$a;->b:J
2020-08-10 21:02:22 +00:00
invoke-static {v8, v9}, Lcom/discord/utilities/file/FileUtilsKt;->getSizeSubtitle(J)Ljava/lang/String;
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v4, v6, v7, v3}, Lcom/discord/views/FailedUploadView;->a(Ljava/lang/String;ILjava/lang/String;)V
2020-08-10 21:02:22 +00:00
add-int/lit8 v1, v1, 0x1
goto :goto_5
:cond_5
2020-09-09 19:21:20 +00:00
instance-of p1, v0, Lcom/discord/views/FailedUploadList$b$b;
2020-08-10 21:02:22 +00:00
if-eqz p1, :cond_6
2020-09-09 19:21:20 +00:00
check-cast v0, Lcom/discord/views/FailedUploadList$b$b;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
iget p1, v0, Lcom/discord/views/FailedUploadList$b$b;->a:I
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
iget-wide v3, v0, Lcom/discord/views/FailedUploadList$b$b;->b:J
2020-08-10 21:02:22 +00:00
invoke-direct {p0}, Lcom/discord/views/FailedUploadList;->getFailedUploadViews()Ljava/util/List;
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-08-10 21:02:22 +00:00
2020-09-10 21:23:57 +00:00
invoke-static {v0}, Lk0/i/f;->first(Ljava/util/List;)Ljava/lang/Object;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
check-cast v0, Landroid/view/View;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
2020-08-10 21:02:22 +00:00
invoke-direct {p0}, Lcom/discord/views/FailedUploadList;->getFailedUploadViews()Ljava/util/List;
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-08-10 21:02:22 +00:00
2020-09-10 21:23:57 +00:00
invoke-static {v0}, Lk0/i/f;->first(Ljava/util/List;)Ljava/lang/Object;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
check-cast v0, Lcom/discord/views/FailedUploadView;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v6
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const-string v7, "resources"
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v6, v7}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v7
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v7, v5}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
new-array v1, v1, [Ljava/lang/Object;
2020-08-10 21:02:22 +00:00
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2020-09-09 19:21:20 +00:00
move-result-object v8
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
aput-object v8, v1, v2
2020-08-10 21:02:22 +00:00
2020-09-14 18:37:20 +00:00
const v8, 0x7f100103
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v6, v7, v8, p1, v1}, Lcom/discord/utilities/resources/StringResourceUtilsKt;->getQuantityString(Landroid/content/res/Resources;Landroid/content/Context;II[Ljava/lang/Object;)Ljava/lang/String;
2020-08-10 21:02:22 +00:00
move-result-object p1
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v1
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v1, v5}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const v5, 0x7f040300
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const/4 v6, 0x2
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
const/4 v7, 0x0
2020-08-10 21:02:22 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v1, v5, v2, v6, v7}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result v1
invoke-static {v3, v4}, Lcom/discord/utilities/file/FileUtilsKt;->getSizeSubtitle(J)Ljava/lang/String;
2020-08-10 21:02:22 +00:00
move-result-object v2
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, p1, v1, v2}, Lcom/discord/views/FailedUploadView;->a(Ljava/lang/String;ILjava/lang/String;)V
2020-08-10 21:02:22 +00:00
:cond_6
return-void
.end method