93 lines
2.9 KiB
Smali
93 lines
2.9 KiB
Smali
.class public final Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$onViewCreated$$inlined$doOnLayout$1;
|
|
.super Ljava/lang/Object;
|
|
.source "View.kt"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnLayoutChangeListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$onViewCreated$$inlined$doOnLayout$1;->this$0:Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onLayoutChange(Landroid/view/View;IIIIIIII)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p1, p0}, Landroid/view/View;->removeOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$onViewCreated$$inlined$doOnLayout$1;->this$0:Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;->access$getContainer$p(Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$onViewCreated$$inlined$doOnLayout$1;->this$0:Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;
|
|
|
|
invoke-virtual {p2}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p2
|
|
|
|
const-string p3, "resources"
|
|
|
|
invoke-static {p2, p3}, Lj0/o/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
move-result-object p2
|
|
|
|
iget p2, p2, Landroid/util/DisplayMetrics;->heightPixels:I
|
|
|
|
int-to-double p2, p2
|
|
|
|
const-wide p4, 0x3feccccccccccccdL # 0.9
|
|
|
|
mul-double p2, p2, p4
|
|
|
|
double-to-int p2, p2
|
|
|
|
iput p2, p1, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string/jumbo p1, "view"
|
|
|
|
invoke-static {p1}, Lj0/o/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|