81 lines
2.1 KiB
Smali
81 lines
2.1 KiB
Smali
.class public final Lcom/discord/widgets/tabs/WidgetTabsHost$setPanelWindowInsetsListeners$3;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetTabsHost.kt"
|
|
|
|
# interfaces
|
|
.implements Landroidx/core/view/OnApplyWindowInsetsListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/tabs/WidgetTabsHost;->setPanelWindowInsetsListeners(Z)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $isCallStatusVisible:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/discord/widgets/tabs/WidgetTabsHost$setPanelWindowInsetsListeners$3;->$isCallStatusVisible:Z
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
|
|
.locals 4
|
|
|
|
const-string v0, "v"
|
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "insets"
|
|
|
|
invoke-static {p2, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/tabs/WidgetTabsHost$setPanelWindowInsetsListeners$3;->$isCallStatusVisible:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p2}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetTop()I
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {p1, v1, v0, v2, v3}, Landroid/view/View;->setPadding(IIII)V
|
|
|
|
invoke-virtual {p2}, Landroidx/core/view/WindowInsetsCompat;->consumeSystemWindowInsets()Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|