111 lines
2.8 KiB
Smali
111 lines
2.8 KiB
Smali
.class public final Lcom/vk/extensions/NavigatorExt;
|
|
.super Ljava/lang/Object;
|
|
.source "NavigatorExt.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final a(Lcom/vk/navigation/Navigator;I)Lcom/vk/navigation/Navigator;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Lcom/vk/navigation/Navigator;",
|
|
">(",
|
|
"Lcom/vk/navigation/Navigator;",
|
|
"I)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "receiver$0"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->b(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 20
|
|
sget-object v0, Lcom/vk/core/util/AppContextHolder;->a:Landroid/content/Context;
|
|
|
|
const-string v1, "AppContextHolder.context"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getColor(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/vk/navigation/Navigator;->f(I)Lcom/vk/navigation/Navigator;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
new-instance p0, Lkotlin/TypeCastException;
|
|
|
|
const-string p1, "null cannot be cast to non-null type T"
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final a(Lcom/vk/navigation/Navigator;Lcom/vk/navigation/Navigator$a;)Lcom/vk/navigation/Navigator;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Lcom/vk/navigation/Navigator;",
|
|
">(",
|
|
"Lcom/vk/navigation/Navigator;",
|
|
"Lcom/vk/navigation/Navigator$a;",
|
|
")TT;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "receiver$0"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->b(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "an"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->b(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 13
|
|
sget-object v0, Lcom/vk/common/AppStateTracker;->a:Lcom/vk/common/AppStateTracker;
|
|
|
|
invoke-virtual {v0}, Lcom/vk/common/AppStateTracker;->b()Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/content/Context;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 14
|
|
invoke-static {v0}, Lcom/vk/core/util/Screen;->a(Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 15
|
|
invoke-virtual {p0, p1}, Lcom/vk/navigation/Navigator;->a(Lcom/vk/navigation/Navigator$a;)Lcom/vk/navigation/Navigator;
|
|
|
|
:cond_1
|
|
return-object p0
|
|
.end method
|