214 lines
6.5 KiB
Smali
214 lines
6.5 KiB
Smali
|
.class public final Landroidx/browser/customtabs/CustomTabColorSchemeParams;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "CustomTabColorSchemeParams.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final navigationBarColor:Ljava/lang/Integer;
|
||
|
.annotation build Landroidx/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field public final secondaryToolbarColor:Ljava/lang/Integer;
|
||
|
.annotation build Landroidx/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field public final toolbarColor:Ljava/lang/Integer;
|
||
|
.annotation build Landroidx/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
|
||
|
.locals 0
|
||
|
.param p1 # Ljava/lang/Integer;
|
||
|
.annotation build Landroidx/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p2 # Ljava/lang/Integer;
|
||
|
.annotation build Landroidx/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p3 # Ljava/lang/Integer;
|
||
|
.annotation build Landroidx/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toolbarColor:Ljava/lang/Integer;
|
||
|
|
||
|
iput-object p2, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->secondaryToolbarColor:Ljava/lang/Integer;
|
||
|
|
||
|
iput-object p3, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->navigationBarColor:Ljava/lang/Integer;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static fromBundle(Landroid/os/Bundle;)Landroidx/browser/customtabs/CustomTabColorSchemeParams;
|
||
|
.locals 4
|
||
|
.param p0 # Landroid/os/Bundle;
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
if-nez p0, :cond_0
|
||
|
|
||
|
new-instance p0, Landroid/os/Bundle;
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-direct {p0, v0}, Landroid/os/Bundle;-><init>(I)V
|
||
|
|
||
|
:cond_0
|
||
|
new-instance v0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.TOOLBAR_COLOR"
|
||
|
|
||
|
invoke-virtual {p0, v1}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
check-cast v1, Ljava/lang/Integer;
|
||
|
|
||
|
const-string v2, "android.support.customtabs.extra.SECONDARY_TOOLBAR_COLOR"
|
||
|
|
||
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Ljava/lang/Integer;
|
||
|
|
||
|
const-string v3, "androidx.browser.customtabs.extra.NAVIGATION_BAR_COLOR"
|
||
|
|
||
|
invoke-virtual {p0, v3}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Ljava/lang/Integer;
|
||
|
|
||
|
invoke-direct {v0, v1, v2, p0}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;-><init>(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public toBundle()Landroid/os/Bundle;
|
||
|
.locals 3
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
new-instance v0, Landroid/os/Bundle;
|
||
|
|
||
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
||
|
|
||
|
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toolbarColor:Ljava/lang/Integer;
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
const-string v2, "android.support.customtabs.extra.TOOLBAR_COLOR"
|
||
|
|
||
|
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->secondaryToolbarColor:Ljava/lang/Integer;
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
const-string v2, "android.support.customtabs.extra.SECONDARY_TOOLBAR_COLOR"
|
||
|
|
||
|
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->navigationBarColor:Ljava/lang/Integer;
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
const-string v2, "androidx.browser.customtabs.extra.NAVIGATION_BAR_COLOR"
|
||
|
|
||
|
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
||
|
|
||
|
:cond_2
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public withDefaults(Landroidx/browser/customtabs/CustomTabColorSchemeParams;)Landroidx/browser/customtabs/CustomTabColorSchemeParams;
|
||
|
.locals 4
|
||
|
.param p1 # Landroidx/browser/customtabs/CustomTabColorSchemeParams;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
new-instance v0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;
|
||
|
|
||
|
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toolbarColor:Ljava/lang/Integer;
|
||
|
|
||
|
if-nez v1, :cond_0
|
||
|
|
||
|
iget-object v1, p1, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toolbarColor:Ljava/lang/Integer;
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->secondaryToolbarColor:Ljava/lang/Integer;
|
||
|
|
||
|
if-nez v2, :cond_1
|
||
|
|
||
|
iget-object v2, p1, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->secondaryToolbarColor:Ljava/lang/Integer;
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v3, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->navigationBarColor:Ljava/lang/Integer;
|
||
|
|
||
|
if-nez v3, :cond_2
|
||
|
|
||
|
iget-object v3, p1, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->navigationBarColor:Ljava/lang/Integer;
|
||
|
|
||
|
:cond_2
|
||
|
invoke-direct {v0, v1, v2, v3}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;-><init>(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|