1915 lines
34 KiB
Smali
1915 lines
34 KiB
Smali
.class public Lcom/discord/widgets/settings/WidgetSettingsLanguage;
|
|
.super Lcom/discord/app/AppFragment;
|
|
|
|
|
|
# instance fields
|
|
.field language:Landroid/view/View;
|
|
.annotation runtime Lbutterknife/BindView;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field languageFlag:Landroid/widget/ImageView;
|
|
.annotation runtime Lbutterknife/BindView;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field languageText:Landroid/widget/TextView;
|
|
.annotation runtime Lbutterknife/BindView;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field syncSwitch:Lcom/discord/views/CheckedSetting;
|
|
.annotation runtime Lbutterknife/BindView;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private configureUI(Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->languageText:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->languageText:Landroid/widget/TextView;
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->getLocaleResId(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0, v1}, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->languageFlag:Landroid/widget/ImageView;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->languageFlag:Landroid/widget/ImageView;
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->getLocaleFlagResId(Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getAsStringInLocale(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
sparse-switch v0, :sswitch_data_0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:sswitch_0
|
|
const-string v0, "zh-TW"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x11
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_1
|
|
const-string v0, "zh-CN"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x1a
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_2
|
|
const-string v0, "sv-SE"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xa
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_3
|
|
const-string v0, "pt-BR"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x9
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_4
|
|
const-string v0, "es-ES"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x4
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_5
|
|
const-string v0, "en-US"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x2
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_6
|
|
const-string v0, "en-GB"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x3
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_7
|
|
const-string v0, "uk"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xf
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_8
|
|
const-string v0, "tr"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xb
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_9
|
|
const-string v0, "ru"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xe
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_a
|
|
const-string v0, "ro"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x19
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_b
|
|
const-string v0, "pl"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x8
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_c
|
|
const-string v0, "no"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x15
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_d
|
|
const-string v0, "nl"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x7
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_e
|
|
const-string v0, "lt"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x17
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_f
|
|
const-string v0, "ko"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x12
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_10
|
|
const-string v0, "ja"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x10
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_11
|
|
const-string v0, "it"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x6
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_12
|
|
const-string v0, "hu"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x18
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_13
|
|
const-string v0, "hr"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x13
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_14
|
|
const-string v0, "fr"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x5
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_15
|
|
const-string v0, "fi"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x14
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_16
|
|
const-string v0, "el"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x16
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_17
|
|
const-string v0, "de"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_18
|
|
const-string v0, "da"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_19
|
|
const-string v0, "cs"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xc
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_1a
|
|
const-string v0, "bg"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xd
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
const/4 p0, -0x1
|
|
|
|
:goto_1
|
|
packed-switch p0, :pswitch_data_0
|
|
|
|
const-string p0, "English, USA"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_0
|
|
const-string p0, "\u4e2d\u6587"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_1
|
|
const-string p0, "Rom\u00e2n\u0103"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_2
|
|
const-string p0, "Magyar"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_3
|
|
const-string p0, "Lietuvi\u0161kai"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_4
|
|
const-string p0, "\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_5
|
|
const-string p0, "Norsk"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_6
|
|
const-string p0, "Suomi"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_7
|
|
const-string p0, "Hrvatski"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_8
|
|
const-string p0, "\ud55c\uad6d\uc5b4"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_9
|
|
const-string p0, "\u7e41\u9ad4\u4e2d\u6587"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_a
|
|
const-string p0, "\u65e5\u672c\u8a9e"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_b
|
|
const-string p0, "\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0438\u0439"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_c
|
|
const-string p0, "\u0420\u0443\u0441\u0441\u043a\u0438\u0439"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_d
|
|
const-string p0, "\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_e
|
|
const-string p0, "\u010ce\u0161tina"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_f
|
|
const-string p0, "T\u00fcrk\u00e7e"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_10
|
|
const-string p0, "Svenska"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_11
|
|
const-string p0, "Portugu\u00eas do Brasil"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_12
|
|
const-string p0, "Polski"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_13
|
|
const-string p0, "Nederlands"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_14
|
|
const-string p0, "Italiano"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_15
|
|
const-string p0, "Fran\u00e7ais"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_16
|
|
const-string p0, "Espa\u00f1ol"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_17
|
|
const-string p0, "English, UK"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_18
|
|
const-string p0, "English, USA"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_19
|
|
const-string p0, "Deutsch"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_1a
|
|
const-string p0, "Dansk"
|
|
|
|
return-object p0
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
0xc45 -> :sswitch_1a
|
|
0xc70 -> :sswitch_19
|
|
0xc7d -> :sswitch_18
|
|
0xc81 -> :sswitch_17
|
|
0xca7 -> :sswitch_16
|
|
0xcc3 -> :sswitch_15
|
|
0xccc -> :sswitch_14
|
|
0xd0a -> :sswitch_13
|
|
0xd0d -> :sswitch_12
|
|
0xd2b -> :sswitch_11
|
|
0xd37 -> :sswitch_10
|
|
0xd64 -> :sswitch_f
|
|
0xd88 -> :sswitch_e
|
|
0xdbe -> :sswitch_d
|
|
0xdc1 -> :sswitch_c
|
|
0xdfc -> :sswitch_b
|
|
0xe3d -> :sswitch_a
|
|
0xe43 -> :sswitch_9
|
|
0xe7e -> :sswitch_8
|
|
0xe96 -> :sswitch_7
|
|
0x5c1f87f -> :sswitch_6
|
|
0x5c1fa42 -> :sswitch_5
|
|
0x5c43e2d -> :sswitch_4
|
|
0x65fb4b9 -> :sswitch_3
|
|
0x68ae5fc -> :sswitch_2
|
|
0x6e72b6a -> :sswitch_1
|
|
0x6e72d82 -> :sswitch_0
|
|
.end sparse-switch
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_1a
|
|
:pswitch_19
|
|
:pswitch_18
|
|
:pswitch_17
|
|
:pswitch_16
|
|
:pswitch_15
|
|
:pswitch_14
|
|
:pswitch_13
|
|
:pswitch_12
|
|
:pswitch_11
|
|
:pswitch_10
|
|
:pswitch_f
|
|
:pswitch_e
|
|
:pswitch_d
|
|
:pswitch_c
|
|
:pswitch_b
|
|
:pswitch_a
|
|
:pswitch_9
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public static getLocaleFlagResId(Ljava/lang/String;)I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
sparse-switch v0, :sswitch_data_0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:sswitch_0
|
|
const-string v0, "zh-TW"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x11
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_1
|
|
const-string v0, "zh-CN"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x19
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_2
|
|
const-string v0, "sv-SE"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xa
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_3
|
|
const-string v0, "pt-BR"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x9
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_4
|
|
const-string v0, "es-ES"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x4
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_5
|
|
const-string v0, "en-US"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x2
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_6
|
|
const-string v0, "en-GB"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x3
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_7
|
|
const-string v0, "uk"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xf
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_8
|
|
const-string v0, "tr"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xb
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_9
|
|
const-string v0, "ru"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xe
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_a
|
|
const-string v0, "ro"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x18
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_b
|
|
const-string v0, "pl"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x8
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_c
|
|
const-string v0, "no"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x14
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_d
|
|
const-string v0, "nl"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x7
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_e
|
|
const-string v0, "lt"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x16
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_f
|
|
const-string v0, "ko"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x12
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_10
|
|
const-string v0, "ja"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x10
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_11
|
|
const-string v0, "it"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x6
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_12
|
|
const-string v0, "hu"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x17
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_13
|
|
const-string v0, "hr"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x1a
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_14
|
|
const-string v0, "fr"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x5
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_15
|
|
const-string v0, "fi"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x13
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_16
|
|
const-string v0, "el"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x15
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_17
|
|
const-string v0, "de"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_18
|
|
const-string v0, "da"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_19
|
|
const-string v0, "cs"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xc
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_1a
|
|
const-string v0, "bg"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xd
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
const/4 p0, -0x1
|
|
|
|
:goto_1
|
|
const v0, 0x7f08031c
|
|
|
|
packed-switch p0, :pswitch_data_0
|
|
|
|
return v0
|
|
|
|
:pswitch_0
|
|
const p0, 0x7f080333
|
|
|
|
return p0
|
|
|
|
:pswitch_1
|
|
const p0, 0x7f08032c
|
|
|
|
return p0
|
|
|
|
:pswitch_2
|
|
const p0, 0x7f080323
|
|
|
|
return p0
|
|
|
|
:pswitch_3
|
|
const p0, 0x7f080327
|
|
|
|
return p0
|
|
|
|
:pswitch_4
|
|
const p0, 0x7f08031a
|
|
|
|
return p0
|
|
|
|
:pswitch_5
|
|
const p0, 0x7f080329
|
|
|
|
return p0
|
|
|
|
:pswitch_6
|
|
const p0, 0x7f08031f
|
|
|
|
return p0
|
|
|
|
:pswitch_7
|
|
const p0, 0x7f080326
|
|
|
|
return p0
|
|
|
|
:pswitch_8
|
|
const p0, 0x7f080334
|
|
|
|
return p0
|
|
|
|
:pswitch_9
|
|
const p0, 0x7f080325
|
|
|
|
return p0
|
|
|
|
:pswitch_a
|
|
const p0, 0x7f080331
|
|
|
|
return p0
|
|
|
|
:pswitch_b
|
|
const p0, 0x7f08032d
|
|
|
|
return p0
|
|
|
|
:pswitch_c
|
|
const p0, 0x7f080316
|
|
|
|
return p0
|
|
|
|
:pswitch_d
|
|
const p0, 0x7f080317
|
|
|
|
return p0
|
|
|
|
:pswitch_e
|
|
const p0, 0x7f080330
|
|
|
|
return p0
|
|
|
|
:pswitch_f
|
|
const p0, 0x7f08032f
|
|
|
|
return p0
|
|
|
|
:pswitch_10
|
|
const p0, 0x7f08032b
|
|
|
|
return p0
|
|
|
|
:pswitch_11
|
|
const p0, 0x7f08032a
|
|
|
|
return p0
|
|
|
|
:pswitch_12
|
|
const p0, 0x7f080328
|
|
|
|
return p0
|
|
|
|
:pswitch_13
|
|
const p0, 0x7f080324
|
|
|
|
return p0
|
|
|
|
:pswitch_14
|
|
const p0, 0x7f080320
|
|
|
|
return p0
|
|
|
|
:pswitch_15
|
|
const p0, 0x7f08031d
|
|
|
|
return p0
|
|
|
|
:pswitch_16
|
|
const p0, 0x7f08031b
|
|
|
|
return p0
|
|
|
|
:pswitch_17
|
|
return v0
|
|
|
|
:pswitch_18
|
|
const p0, 0x7f080319
|
|
|
|
return p0
|
|
|
|
:pswitch_19
|
|
const p0, 0x7f080318
|
|
|
|
return p0
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
0xc45 -> :sswitch_1a
|
|
0xc70 -> :sswitch_19
|
|
0xc7d -> :sswitch_18
|
|
0xc81 -> :sswitch_17
|
|
0xca7 -> :sswitch_16
|
|
0xcc3 -> :sswitch_15
|
|
0xccc -> :sswitch_14
|
|
0xd0a -> :sswitch_13
|
|
0xd0d -> :sswitch_12
|
|
0xd2b -> :sswitch_11
|
|
0xd37 -> :sswitch_10
|
|
0xd64 -> :sswitch_f
|
|
0xd88 -> :sswitch_e
|
|
0xdbe -> :sswitch_d
|
|
0xdc1 -> :sswitch_c
|
|
0xdfc -> :sswitch_b
|
|
0xe3d -> :sswitch_a
|
|
0xe43 -> :sswitch_9
|
|
0xe7e -> :sswitch_8
|
|
0xe96 -> :sswitch_7
|
|
0x5c1f87f -> :sswitch_6
|
|
0x5c1fa42 -> :sswitch_5
|
|
0x5c43e2d -> :sswitch_4
|
|
0x65fb4b9 -> :sswitch_3
|
|
0x68ae5fc -> :sswitch_2
|
|
0x6e72b6a -> :sswitch_1
|
|
0x6e72d82 -> :sswitch_0
|
|
.end sparse-switch
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_19
|
|
:pswitch_18
|
|
:pswitch_17
|
|
:pswitch_16
|
|
:pswitch_15
|
|
:pswitch_14
|
|
:pswitch_13
|
|
:pswitch_12
|
|
:pswitch_11
|
|
:pswitch_10
|
|
:pswitch_f
|
|
:pswitch_e
|
|
:pswitch_d
|
|
:pswitch_c
|
|
:pswitch_b
|
|
:pswitch_a
|
|
:pswitch_9
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public static getLocaleResId(Ljava/lang/String;)I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
sparse-switch v0, :sswitch_data_0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:sswitch_0
|
|
const-string v0, "zh-TW"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x11
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_1
|
|
const-string v0, "zh-CN"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x1a
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_2
|
|
const-string v0, "sv-SE"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xa
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_3
|
|
const-string v0, "pt-BR"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x9
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_4
|
|
const-string v0, "es-ES"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x4
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_5
|
|
const-string v0, "en-US"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x2
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_6
|
|
const-string v0, "en-GB"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x3
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_7
|
|
const-string v0, "uk"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xf
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_8
|
|
const-string v0, "tr"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xb
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_9
|
|
const-string v0, "ru"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xe
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_a
|
|
const-string v0, "ro"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x19
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_b
|
|
const-string v0, "pl"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x8
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_c
|
|
const-string v0, "no"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x15
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_d
|
|
const-string v0, "nl"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x7
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_e
|
|
const-string v0, "lt"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x17
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_f
|
|
const-string v0, "ko"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x12
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_10
|
|
const-string v0, "ja"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x10
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_11
|
|
const-string v0, "it"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x6
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_12
|
|
const-string v0, "hu"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x18
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_13
|
|
const-string v0, "hr"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x13
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_14
|
|
const-string v0, "fr"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x5
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_15
|
|
const-string v0, "fi"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x14
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_16
|
|
const-string v0, "el"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x16
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_17
|
|
const-string v0, "de"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_18
|
|
const-string v0, "da"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_19
|
|
const-string v0, "cs"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xc
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_1a
|
|
const-string v0, "bg"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0xd
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
const/4 p0, -0x1
|
|
|
|
:goto_1
|
|
const v0, 0x7f1204ab
|
|
|
|
packed-switch p0, :pswitch_data_0
|
|
|
|
return v0
|
|
|
|
:pswitch_0
|
|
const p0, 0x7f120fd5
|
|
|
|
return p0
|
|
|
|
:pswitch_1
|
|
const p0, 0x7f120c2f
|
|
|
|
return p0
|
|
|
|
:pswitch_2
|
|
const p0, 0x7f1207aa
|
|
|
|
return p0
|
|
|
|
:pswitch_3
|
|
const p0, 0x7f12094d
|
|
|
|
return p0
|
|
|
|
:pswitch_4
|
|
const p0, 0x7f120493
|
|
|
|
return p0
|
|
|
|
:pswitch_5
|
|
const p0, 0x7f1209e7
|
|
|
|
return p0
|
|
|
|
:pswitch_6
|
|
const p0, 0x7f1204d9
|
|
|
|
return p0
|
|
|
|
:pswitch_7
|
|
const p0, 0x7f1207a9
|
|
|
|
return p0
|
|
|
|
:pswitch_8
|
|
const p0, 0x7f120925
|
|
|
|
return p0
|
|
|
|
:pswitch_9
|
|
const p0, 0x7f120fd6
|
|
|
|
return p0
|
|
|
|
:pswitch_a
|
|
const p0, 0x7f1208cb
|
|
|
|
return p0
|
|
|
|
:pswitch_b
|
|
const p0, 0x7f120e78
|
|
|
|
return p0
|
|
|
|
:pswitch_c
|
|
const p0, 0x7f120c43
|
|
|
|
return p0
|
|
|
|
:pswitch_d
|
|
const p0, 0x7f120245
|
|
|
|
return p0
|
|
|
|
:pswitch_e
|
|
const p0, 0x7f1203e9
|
|
|
|
return p0
|
|
|
|
:pswitch_f
|
|
const p0, 0x7f120e39
|
|
|
|
return p0
|
|
|
|
:pswitch_10
|
|
const p0, 0x7f120d9e
|
|
|
|
return p0
|
|
|
|
:pswitch_11
|
|
const p0, 0x7f120bc3
|
|
|
|
return p0
|
|
|
|
:pswitch_12
|
|
const p0, 0x7f120b3b
|
|
|
|
return p0
|
|
|
|
:pswitch_13
|
|
const p0, 0x7f1209e6
|
|
|
|
return p0
|
|
|
|
:pswitch_14
|
|
const p0, 0x7f1208ca
|
|
|
|
return p0
|
|
|
|
:pswitch_15
|
|
const p0, 0x7f120599
|
|
|
|
return p0
|
|
|
|
:pswitch_16
|
|
const p0, 0x7f1204bc
|
|
|
|
return p0
|
|
|
|
:pswitch_17
|
|
const p0, 0x7f1204aa
|
|
|
|
return p0
|
|
|
|
:pswitch_18
|
|
return v0
|
|
|
|
:pswitch_19
|
|
const p0, 0x7f120409
|
|
|
|
return p0
|
|
|
|
:pswitch_1a
|
|
const p0, 0x7f1203ef
|
|
|
|
return p0
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
0xc45 -> :sswitch_1a
|
|
0xc70 -> :sswitch_19
|
|
0xc7d -> :sswitch_18
|
|
0xc81 -> :sswitch_17
|
|
0xca7 -> :sswitch_16
|
|
0xcc3 -> :sswitch_15
|
|
0xccc -> :sswitch_14
|
|
0xd0a -> :sswitch_13
|
|
0xd0d -> :sswitch_12
|
|
0xd2b -> :sswitch_11
|
|
0xd37 -> :sswitch_10
|
|
0xd64 -> :sswitch_f
|
|
0xd88 -> :sswitch_e
|
|
0xdbe -> :sswitch_d
|
|
0xdc1 -> :sswitch_c
|
|
0xdfc -> :sswitch_b
|
|
0xe3d -> :sswitch_a
|
|
0xe43 -> :sswitch_9
|
|
0xe7e -> :sswitch_8
|
|
0xe96 -> :sswitch_7
|
|
0x5c1f87f -> :sswitch_6
|
|
0x5c1fa42 -> :sswitch_5
|
|
0x5c43e2d -> :sswitch_4
|
|
0x65fb4b9 -> :sswitch_3
|
|
0x68ae5fc -> :sswitch_2
|
|
0x6e72b6a -> :sswitch_1
|
|
0x6e72d82 -> :sswitch_0
|
|
.end sparse-switch
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_1a
|
|
:pswitch_19
|
|
:pswitch_18
|
|
:pswitch_17
|
|
:pswitch_16
|
|
:pswitch_15
|
|
:pswitch_14
|
|
:pswitch_13
|
|
:pswitch_12
|
|
:pswitch_11
|
|
:pswitch_10
|
|
:pswitch_f
|
|
:pswitch_e
|
|
:pswitch_d
|
|
:pswitch_c
|
|
:pswitch_b
|
|
:pswitch_a
|
|
:pswitch_9
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public static synthetic lambda$AWuECKBpqbjUpxHSAXswu3BoV1U(Lcom/discord/widgets/settings/WidgetSettingsLanguage;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->configureUI(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic lambda$onViewBoundOrOnResume$0(Lcom/discord/widgets/settings/WidgetSettingsLanguage;Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/settings/WidgetSettingsLanguageSelect;->show(Landroidx/fragment/app/FragmentManager;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static launch(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const-class v0, Lcom/discord/widgets/settings/WidgetSettingsLanguage;
|
|
|
|
invoke-static {p0, v0}, Lcom/discord/app/e;->c(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d0162
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onActivityCreated(Landroid/os/Bundle;)V
|
|
.locals 0
|
|
.param p1 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onActivityCreated(Landroid/os/Bundle;)V
|
|
|
|
const p1, 0x7f120f05
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->setActionBarSubtitle(I)Lkotlin/Unit;
|
|
|
|
const p1, 0x7f120926
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->setActionBarTitle(I)Lkotlin/Unit;
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->setActionBarDisplayHomeAsUpEnabled()Landroidx/appcompat/widget/Toolbar;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onViewBoundOrOnResume()V
|
|
.locals 4
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUserSettings;->getLocaleObservable()Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p0}, Lcom/discord/app/g;->b(Lcom/discord/app/AppComponent;)Lrx/Observable$Transformer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lcom/discord/widgets/settings/-$$Lambda$WidgetSettingsLanguage$AWuECKBpqbjUpxHSAXswu3BoV1U;
|
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/settings/-$$Lambda$WidgetSettingsLanguage$AWuECKBpqbjUpxHSAXswu3BoV1U;-><init>(Lcom/discord/widgets/settings/WidgetSettingsLanguage;)V
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v2, v3}, Lcom/discord/app/g;->a(Lrx/functions/Action1;Ljava/lang/Class;)Lrx/Observable$Transformer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->syncSwitch:Lcom/discord/views/CheckedSetting;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->syncSwitch:Lcom/discord/views/CheckedSetting;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUserSettings;->getLocaleSync()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/views/CheckedSetting;->setChecked(Z)V
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->syncSwitch:Lcom/discord/views/CheckedSetting;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
new-instance v2, Lcom/discord/widgets/settings/-$$Lambda$KZ3o3eC-AFZKFFGsrIhQKbQC3DM;
|
|
|
|
invoke-direct {v2, v0}, Lcom/discord/widgets/settings/-$$Lambda$KZ3o3eC-AFZKFFGsrIhQKbQC3DM;-><init>(Lcom/discord/stores/StoreUserSettings;)V
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/views/CheckedSetting;->setOnCheckedListener(Lrx/functions/Action1;)V
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->language:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsLanguage;->language:Landroid/view/View;
|
|
|
|
new-instance v1, Lcom/discord/widgets/settings/-$$Lambda$WidgetSettingsLanguage$Zp4pidMnvB30jk2LvaG609Kp1nU;
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/settings/-$$Lambda$WidgetSettingsLanguage$Zp4pidMnvB30jk2LvaG609Kp1nU;-><init>(Lcom/discord/widgets/settings/WidgetSettingsLanguage;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|