41 lines
1.3 KiB
Smali
41 lines
1.3 KiB
Smali
.class public final Lcom/discord/utilities/locale/LocaleUtilsKt;
|
|
.super Ljava/lang/Object;
|
|
.source "LocaleUtils.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final getPrimaryLocale(Landroid/content/Context;)Ljava/util/Locale;
|
|
.locals 1
|
|
|
|
const-string v0, "receiver$0"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "resources"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Landroidx/core/os/ConfigurationCompat;->getLocales(Landroid/content/res/Configuration;)Landroidx/core/os/LocaleListCompat;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/core/os/LocaleListCompat;->get(I)Ljava/util/Locale;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "ConfigurationCompat.getL\u2026sources.configuration)[0]"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|