109 lines
2.9 KiB
Smali
109 lines
2.9 KiB
Smali
.class final Lcom/discord/app/AppActivity$c;
|
|
.super Lkotlin/jvm/internal/k;
|
|
.source "AppActivity.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/app/AppActivity;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/internal/k;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"Landroid/content/res/Resources;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic $locale:Ljava/util/Locale;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Ljava/util/Locale;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/app/AppActivity$c;->$locale:Ljava/util/Locale;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/jvm/internal/k;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final b(Landroid/content/res/Resources;)V
|
|
.locals 2
|
|
|
|
const-string v0, "receiver$0"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/app/AppActivity$c;->$locale:Ljava/util/Locale;
|
|
|
|
invoke-static {v0}, Ljava/util/Locale;->setDefault(Ljava/util/Locale;)V
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x18
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/app/AppActivity$c;->$locale:Ljava/util/Locale;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Configuration;->setLocale(Ljava/util/Locale;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/app/AppActivity$c;->$locale:Ljava/util/Locale;
|
|
|
|
iput-object v1, v0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;
|
|
|
|
:goto_0
|
|
invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/res/Resources;->updateConfiguration(Landroid/content/res/Configuration;Landroid/util/DisplayMetrics;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Landroid/content/res/Resources;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/app/AppActivity$c;->b(Landroid/content/res/Resources;)V
|
|
|
|
sget-object p1, Lkotlin/Unit;->bbI:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
.end method
|