2822 lines
65 KiB
Smali
2822 lines
65 KiB
Smali
.class public final Lcom/vk/extensions/ViewExtKt;
|
|
.super Ljava/lang/Object;
|
|
.source "ViewExt.kt"
|
|
|
|
|
|
# static fields
|
|
.field static final synthetic a:[Lkotlin/u/KProperty5;
|
|
|
|
.field private static final b:Lkotlin/Lazy2;
|
|
|
|
.field private static final c:Lkotlin/Lazy2;
|
|
|
|
.field private static final d:Landroid/graphics/Rect;
|
|
|
|
.field private static final e:Lcom/vk/core/util/ThreadLocalDelegate;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 7
|
|
|
|
const-class v0, Lcom/vk/extensions/ViewExtKt;
|
|
|
|
const/4 v1, 0x3
|
|
|
|
new-array v1, v1, [Lkotlin/u/KProperty5;
|
|
|
|
new-instance v2, Lkotlin/jvm/internal/PropertyReference0Impl;
|
|
|
|
const-string v3, "libui_release"
|
|
|
|
invoke-static {v0, v3}, Lkotlin/jvm/internal/Reflection;->a(Ljava/lang/Class;Ljava/lang/String;)Lkotlin/u/KDeclarationContainer;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "viewExtClickLock"
|
|
|
|
const-string v6, "getViewExtClickLock()Lcom/vk/core/util/TimeoutLock;"
|
|
|
|
invoke-direct {v2, v4, v5, v6}, Lkotlin/jvm/internal/PropertyReference0Impl;-><init>(Lkotlin/u/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Reflection;->a(Lkotlin/jvm/internal/PropertyReference0;)Lkotlin/u/KProperty1;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
new-instance v2, Lkotlin/jvm/internal/PropertyReference0Impl;
|
|
|
|
invoke-static {v0, v3}, Lkotlin/jvm/internal/Reflection;->a(Ljava/lang/Class;Ljava/lang/String;)Lkotlin/u/KDeclarationContainer;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "bottomNavigationClickLock"
|
|
|
|
const-string v6, "getBottomNavigationClickLock()Lcom/vk/core/util/TimeoutLock;"
|
|
|
|
invoke-direct {v2, v4, v5, v6}, Lkotlin/jvm/internal/PropertyReference0Impl;-><init>(Lkotlin/u/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Reflection;->a(Lkotlin/jvm/internal/PropertyReference0;)Lkotlin/u/KProperty1;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
new-instance v2, Lkotlin/jvm/internal/PropertyReference0Impl;
|
|
|
|
invoke-static {v0, v3}, Lkotlin/jvm/internal/Reflection;->a(Ljava/lang/Class;Ljava/lang/String;)Lkotlin/u/KDeclarationContainer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v3, "location"
|
|
|
|
const-string v4, "getLocation()[I"
|
|
|
|
invoke-direct {v2, v0, v3, v4}, Lkotlin/jvm/internal/PropertyReference0Impl;-><init>(Lkotlin/u/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Reflection;->a(Lkotlin/jvm/internal/PropertyReference0;)Lkotlin/u/KProperty1;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
aput-object v2, v1, v0
|
|
|
|
sput-object v1, Lcom/vk/extensions/ViewExtKt;->a:[Lkotlin/u/KProperty5;
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/vk/extensions/ViewExtKt$viewExtClickLock$2;->a:Lcom/vk/extensions/ViewExtKt$viewExtClickLock$2;
|
|
|
|
invoke-static {v0}, Lkotlin/g;->a(Lkotlin/jvm/b/Functions;)Lkotlin/Lazy2;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/vk/extensions/ViewExtKt;->b:Lkotlin/Lazy2;
|
|
|
|
.line 2
|
|
sget-object v0, Lcom/vk/extensions/ViewExtKt$bottomNavigationClickLock$2;->a:Lcom/vk/extensions/ViewExtKt$bottomNavigationClickLock$2;
|
|
|
|
invoke-static {v0}, Lkotlin/g;->a(Lkotlin/jvm/b/Functions;)Lkotlin/Lazy2;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/vk/extensions/ViewExtKt;->c:Lkotlin/Lazy2;
|
|
|
|
.line 3
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
sput-object v0, Lcom/vk/extensions/ViewExtKt;->d:Landroid/graphics/Rect;
|
|
|
|
.line 4
|
|
sget-object v0, Lcom/vk/extensions/ViewExtKt$location$2;->a:Lcom/vk/extensions/ViewExtKt$location$2;
|
|
|
|
invoke-static {v0}, Lcom/vk/core/util/ThreadLocalDelegate1;->a(Lkotlin/jvm/b/Functions;)Lcom/vk/core/util/ThreadLocalDelegate;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/vk/extensions/ViewExtKt;->e:Lcom/vk/core/util/ThreadLocalDelegate;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;Landroid/graphics/Rect;)F
|
|
.locals 4
|
|
|
|
.line 29
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->getLocalVisibleRect(Landroid/graphics/Rect;)Z
|
|
|
|
.line 30
|
|
iget v0, p1, Landroid/graphics/Rect;->top:I
|
|
|
|
.line 31
|
|
iget v1, p1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
if-gez v1, :cond_0
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return v2
|
|
|
|
.line 32
|
|
:cond_0
|
|
iget p1, p1, Landroid/graphics/Rect;->top:I
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v3
|
|
|
|
if-lt p1, v3, :cond_1
|
|
|
|
return v2
|
|
|
|
:cond_1
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 33
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p1
|
|
|
|
int-to-float p1, p1
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
.line 34
|
|
invoke-virtual {p0}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result p0
|
|
|
|
int-to-float p0, p0
|
|
|
|
div-float/2addr p1, p0
|
|
|
|
const/16 p0, 0x64
|
|
|
|
int-to-float p0, p0
|
|
|
|
mul-float p1, p1, p0
|
|
|
|
invoke-static {p1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result p0
|
|
|
|
int-to-float p0, p0
|
|
|
|
const/high16 p1, 0x42c80000 # 100.0f
|
|
|
|
div-float/2addr p0, p1
|
|
|
|
invoke-static {v0, p0}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final a(Landroid/content/Context;)I
|
|
.locals 3
|
|
|
|
.line 35
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "navigation_bar_height"
|
|
|
|
const-string v1, "dimen"
|
|
|
|
const-string v2, "android"
|
|
|
|
.line 36
|
|
invoke-virtual {p0, v0, v1, v2}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
.line 37
|
|
invoke-virtual {p0, v0}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I
|
|
|
|
move-result p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;)I
|
|
.locals 1
|
|
|
|
.line 52
|
|
invoke-virtual {p0}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p0}, Lcom/vk/extensions/ViewExtKt;->j(Landroid/view/View;)I
|
|
|
|
move-result p0
|
|
|
|
add-int/2addr v0, p0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View$OnClickListener;)Landroid/view/View$OnClickListener;
|
|
.locals 1
|
|
|
|
.line 22
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$o;
|
|
|
|
invoke-direct {v0, p0}, Lcom/vk/extensions/ViewExtKt$o;-><init>(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final a(Lcom/vk/core/ui/BottomNavigationMenuViewClickListener;)Landroid/view/View$OnClickListener;
|
|
.locals 1
|
|
|
|
.line 21
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$t;
|
|
|
|
invoke-direct {v0, p0}, Lcom/vk/extensions/ViewExtKt$t;-><init>(Lcom/vk/core/ui/BottomNavigationMenuViewClickListener;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final a(Lkotlin/jvm/b/Functions2;)Landroid/view/View$OnClickListener;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/Unit;",
|
|
">;)",
|
|
"Landroid/view/View$OnClickListener;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 18
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$q;
|
|
|
|
invoke-direct {v0, p0}, Lcom/vk/extensions/ViewExtKt$q;-><init>(Lkotlin/jvm/b/Functions2;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final a(Lkotlin/jvm/b/Functions2;)Landroid/view/View$OnLongClickListener;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-",
|
|
"Landroid/view/View;",
|
|
"Ljava/lang/Boolean;",
|
|
">;)",
|
|
"Landroid/view/View$OnLongClickListener;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 19
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$r;
|
|
|
|
invoke-direct {v0, p0}, Lcom/vk/extensions/ViewExtKt$r;-><init>(Lkotlin/jvm/b/Functions2;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;I)Landroid/view/View;
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Landroid/view/View;",
|
|
">(",
|
|
"Landroid/view/View;",
|
|
"I)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 60
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, p1}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/ViewParent;I)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;ILandroid/view/View$OnClickListener;)Landroid/view/View;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Landroid/view/View;",
|
|
">(",
|
|
"Landroid/view/View;",
|
|
"I",
|
|
"Landroid/view/View$OnClickListener;",
|
|
")TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 5
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 6
|
|
invoke-virtual {p0, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;ILandroid/view/View$OnClickListener;Lkotlin/jvm/b/Functions2;)Landroid/view/View;
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Landroid/view/View;",
|
|
">(",
|
|
"Landroid/view/View;",
|
|
"I",
|
|
"Landroid/view/View$OnClickListener;",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-TT;",
|
|
"Lkotlin/Unit;",
|
|
">;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 8
|
|
invoke-static {p0, p1, p2, p3}, Lcom/vk/extensions/ViewExtKt;->b(Landroid/view/View;ILandroid/view/View$OnClickListener;Lkotlin/jvm/b/Functions2;)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
return-object p2
|
|
|
|
.line 9
|
|
:cond_0
|
|
new-instance p2, Ljava/lang/RuntimeException;
|
|
|
|
new-instance p3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v0, "View not found: "
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p0, p1}, Lcom/vk/core/util/ContextExtKt;->f(Landroid/content/Context;I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p2, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p2
|
|
.end method
|
|
|
|
.method public static synthetic a(Landroid/view/View;ILandroid/view/View$OnClickListener;Lkotlin/jvm/b/Functions2;ILjava/lang/Object;)Landroid/view/View;
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
.line 7
|
|
sget-object p3, Lcom/vk/extensions/ViewExtKt$find$1;->a:Lcom/vk/extensions/ViewExtKt$find$1;
|
|
|
|
:cond_1
|
|
invoke-static {p0, p1, p2, p3}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/View;ILandroid/view/View$OnClickListener;Lkotlin/jvm/b/Functions2;)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;ILkotlin/jvm/b/Functions2;)Landroid/view/View;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Landroid/view/View;",
|
|
">(",
|
|
"Landroid/view/View;",
|
|
"I",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/Unit;",
|
|
">;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 4
|
|
new-instance p1, Lcom/vk/extensions/ViewExt1;
|
|
|
|
invoke-direct {p1, p2}, Lcom/vk/extensions/ViewExt1;-><init>(Lkotlin/jvm/b/Functions2;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object p1, p2
|
|
|
|
:goto_0
|
|
check-cast p1, Landroid/view/View$OnClickListener;
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
:cond_1
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic a(Landroid/view/View;ILkotlin/jvm/b/Functions2;ILjava/lang/Object;)Landroid/view/View;
|
|
.locals 0
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-static {p0, p1, p2}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/View;ILkotlin/jvm/b/Functions2;)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/ViewGroup;IZ)Landroid/view/View;
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/LayoutRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 11
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1, p0, p2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, "LayoutInflater.from(cont\u2026tRes, this, attachToRoot)"
|
|
|
|
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic a(Landroid/view/ViewGroup;IZILjava/lang/Object;)Landroid/view/View;
|
|
.locals 0
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 10
|
|
:cond_0
|
|
invoke-static {p0, p1, p2}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/ViewGroup;IZ)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static final a(Landroid/view/ViewParent;I)Landroid/view/View;
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Landroid/view/View;",
|
|
">(",
|
|
"Landroid/view/ViewParent;",
|
|
"I)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 61
|
|
instance-of v0, p0, Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 62
|
|
check-cast p0, Landroid/view/View;
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 63
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, p1}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/ViewParent;I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/ViewParent;Lcom/vk/common/g/Predicate;)Landroid/view/View;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/ViewParent;",
|
|
"Lcom/vk/common/g/Predicate<",
|
|
"Landroid/view/View;",
|
|
">;)",
|
|
"Landroid/view/View;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 64
|
|
instance-of v0, p0, Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
invoke-interface {p1, v0}, Lcom/vk/common/g/Predicate;->a(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 65
|
|
:cond_0
|
|
instance-of v0, p0, Landroid/view/ViewGroup;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 66
|
|
move-object v1, p0
|
|
|
|
check-cast v1, Landroid/view/ViewGroup;
|
|
|
|
invoke-virtual {v1}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v2
|
|
|
|
:goto_0
|
|
if-ge v0, v2, :cond_2
|
|
|
|
.line 67
|
|
invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
.line 68
|
|
invoke-interface {p1, v3}, Lcom/vk/common/g/Predicate;->a(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
return-object v3
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 69
|
|
:cond_2
|
|
check-cast p0, Landroid/view/View;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, p1}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/ViewParent;Lcom/vk/common/g/Predicate;)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final a(Lkotlin/jvm/b/Functions2;)Landroidx/appcompat/widget/Toolbar$OnMenuItemClickListener;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-",
|
|
"Landroid/view/MenuItem;",
|
|
"Ljava/lang/Boolean;",
|
|
">;)",
|
|
"Landroidx/appcompat/widget/Toolbar$OnMenuItemClickListener;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 20
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$s;
|
|
|
|
invoke-direct {v0, p0}, Lcom/vk/extensions/ViewExtKt$s;-><init>(Lkotlin/jvm/b/Functions2;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final a(Landroid/widget/EditText;)Lio/reactivex/Observable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/widget/EditText;",
|
|
")",
|
|
"Lio/reactivex/Observable<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 77
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$a;
|
|
|
|
invoke-direct {v0, p0}, Lcom/vk/extensions/ViewExtKt$a;-><init>(Landroid/widget/EditText;)V
|
|
|
|
invoke-static {v0}, Lio/reactivex/Observable;->a(Lio/reactivex/ObservableOnSubscribe;)Lio/reactivex/Observable;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "Observable.create<String\u2026Listener(watcher) }\n }"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic a()Lcom/vk/core/util/TimeoutLock;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-static {}, Lcom/vk/extensions/ViewExtKt;->e()Lcom/vk/core/util/TimeoutLock;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;II)V
|
|
.locals 1
|
|
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
.line 74
|
|
invoke-static {p1, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p1
|
|
|
|
.line 75
|
|
invoke-static {p2, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p2
|
|
|
|
.line 76
|
|
invoke-virtual {p0, p1, p2}, Landroid/view/View;->measure(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;IIII)V
|
|
.locals 2
|
|
|
|
.line 46
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v1, v0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:cond_0
|
|
check-cast v0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 47
|
|
iput p1, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
.line 48
|
|
iput p2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
.line 49
|
|
iput p3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
.line 50
|
|
iput p4, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
.line 51
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic a(Landroid/view/View;IIIIILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p6, p5, 0x1
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
.line 42
|
|
invoke-static {p0}, Lcom/vk/extensions/ViewExtKt;->k(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
:cond_0
|
|
and-int/lit8 p6, p5, 0x2
|
|
|
|
if-eqz p6, :cond_1
|
|
|
|
.line 43
|
|
invoke-static {p0}, Lcom/vk/extensions/ViewExtKt;->m(Landroid/view/View;)I
|
|
|
|
move-result p2
|
|
|
|
:cond_1
|
|
and-int/lit8 p6, p5, 0x4
|
|
|
|
if-eqz p6, :cond_2
|
|
|
|
.line 44
|
|
invoke-static {p0}, Lcom/vk/extensions/ViewExtKt;->l(Landroid/view/View;)I
|
|
|
|
move-result p3
|
|
|
|
:cond_2
|
|
and-int/lit8 p5, p5, 0x8
|
|
|
|
if-eqz p5, :cond_3
|
|
|
|
.line 45
|
|
invoke-static {p0}, Lcom/vk/extensions/ViewExtKt;->j(Landroid/view/View;)I
|
|
|
|
move-result p4
|
|
|
|
:cond_3
|
|
invoke-static {p0, p1, p2, p3, p4}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/View;IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;ILjava/lang/Object;)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 12
|
|
invoke-static {}, Lb/h/g/g/BuildInfo;->h()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;JLkotlin/jvm/b/Functions;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"J",
|
|
"Lkotlin/jvm/b/Functions<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 25
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$d;
|
|
|
|
invoke-direct {v0, p0, p3, p1, p2}, Lcom/vk/extensions/ViewExtKt$d;-><init>(Landroid/view/View;Lkotlin/jvm/b/Functions;J)V
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic a(Landroid/view/View;JLkotlin/jvm/b/Functions;ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p4, p4, 0x1
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
const-wide/16 p1, 0x0
|
|
|
|
.line 24
|
|
:cond_0
|
|
invoke-static {p0, p1, p2, p3}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/View;JLkotlin/jvm/b/Functions;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;Landroid/view/View$OnClickListener;)V
|
|
.locals 0
|
|
|
|
.line 13
|
|
invoke-static {p1}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/View$OnClickListener;)Landroid/view/View$OnClickListener;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/vk/extensions/ViewExtKt;->b(Landroid/view/View$OnClickListener;)Landroid/view/View$OnClickListener;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;Lkotlin/jvm/b/Functions;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 28
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$b;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/vk/extensions/ViewExtKt$b;-><init>(Landroid/view/View;Lkotlin/jvm/b/Functions;)V
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->addOnAttachStateChangeListener(Landroid/view/View$OnAttachStateChangeListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;Lkotlin/jvm/b/Functions;J)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions<",
|
|
"Lkotlin/Unit;",
|
|
">;J)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 23
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$l;
|
|
|
|
invoke-direct {v0, p0, p1, p2, p3}, Lcom/vk/extensions/ViewExtKt$l;-><init>(Landroid/view/View;Lkotlin/jvm/b/Functions;J)V
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;Lkotlin/jvm/b/Functions2;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-",
|
|
"Landroid/graphics/Rect;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 26
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$f;
|
|
|
|
invoke-direct {v0, p1}, Lcom/vk/extensions/ViewExtKt$f;-><init>(Lkotlin/jvm/b/Functions2;)V
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setOnApplyWindowInsetsListener(Landroid/view/View$OnApplyWindowInsetsListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;Lkotlin/jvm/b/Functions1;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions1<",
|
|
"-",
|
|
"Ljava/lang/Float;",
|
|
"-",
|
|
"Ljava/lang/Float;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 70
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$n;
|
|
|
|
invoke-direct {v0}, Lcom/vk/extensions/ViewExtKt$n;-><init>()V
|
|
|
|
.line 71
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
|
|
|
|
.line 72
|
|
new-instance v1, Lcom/vk/extensions/ViewExtKt$setOnClickListenerWithCoordinates$1;
|
|
|
|
invoke-direct {v1, v0, p1}, Lcom/vk/extensions/ViewExtKt$setOnClickListenerWithCoordinates$1;-><init>(Lcom/vk/extensions/ViewExtKt$n;Lkotlin/jvm/b/Functions1;)V
|
|
|
|
invoke-static {p0, v1}, Lcom/vk/extensions/ViewExtKt;->e(Landroid/view/View;Lkotlin/jvm/b/Functions2;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;Lkotlin/jvm/b/Functions4;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions4<",
|
|
"-",
|
|
"Landroid/view/View;",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 41
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$g;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/vk/extensions/ViewExtKt$g;-><init>(Landroid/view/View;Lkotlin/jvm/b/Functions4;)V
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;Z)V
|
|
.locals 0
|
|
|
|
.line 78
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setEnabled(Z)V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/high16 p1, 0x3f800000 # 1.0f
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const p1, 0x3e99999a # 0.3f
|
|
|
|
.line 79
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setAlpha(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;ZLkotlin/jvm/b/Functions;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Z",
|
|
"Lkotlin/jvm/b/Functions<",
|
|
"Ljava/lang/Boolean;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 27
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$c;
|
|
|
|
invoke-direct {v0, p2, p1}, Lcom/vk/extensions/ViewExtKt$c;-><init>(Lkotlin/jvm/b/Functions;Z)V
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/View;ZZJ)V
|
|
.locals 11
|
|
|
|
.line 55
|
|
invoke-static {p0}, Lcom/vk/extensions/ViewExtKt;->i(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0xe
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v1, p0
|
|
|
|
move-wide v2, p3
|
|
|
|
.line 56
|
|
invoke-static/range {v1 .. v9}, Lcom/vk/core/extensions/AnimationExtKt;->a(Landroid/view/View;JJLjava/lang/Runnable;Landroid/view/animation/Interpolator;ILjava/lang/Object;)Landroid/view/ViewPropertyAnimator;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Lcom/vk/extensions/ViewExtKt;->r(Landroid/view/View;)V
|
|
|
|
.line 57
|
|
:cond_1
|
|
:goto_0
|
|
invoke-static {p0}, Lcom/vk/extensions/ViewExtKt;->i(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/16 v9, 0x1e
|
|
|
|
const/4 v10, 0x0
|
|
|
|
move-object v1, p0
|
|
|
|
move-wide v2, p3
|
|
|
|
.line 58
|
|
invoke-static/range {v1 .. v10}, Lcom/vk/core/extensions/AnimationExtKt;->a(Landroid/view/View;JJLjava/lang/Runnable;Landroid/view/animation/Interpolator;ZILjava/lang/Object;)Landroid/view/ViewPropertyAnimator;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-static {p0}, Lcom/vk/extensions/ViewExtKt;->q(Landroid/view/View;)V
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic a(Landroid/view/View;ZZJILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p6, p5, 0x2
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p5, p5, 0x4
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
const-wide/16 p3, 0x12c
|
|
|
|
.line 54
|
|
:cond_1
|
|
invoke-static {p0, p1, p2, p3, p4}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/View;ZZJ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/widget/TextView;I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/StyleRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 59
|
|
invoke-static {p0, p1}, Landroidx/core/widget/TextViewCompat;->setTextAppearance(Landroid/widget/TextView;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroidx/appcompat/widget/AppCompatImageView;I)V
|
|
.locals 0
|
|
|
|
.line 53
|
|
invoke-static {p1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p0, p1}, Landroidx/core/widget/ImageViewCompat;->setImageTintList(Landroid/widget/ImageView;Landroid/content/res/ColorStateList;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroidx/appcompat/widget/Toolbar;Lkotlin/jvm/b/Functions2;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/appcompat/widget/Toolbar;",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-",
|
|
"Landroid/view/MenuItem;",
|
|
"Ljava/lang/Boolean;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 14
|
|
invoke-static {p1}, Lcom/vk/extensions/ViewExtKt;->a(Lkotlin/jvm/b/Functions2;)Landroidx/appcompat/widget/Toolbar$OnMenuItemClickListener;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/Toolbar;->setOnMenuItemClickListener(Landroidx/appcompat/widget/Toolbar$OnMenuItemClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Lkotlin/jvm/b/Functions;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/b/Functions<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 15
|
|
invoke-static {}, Lcom/vk/extensions/ViewExtKt;->h()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 16
|
|
:cond_0
|
|
invoke-interface {p0}, Lkotlin/jvm/b/Functions;->invoke()Ljava/lang/Object;
|
|
|
|
.line 17
|
|
invoke-static {}, Lcom/vk/extensions/ViewExtKt;->g()Lcom/vk/core/util/TimeoutLock;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Lcom/vk/core/util/TimeoutLock;->a()Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroid/app/Activity;)Z
|
|
.locals 2
|
|
|
|
const v0, 0x1020002
|
|
|
|
.line 38
|
|
invoke-virtual {p0, v0}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
.line 39
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v1, "window"
|
|
|
|
invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v1, "window.decorView"
|
|
|
|
invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 40
|
|
invoke-virtual {p0}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result p0
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v0
|
|
|
|
if-ne p0, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public static final a(Landroid/view/ViewStub;)Z
|
|
.locals 0
|
|
|
|
.line 73
|
|
invoke-virtual {p0}, Landroid/view/ViewStub;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final b(Landroid/view/View;I)I
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 25
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result p0
|
|
|
|
float-to-int p0, p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final synthetic b()Landroid/graphics/Rect;
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/vk/extensions/ViewExtKt;->d:Landroid/graphics/Rect;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final b(Landroid/view/View$OnClickListener;)Landroid/view/View$OnClickListener;
|
|
.locals 1
|
|
|
|
.line 9
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$p;
|
|
|
|
invoke-direct {v0, p0}, Lcom/vk/extensions/ViewExtKt$p;-><init>(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final b(Landroid/view/View;ILandroid/view/View$OnClickListener;Lkotlin/jvm/b/Functions2;)Landroid/view/View;
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Landroid/view/View;",
|
|
">(",
|
|
"Landroid/view/View;",
|
|
"I",
|
|
"Landroid/view/View$OnClickListener;",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-TT;",
|
|
"Lkotlin/Unit;",
|
|
">;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 4
|
|
invoke-interface {p3, p0}, Lkotlin/jvm/b/Functions2;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 5
|
|
invoke-static {p0, p2}, Lcom/vk/extensions/ViewExtKt;->b(Landroid/view/View;Landroid/view/View$OnClickListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic b(Landroid/view/View;ILandroid/view/View$OnClickListener;Lkotlin/jvm/b/Functions2;ILjava/lang/Object;)Landroid/view/View;
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
.line 2
|
|
sget-object p3, Lcom/vk/extensions/ViewExtKt$findNullable$1;->a:Lcom/vk/extensions/ViewExtKt$findNullable$1;
|
|
|
|
:cond_1
|
|
invoke-static {p0, p1, p2, p3}, Lcom/vk/extensions/ViewExtKt;->b(Landroid/view/View;ILandroid/view/View$OnClickListener;Lkotlin/jvm/b/Functions2;)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final b(Landroid/view/View;)Landroidx/recyclerview/widget/RecyclerView;
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 21
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object p0, v0
|
|
|
|
.line 22
|
|
:goto_0
|
|
instance-of v1, p0, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 23
|
|
invoke-interface {p0}, Landroid/view/ViewParent;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-nez v1, :cond_2
|
|
|
|
move-object p0, v0
|
|
|
|
.line 24
|
|
:cond_2
|
|
check-cast p0, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final b(Landroid/view/View;II)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # I
|
|
.annotation build Landroidx/annotation/AttrRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 8
|
|
invoke-static {p0, p1, p2}, Lcom/vk/core/ui/themes/VKThemeHelper;->a(Landroid/view/View;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final b(Landroid/view/View;IIII)V
|
|
.locals 0
|
|
|
|
.line 20
|
|
invoke-virtual {p0, p1, p2, p3, p4}, Landroid/view/View;->setPadding(IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic b(Landroid/view/View;IIIIILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p6, p5, 0x1
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
.line 16
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
move-result p1
|
|
|
|
:cond_0
|
|
and-int/lit8 p6, p5, 0x2
|
|
|
|
if-eqz p6, :cond_1
|
|
|
|
.line 17
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
move-result p2
|
|
|
|
:cond_1
|
|
and-int/lit8 p6, p5, 0x4
|
|
|
|
if-eqz p6, :cond_2
|
|
|
|
.line 18
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
move-result p3
|
|
|
|
:cond_2
|
|
and-int/lit8 p5, p5, 0x8
|
|
|
|
if-eqz p5, :cond_3
|
|
|
|
.line 19
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
move-result p4
|
|
|
|
:cond_3
|
|
invoke-static {p0, p1, p2, p3, p4}, Lcom/vk/extensions/ViewExtKt;->b(Landroid/view/View;IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final b(Landroid/view/View;Landroid/view/View$OnClickListener;)V
|
|
.locals 0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 6
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 7
|
|
:cond_0
|
|
invoke-static {p1}, Lcom/vk/extensions/ViewExtKt;->b(Landroid/view/View$OnClickListener;)Landroid/view/View$OnClickListener;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final b(Landroid/view/View;Lkotlin/jvm/b/Functions;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions<",
|
|
"Ljava/lang/Boolean;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 12
|
|
invoke-static {p0, v0, p1}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/View;ZLkotlin/jvm/b/Functions;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final b(Landroid/view/View;Lkotlin/jvm/b/Functions2;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 13
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v0
|
|
|
|
if-gtz v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 14
|
|
:cond_0
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$h;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/vk/extensions/ViewExtKt$h;-><init>(Landroid/view/View;Lkotlin/jvm/b/Functions2;)V
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
|
|
|
|
return-void
|
|
|
|
.line 15
|
|
:cond_1
|
|
:goto_0
|
|
invoke-interface {p1, p0}, Lkotlin/jvm/b/Functions2;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final b(Landroid/view/View;Z)V
|
|
.locals 1
|
|
|
|
.line 10
|
|
invoke-static {p0}, Lcom/vk/extensions/ViewExtKt;->i(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 p1, 0x8
|
|
|
|
.line 11
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final c(Landroid/view/View;)Landroid/graphics/Rect;
|
|
.locals 4
|
|
|
|
.line 13
|
|
invoke-static {}, Lcom/vk/extensions/ViewExtKt;->f()[I
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->getLocationOnScreen([I)V
|
|
|
|
.line 14
|
|
invoke-static {}, Lcom/vk/extensions/ViewExtKt;->f()[I
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aget v0, v0, v1
|
|
|
|
.line 15
|
|
invoke-static {}, Lcom/vk/extensions/ViewExtKt;->f()[I
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aget v1, v1, v2
|
|
|
|
.line 16
|
|
new-instance v2, Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v3, v0
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result p0
|
|
|
|
add-int/2addr p0, v1
|
|
|
|
invoke-direct {v2, v0, v1, v3, p0}, Landroid/graphics/Rect;-><init>(IIII)V
|
|
|
|
return-object v2
|
|
.end method
|
|
|
|
.method public static final synthetic c()Lcom/vk/core/util/TimeoutLock;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-static {}, Lcom/vk/extensions/ViewExtKt;->g()Lcom/vk/core/util/TimeoutLock;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final c(Landroid/view/View;I)V
|
|
.locals 2
|
|
|
|
.line 22
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v1, v0, Landroid/view/View;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:cond_0
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const-string p0, "You can\'t increase click area without parent view"
|
|
|
|
.line 23
|
|
invoke-static {p0}, Lcom/vk/core/util/DebugUtils;->a(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
.line 24
|
|
:cond_1
|
|
new-instance v1, Lcom/vk/extensions/ViewExtKt$e;
|
|
|
|
invoke-direct {v1, p0, p1, v0}, Lcom/vk/extensions/ViewExtKt$e;-><init>(Landroid/view/View;ILandroid/view/View;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final c(Landroid/view/View;II)V
|
|
.locals 2
|
|
|
|
.line 17
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 18
|
|
iget v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
if-ne p1, v1, :cond_0
|
|
|
|
iget v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
if-eq p2, v1, :cond_1
|
|
|
|
.line 19
|
|
:cond_0
|
|
iput p1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
.line 20
|
|
iput p2, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
.line 21
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final c(Landroid/view/View;IIII)V
|
|
.locals 0
|
|
|
|
.line 12
|
|
invoke-virtual {p0, p1, p2, p3, p4}, Landroid/view/View;->setPaddingRelative(IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic c(Landroid/view/View;IIIIILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p6, p5, 0x1
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingStart()I
|
|
|
|
move-result p1
|
|
|
|
:cond_0
|
|
and-int/lit8 p6, p5, 0x2
|
|
|
|
if-eqz p6, :cond_1
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
move-result p2
|
|
|
|
:cond_1
|
|
and-int/lit8 p6, p5, 0x4
|
|
|
|
if-eqz p6, :cond_2
|
|
|
|
.line 10
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingEnd()I
|
|
|
|
move-result p3
|
|
|
|
:cond_2
|
|
and-int/lit8 p5, p5, 0x8
|
|
|
|
if-eqz p5, :cond_3
|
|
|
|
.line 11
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
move-result p4
|
|
|
|
:cond_3
|
|
invoke-static {p0, p1, p2, p3, p4}, Lcom/vk/extensions/ViewExtKt;->c(Landroid/view/View;IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final c(Landroid/view/View;Lkotlin/jvm/b/Functions;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "context"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v0}, Lcom/vk/core/util/ContextExtKt;->e(Landroid/content/Context;)Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {v0}, Landroid/view/Window;->isActive()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 5
|
|
invoke-interface {p1}, Lkotlin/jvm/b/Functions;->invoke()Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-static {p0, p1}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/View;Lkotlin/jvm/b/Functions;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final c(Landroid/view/View;Lkotlin/jvm/b/Functions2;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/vk/extensions/ViewExtKt$i;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/vk/extensions/ViewExtKt$i;-><init>(Landroid/view/View;Lkotlin/jvm/b/Functions2;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final d(Landroid/view/View;)F
|
|
.locals 2
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 7
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getWindowVisibility()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/view/View;->getAlpha()F
|
|
|
|
move-result v0
|
|
|
|
cmpg-float v0, v0, v1
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroid/view/View;->isAttachedToWindow()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_3
|
|
invoke-static {p0}, Lcom/vk/extensions/ViewExtKt;->e(Landroid/view/View;)Landroid/graphics/Rect;
|
|
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
invoke-virtual {v0}, Landroid/graphics/Rect;->width()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Rect;->height()I
|
|
|
|
move-result v0
|
|
|
|
mul-int v1, v1, v0
|
|
|
|
int-to-float v0, v1
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result p0
|
|
|
|
mul-int v1, v1, p0
|
|
|
|
int-to-float p0, v1
|
|
|
|
div-float v1, v0, p0
|
|
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public static final d(Landroid/view/View;I)V
|
|
.locals 0
|
|
|
|
.line 12
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setAccessibilityTraversalAfter(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final d(Landroid/view/View;Lkotlin/jvm/b/Functions;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/View;->isAttachedToWindow()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$j;
|
|
|
|
invoke-direct {v0, p1}, Lcom/vk/extensions/ViewExtKt$j;-><init>(Lkotlin/jvm/b/Functions;)V
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->addOnAttachStateChangeListener(Landroid/view/View$OnAttachStateChangeListener;)V
|
|
|
|
return-void
|
|
|
|
.line 5
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p1, "View is already attached to window"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final d(Landroid/view/View;Lkotlin/jvm/b/Functions2;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lcom/vk/extensions/ViewExtKt;->a(Lkotlin/jvm/b/Functions2;)Landroid/view/View$OnClickListener;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/View$OnClickListener;)Landroid/view/View$OnClickListener;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final d()Z
|
|
.locals 1
|
|
|
|
.line 2
|
|
invoke-static {}, Lcom/vk/extensions/ViewExtKt;->g()Lcom/vk/core/util/TimeoutLock;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/vk/core/util/TimeoutLock;->a()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final e(Landroid/view/View;)Landroid/graphics/Rect;
|
|
.locals 1
|
|
|
|
.line 4
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
.line 5
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->getGlobalVisibleRect(Landroid/graphics/Rect;)Z
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static final e()Lcom/vk/core/util/TimeoutLock;
|
|
.locals 3
|
|
|
|
sget-object v0, Lcom/vk/extensions/ViewExtKt;->c:Lkotlin/Lazy2;
|
|
|
|
sget-object v1, Lcom/vk/extensions/ViewExtKt;->a:[Lkotlin/u/KProperty5;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0}, Lkotlin/Lazy2;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/vk/core/util/TimeoutLock;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final e(Landroid/view/View;I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/AttrRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 2
|
|
invoke-static {p0, p1}, Lcom/vk/core/ui/themes/VKThemeHelper;->a(Landroid/view/View;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final e(Landroid/view/View;Lkotlin/jvm/b/Functions;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/vk/extensions/ViewExtKt$k;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/vk/extensions/ViewExtKt$k;-><init>(Landroid/view/View;Lkotlin/jvm/b/Functions;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final e(Landroid/view/View;Lkotlin/jvm/b/Functions2;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lcom/vk/extensions/ViewExtKt;->a(Lkotlin/jvm/b/Functions2;)Landroid/view/View$OnClickListener;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final f(Landroid/view/View;)Landroid/graphics/RectF;
|
|
.locals 1
|
|
|
|
.line 4
|
|
new-instance v0, Landroid/graphics/RectF;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
.line 5
|
|
invoke-static {p0}, Lcom/vk/extensions/ViewExtKt;->e(Landroid/view/View;)Landroid/graphics/Rect;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, Landroid/graphics/RectF;->set(Landroid/graphics/Rect;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final f(Landroid/view/View;I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 2
|
|
invoke-static {p0, p1}, Lcom/vk/core/ui/themes/VKThemeHelper;->b(Landroid/view/View;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final f(Landroid/view/View;Lkotlin/jvm/b/Functions;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 3
|
|
invoke-static {p0, p1, v0, v1}, Lcom/vk/extensions/ViewExtKt;->a(Landroid/view/View;Lkotlin/jvm/b/Functions;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final f(Landroid/view/View;Lkotlin/jvm/b/Functions2;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-",
|
|
"Landroid/view/View;",
|
|
"Ljava/lang/Boolean;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lcom/vk/extensions/ViewExtKt;->a(Lkotlin/jvm/b/Functions2;)Landroid/view/View$OnLongClickListener;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final f()[I
|
|
.locals 3
|
|
|
|
sget-object v0, Lcom/vk/extensions/ViewExtKt;->e:Lcom/vk/core/util/ThreadLocalDelegate;
|
|
|
|
sget-object v1, Lcom/vk/extensions/ViewExtKt;->a:[Lkotlin/u/KProperty5;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v0, v2, v1}, Lcom/vk/core/util/ThreadLocalDelegate1;->a(Lcom/vk/core/util/ThreadLocalDelegate;Ljava/lang/Object;Lkotlin/u/KProperty5;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [I
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static final g()Lcom/vk/core/util/TimeoutLock;
|
|
.locals 3
|
|
|
|
sget-object v0, Lcom/vk/extensions/ViewExtKt;->b:Lkotlin/Lazy2;
|
|
|
|
sget-object v1, Lcom/vk/extensions/ViewExtKt;->a:[Lkotlin/u/KProperty5;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
invoke-interface {v0}, Lkotlin/Lazy2;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/vk/core/util/TimeoutLock;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final g(Landroid/view/View;Lkotlin/jvm/b/Functions;)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/jvm/b/Functions<",
|
|
"Lkotlin/Unit;",
|
|
">;)",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/vk/extensions/ViewExtKt$m;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/vk/extensions/ViewExtKt$m;-><init>(Landroid/view/View;Lkotlin/jvm/b/Functions;)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final g(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/view/View;->getSystemUiVisibility()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x1504
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
const/16 v0, 0x1506
|
|
|
|
.line 5
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setSystemUiVisibility(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final g(Landroid/view/View;I)V
|
|
.locals 1
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p0
|
|
|
|
instance-of v0, p0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
:cond_0
|
|
check-cast p0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
iput p1, p0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final h(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/View;->getSystemUiVisibility()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x1504
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v1}, Landroid/view/View;->setSystemUiVisibility(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final h(Landroid/view/View;I)V
|
|
.locals 1
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
invoke-static {p0, v0, p1}, Lcom/vk/extensions/ViewExtKt;->c(Landroid/view/View;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final h()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-static {}, Lcom/vk/extensions/ViewExtKt;->g()Lcom/vk/core/util/TimeoutLock;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/vk/core/util/TimeoutLock;->b()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final i(Landroid/view/View;I)V
|
|
.locals 1
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
invoke-static {p0, p1, v0}, Lcom/vk/extensions/ViewExtKt;->c(Landroid/view/View;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final i(Landroid/view/View;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final j(Landroid/view/View;)I
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p0
|
|
|
|
instance-of v0, p0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
:cond_0
|
|
check-cast p0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
iget p0, p0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final k(Landroid/view/View;)I
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p0
|
|
|
|
instance-of v0, p0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
:cond_0
|
|
check-cast p0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
iget p0, p0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final l(Landroid/view/View;)I
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p0
|
|
|
|
instance-of v0, p0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
:cond_0
|
|
check-cast p0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
iget p0, p0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final m(Landroid/view/View;)I
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p0
|
|
|
|
instance-of v0, p0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
:cond_0
|
|
check-cast p0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
iget p0, p0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final n(Landroid/view/View;)Z
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0, v1}, Landroid/view/View;->performHapticFeedback(II)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final o(Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->requestApplyInsets()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final p(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
const/16 v0, 0x8
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final q(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x4
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final r(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final s(Landroid/view/View;)V
|
|
.locals 5
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getSystemUiVisibility()I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
invoke-static {}, Lcom/vk/core/util/OsUtil;->b()Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const/16 v1, 0x2000
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "context"
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v3}, Lcom/vk/core/util/ContextExtKt;->e(Landroid/content/Context;)Landroid/app/Activity;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-virtual {v3}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "it.window"
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v3}, Landroid/view/Window;->getStatusBarColor()I
|
|
|
|
move-result v3
|
|
|
|
invoke-static {v3}, Lcom/vk/core/util/ColorUtils;->b(I)Z
|
|
|
|
move-result v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v3, :cond_1
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v1}, Landroid/view/View;->setSystemUiVisibility(I)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
if-nez v3, :cond_3
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 5
|
|
invoke-virtual {p0, v2}, Landroid/view/View;->setSystemUiVisibility(I)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 6
|
|
invoke-virtual {p0, v2}, Landroid/view/View;->setSystemUiVisibility(I)V
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return-void
|
|
.end method
|