apkfuckery/com.discord/smali/com/discord/widgets/settings/WidgetSettingsLanguageSelect$Model.smali

165 lines
3.6 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect$Model;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "WidgetSettingsLanguageSelect.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x19
2019-07-24 11:27:29 +00:00
name = "Model"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect$Model$Item;
}
.end annotation
# static fields
.field public static final INSTANCE:Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect$Model;
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-07-24 11:27:29 +00:00
.locals 1
new-instance v0, Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect$Model;
invoke-direct {v0}, Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect$Model;-><init>()V
sput-object v0, Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect$Model;->INSTANCE:Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect$Model;
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final getLocales()Ljava/util/List;
2019-11-20 22:09:14 +00:00
.locals 29
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect$Model$Item;",
">;"
}
.end annotation
2019-11-20 22:09:14 +00:00
const-string v0, "da"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v1, "de"
2019-07-24 11:27:29 +00:00
const-string v2, "en-GB"
2019-11-20 22:09:14 +00:00
const-string v3, "en-US"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v4, "es-ES"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v5, "fr"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v6, "hr"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v7, "it"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v8, "lt"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v9, "hu"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v10, "nl"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v11, "no"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v12, "pl"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v13, "pt-BR"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v14, "ro"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v15, "fi"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v16, "sv-SE"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v17, "vi"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v18, "tr"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v19, "cs"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v20, "el"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v21, "bg"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v22, "ru"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v23, "uk"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v24, "ja"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v25, "zh-TW"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v26, "th"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v27, "zh-CN"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v28, "ko"
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
filled-new-array/range {v0 .. v28}, [Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v0}, Le/k/a/b/e/p/g;->listOf([Ljava/lang/Object;)Ljava/util/List;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-20 22:09:14 +00:00
new-instance v1, Ljava/util/ArrayList;
const/16 v2, 0xa
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v0, v2}, Le/k/a/b/e/p/g;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
move-result v2
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2019-11-20 22:09:14 +00:00
move-result v2
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
if-eqz v2, :cond_0
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2019-11-20 22:09:14 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
check-cast v2, Ljava/lang/String;
2019-07-24 11:27:29 +00:00
new-instance v3, Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect$Model$Item;
2019-11-20 22:09:14 +00:00
invoke-direct {v3, v2}, Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect$Model$Item;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
invoke-interface {v1, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
goto :goto_0
:cond_0
2019-11-20 22:09:14 +00:00
return-object v1
2019-07-24 11:27:29 +00:00
.end method