50 lines
1.2 KiB
Smali
50 lines
1.2 KiB
Smali
.class public final Landroidx/core/os/ConfigurationCompat;
|
|
.super Ljava/lang/Object;
|
|
.source "ConfigurationCompat.java"
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getLocales(Landroid/content/res/Configuration;)Landroidx/core/os/LocaleListCompat;
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x18
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/content/res/Configuration;->getLocales()Landroid/os/LocaleList;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Landroidx/core/os/LocaleListCompat;->wrap(Ljava/lang/Object;)Landroidx/core/os/LocaleListCompat;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [Ljava/util/Locale;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iget-object p0, p0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;
|
|
|
|
aput-object p0, v0, v1
|
|
|
|
invoke-static {v0}, Landroidx/core/os/LocaleListCompat;->create([Ljava/util/Locale;)Landroidx/core/os/LocaleListCompat;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|