78 lines
1.9 KiB
Smali
78 lines
1.9 KiB
Smali
.class Landroidx/browser/customtabs/CustomTabsIntent$Api21Impl;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
api = 0x15
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/browser/customtabs/CustomTabsIntent;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "Api21Impl"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1790
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getLocaleForLanguageTag(Landroid/content/Intent;)Ljava/util/Locale;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/DoNotInline;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
const-string v0, "androidx.browser.customtabs.extra.TRANSLATE_LANGUAGE_TAG"
|
|
|
|
.line 1799
|
|
invoke-virtual {p0, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 1800
|
|
invoke-static {p0}, Ljava/util/Locale;->forLanguageTag(Ljava/lang/String;)Ljava/util/Locale;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static setLanguageTag(Landroid/content/Intent;Ljava/util/Locale;)V
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/DoNotInline;
|
|
.end annotation
|
|
|
|
const-string v0, "androidx.browser.customtabs.extra.TRANSLATE_LANGUAGE_TAG"
|
|
|
|
.line 1793
|
|
invoke-virtual {p1}, Ljava/util/Locale;->toLanguageTag()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, v0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
return-void
|
|
.end method
|