[Android Q&A, Help & Troubleshooting] RuthlessFTW:
Hi I am trying to change the default language from english to spanish. There are 10 languages in the apk that you can change in settings (radio buttons). This smali file is where I think the change needs to be made. My problem is I can't make a change that will let the apk recompile. Can someone give me a tip? Thanks!

.class public final Lcom/xtreampro/xtreamproiptv/utils/l;
.super Ljava/lang/Object;
.source ""

# direct methods
.method public static final a(Ljava/lang/String;)Ljava/lang/String;
.locals 2
.param p0 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation

const-string v0, "code"

invoke-static {p0, v0}, Li/y/c/h;->c(Ljava/lang/Object;Ljava/lang/String;)V

invoke-virtual {p0}, Ljava/lang/String;->hashCode()I

move-result v0

const/16 v1, 0xc31

if-eq v0, v1, :cond_8

const/16 v1, 0xc81

if-eq v0, v1, :cond_7

const/16 v1, 0xcae

if-eq v0, v1, :cond_6

const/16 v1, 0xccc

if-eq v0, v1, :cond_5

const/16 v1, 0xd01

if-eq v0, v1, :cond_4

const/16 v1, 0xd2b

if-eq v0, v1, :cond_3

const/16 v1, 0xe04

if-eq v0, v1, :cond_2

const/16 v1, 0xe3d

if-eq v0, v1, :cond_1

const/16 v1, 0xe7e

if-eq v0, v1, :cond_0

goto/16 :goto_0

:cond_0
const-string v0, "tr"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result p0

if-eqz p0, :cond_9

const-string p0, "Turkish"

goto :goto_1

:cond_1
const-string v0, "ro"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result p0

if-eqz p0, :cond_9

const-string p0, "Romanian"

goto :goto_1

:cond_2
const-string v0, "pt"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result p0

if-eqz p0, :cond_9

const-string p0, "Portuguese"

goto :goto_1

:cond_3
const-string v0, "it"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result p0

if-eqz p0, :cond_9

const-string p0, "Italian"

goto :goto_1

:cond_4
const-string v0, "hi"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result p0

if-eqz p0, :cond_9

const-string p0, "Hindi"

goto :goto_1

:cond_5
const-string v0, "fr"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result p0

if-eqz p0, :cond_9

const-string p0, "French"

goto :goto_1

:cond_6
const-string v0, "es"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result p0

if-eqz p0, :cond_9

const-string p0, "Spanish"

goto :goto_1

:cond_7
const-string v0, "de"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result p0

if-eqz p0, :cond_9

const-string p0, "German"

goto :goto_1

:cond_8
const-string v0, "ar"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result p0

if-eqz p0, :cond_9

const-string p0, "Arabic"

goto :goto_1

:cond_9
:goto_0
const-string p0, "English"

:goto_1
return-object p0
.end method

.method public static final b()[Ljava/lang/String;
.locals 10
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation

const-string v0, "en"

const-string v1, "ar"

const-string v2, "fr"

const-string v3, "de"

const-string v4, "hi"

const-string v5, "it"

const-string v6, "pt"

const-string v7, "ro"

const-string v8, "es"

const-string v9, "tr"

filled-new-array/range {v0 .. v9}, [Ljava/lang/String;

move-result-object v0

return-object v0
.end method

.method public static final c(Landroid/content/Context;)V
.locals 5
.param p0 # Landroid/content/Context;
.annotation build Lorg/jetbrains/annotations/Nullable;
.end annotation
.end param

sget-object v0, Le/f/a/d/g;->c:Le/f/a/d/g;

invoke-virtual {v0}, Le/f/a/d/g;->w()Ljava/lang/String;

move-result-object v0

if-eqz p0, :cond_0

invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v1

invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

move-result-object v2

const-string v3, "context.applicationContext"

invoke-static {v2, v3}, Li/y/c/h;->b(Ljava/lang/Object;Ljava/lang/String;)V

invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v2

new-instance v3, Ljava/util/Locale;

invoke-direct {v3, v0}, Ljava/util/Locale;-><init>(Ljava/lang/String;)V

invoke-static {v3}, Ljava/util/Locale;->setDefault(Ljava/util/Locale;)V

new-instance v0, Landroid/content/res/Configuration;

invoke-direct {v0}, Landroid/content/res/Configuration;-><init>()V

iput-object v3, v0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

const-string v4, "resources"

invoke-static {v1, v4}, Li/y/c/h;->b(Ljava/lang/Object;Ljava/lang/String;)V

invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

move-result-object v4

invoke-virtual {v1, v0, v4}, Landroid/content/res/Resources;->updateConfiguration(Landroid/content/res/Configuration;Landroid/util/DisplayMetrics;)V

invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

move-result-object v4

invoke-virtual {v2, v0, v4}, Landroid/content/res/Resources;->updateConfiguration(Landroid/content/res/Configuration;Landroid/util/DisplayMetrics;)V

invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

move-result-object v0

invoke-virtual {v0, v3}, Landroid/content/res/Configuration;->setLocale(Ljava/util/Locale;)V

invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

move-result-object v1

invoke-virtual {v1, v0}, Landroid/content/Context;->createConfigurationContext(Landroid/content/res/Configuration;)Landroid/content/Context;

invoke-virtual {p0, v0}, Landroid/content/Context;->createConfigurationContext(Landroid/content/res/Configuration;)Landroid/content/Context;

:cond_0
return-void
.end method