apkfuckery/com.discord/smali/f/a/e/a$a.smali
2020-05-17 12:40:10 +00:00

112 lines
2.5 KiB
Smali

.class public final Lf/a/e/a$a;
.super Ly/v/b/k;
.source "LocaleProvider.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lf/a/e/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ly/v/b/k;",
"Lkotlin/jvm/functions/Function1<",
"Landroid/content/Context;",
"Ljava/util/Locale;",
">;"
}
.end annotation
# static fields
.field public static final d:Lf/a/e/a$a;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lf/a/e/a$a;
invoke-direct {v0}, Lf/a/e/a$a;-><init>()V
sput-object v0, Lf/a/e/a$a;->d:Lf/a/e/a$a;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x1
invoke-direct {p0, v0}, Ly/v/b/k;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Landroid/content/Context;
invoke-virtual {p0, p1}, Lf/a/e/a$a;->invoke(Landroid/content/Context;)Ljava/util/Locale;
move-result-object p1
return-object p1
.end method
.method public final invoke(Landroid/content/Context;)Ljava/util/Locale;
.locals 1
if-eqz p1, :cond_0
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object p1
const-string v0, "context.resources"
invoke-static {p1, v0}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object p1
invoke-static {p1}, Landroidx/core/os/ConfigurationCompat;->getLocales(Landroid/content/res/Configuration;)Landroidx/core/os/LocaleListCompat;
move-result-object p1
const/4 v0, 0x0
invoke-virtual {p1, v0}, Landroidx/core/os/LocaleListCompat;->get(I)Ljava/util/Locale;
move-result-object p1
const-string v0, "ConfigurationCompat.getL\u2026sources.configuration)[0]"
invoke-static {p1, v0}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object p1
:cond_0
const-string p1, "context"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method