ShareAlert$1.smali
.class Lim/tpelyyftgw/ui/components/ShareAlert$1;
.super Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayout;
.source "ShareAlert.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/components/ShareAlert;-><init>(Landroid/content/Context;Ljava/util/ArrayList;Ljava/lang/String;ZLjava/lang/String;Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field private fullHeight:Z
.field private ignoreLayout:Z
.field private rect1:Landroid/graphics/RectF;
.field final synthetic this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/components/ShareAlert;Landroid/content/Context;)V
.registers 4
.param p1, "this$0" # Lim/tpelyyftgw/ui/components/ShareAlert;
.param p2, "context" # Landroid/content/Context;
.line 277
iput-object p1, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-direct {p0, p2}, Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayout;-><init>(Landroid/content/Context;)V
.line 279
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->ignoreLayout:Z
.line 280
new-instance v0, Landroid/graphics/RectF;
invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->rect1:Landroid/graphics/RectF;
return-void
.end method
.method private onMeasureInternal(II)V
.registers 19
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 310
move-object/from16 v6, p0
invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v0
.line 311
.local v0, "widthSize":I
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v1
.line 313
.local v1, "heightSize":I
invoke-virtual {v6, v0, v1}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->setMeasuredDimension(II)V
.line 314
iget-object v2, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingLeft:I
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1400(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v2
mul-int/lit8 v2, v2, 0x2
sub-int v7, v0, v2
.line 316
.end local v0 # "widthSize":I
.local v7, "widthSize":I
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getKeyboardHeight()I
move-result v8
.line 317
.local v8, "keyboardSize":I
const/high16 v0, 0x41a00000 # 20.0f
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v0
const/high16 v2, 0x3f800000 # 1.0f
const/4 v3, 0x0
const/16 v9, 0x8
const/4 v4, 0x0
const/4 v5, 0x1
const/high16 v10, 0x40000000 # 2.0f
if-gt v8, v0, :cond_85
.line 318
sget-boolean v0, Lim/tpelyyftgw/messenger/AndroidUtilities;->isInMultiwindow:Z
if-nez v0, :cond_40
.line 319
iget-object v0, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->commentTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1200(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextEmoji;->getEmojiPadding()I
move-result v0
sub-int/2addr v1, v0
.line 320
invoke-static {v1, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v0
.end local p2 # "heightMeasureSpec":I
.local v0, "heightMeasureSpec":I
goto :goto_42
.line 318
.end local v0 # "heightMeasureSpec":I
.restart local p2 # "heightMeasureSpec":I
:cond_40
move/from16 v0, p2
.line 322
.end local p2 # "heightMeasureSpec":I
.restart local v0 # "heightMeasureSpec":I
:goto_42
iput-boolean v5, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->ignoreLayout:Z
.line 323
iget-object v11, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->commentTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v11}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1200(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v11
invoke-virtual {v11}, Lim/tpelyyftgw/ui/components/EditTextEmoji;->isPopupShowing()Z
move-result v11
if-eqz v11, :cond_53
const/16 v11, 0x8
goto :goto_54
:cond_53
const/4 v11, 0x0
.line 324
.local v11, "visibility":I
:goto_54
iget-object v12, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->pickerBottomLayout:Landroid/widget/TextView;
invoke-static {v12}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1500(Lim/tpelyyftgw/ui/components/ShareAlert;)Landroid/widget/TextView;
move-result-object v12
if-eqz v12, :cond_80
.line 325
iget-object v12, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->pickerBottomLayout:Landroid/widget/TextView;
invoke-static {v12}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1500(Lim/tpelyyftgw/ui/components/ShareAlert;)Landroid/widget/TextView;
move-result-object v12
invoke-virtual {v12, v11}, Landroid/widget/TextView;->setVisibility(I)V
.line 326
iget-object v12, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->shadow:[Landroid/view/View;
invoke-static {v12}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1700(Lim/tpelyyftgw/ui/components/ShareAlert;)[Landroid/view/View;
move-result-object v12
aget-object v5, v12, v5
iget-object v12, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->frameLayout2:Landroid/widget/FrameLayout;
invoke-static {v12}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1600(Lim/tpelyyftgw/ui/components/ShareAlert;)Landroid/widget/FrameLayout;
move-result-object v12
invoke-virtual {v12}, Landroid/widget/FrameLayout;->getVisibility()I
move-result v12
if-eqz v12, :cond_7d
if-nez v11, :cond_7c
goto :goto_7d
:cond_7c
const/4 v2, 0x0
:cond_7d
:goto_7d
invoke-virtual {v5, v2}, Landroid/view/View;->setAlpha(F)V
.line 328
:cond_80
iput-boolean v4, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->ignoreLayout:Z
.line 329
.end local v11 # "visibility":I
move v11, v0
move v12, v1
goto :goto_bf
.line 330
.end local v0 # "heightMeasureSpec":I
.restart local p2 # "heightMeasureSpec":I
:cond_85
iput-boolean v5, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->ignoreLayout:Z
.line 331
iget-object v0, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->commentTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1200(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextEmoji;->hideEmojiView()V
.line 332
iget-object v0, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->pickerBottomLayout:Landroid/widget/TextView;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1500(Lim/tpelyyftgw/ui/components/ShareAlert;)Landroid/widget/TextView;
move-result-object v0
if-eqz v0, :cond_ba
.line 333
iget-object v0, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->pickerBottomLayout:Landroid/widget/TextView;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1500(Lim/tpelyyftgw/ui/components/ShareAlert;)Landroid/widget/TextView;
move-result-object v0
invoke-virtual {v0, v9}, Landroid/widget/TextView;->setVisibility(I)V
.line 334
iget-object v0, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->shadow:[Landroid/view/View;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1700(Lim/tpelyyftgw/ui/components/ShareAlert;)[Landroid/view/View;
move-result-object v0
aget-object v0, v0, v5
iget-object v5, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->frameLayout2:Landroid/widget/FrameLayout;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1600(Lim/tpelyyftgw/ui/components/ShareAlert;)Landroid/widget/FrameLayout;
move-result-object v5
invoke-virtual {v5}, Landroid/widget/FrameLayout;->getVisibility()I
move-result v5
if-nez v5, :cond_b6
goto :goto_b7
:cond_b6
const/4 v2, 0x0
:goto_b7
invoke-virtual {v0, v2}, Landroid/view/View;->setAlpha(F)V
.line 336
:cond_ba
iput-boolean v4, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->ignoreLayout:Z
move/from16 v11, p2
move v12, v1
.line 339
.end local v1 # "heightSize":I
.end local p2 # "heightMeasureSpec":I
.local v11, "heightMeasureSpec":I
.local v12, "heightSize":I
:goto_bf
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getChildCount()I
move-result v13
.line 340
.local v13, "childCount":I
const/4 v0, 0x0
move v14, v0
.local v14, "i":I
:goto_c5
if-ge v14, v13, :cond_158
.line 341
invoke-virtual {v6, v14}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getChildAt(I)Landroid/view/View;
move-result-object v15
.line 342
.local v15, "child":Landroid/view/View;
if-eqz v15, :cond_154
invoke-virtual {v15}, Landroid/view/View;->getVisibility()I
move-result v0
if-ne v0, v9, :cond_d5
.line 343
goto/16 :goto_154
.line 345
:cond_d5
iget-object v0, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->commentTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1200(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v0
if-eqz v0, :cond_149
iget-object v0, v6, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->commentTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1200(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v0
invoke-virtual {v0, v15}, Lim/tpelyyftgw/ui/components/EditTextEmoji;->isPopupView(Landroid/view/View;)Z
move-result v0
if-eqz v0, :cond_149
.line 346
sget-boolean v0, Lim/tpelyyftgw/messenger/AndroidUtilities;->isInMultiwindow:Z
if-nez v0, :cond_106
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->isTablet()Z
move-result v0
if-eqz v0, :cond_f4
goto :goto_106
.line 353
:cond_f4
invoke-static {v7, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v0
invoke-virtual {v15}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v1
iget v1, v1, Landroid/view/ViewGroup$LayoutParams;->height:I
invoke-static {v1, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v1
invoke-virtual {v15, v0, v1}, Landroid/view/View;->measure(II)V
goto :goto_154
.line 347
:cond_106
:goto_106
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->isTablet()Z
move-result v0
if-eqz v0, :cond_134
.line 348
invoke-static {v7, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v0
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->isTablet()Z
move-result v1
if-eqz v1, :cond_119
const/high16 v1, 0x43480000 # 200.0f
goto :goto_11b
:cond_119
const/high16 v1, 0x43a00000 # 320.0f
:goto_11b
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
sget v2, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int v2, v12, v2
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getPaddingTop()I
move-result v3
add-int/2addr v2, v3
invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I
move-result v1
invoke-static {v1, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v1
invoke-virtual {v15, v0, v1}, Landroid/view/View;->measure(II)V
goto :goto_154
.line 350
:cond_134
invoke-static {v7, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v0
sget v1, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int v1, v12, v1
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getPaddingTop()I
move-result v2
add-int/2addr v1, v2
invoke-static {v1, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v1
invoke-virtual {v15, v0, v1}, Landroid/view/View;->measure(II)V
goto :goto_154
.line 356
:cond_149
const/4 v3, 0x0
const/4 v5, 0x0
move-object/from16 v0, p0
move-object v1, v15
move/from16 v2, p1
move v4, v11
invoke-virtual/range {v0 .. v5}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->measureChildWithMargins(Landroid/view/View;IIII)V
.line 340
.end local v15 # "child":Landroid/view/View;
:cond_154
:goto_154
add-int/lit8 v14, v14, 0x1
goto/16 :goto_c5
.line 359
.end local v14 # "i":I
:cond_158
return-void
.end method
# virtual methods
.method protected onDraw(Landroid/graphics/Canvas;)V
.registers 18
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 453
move-object/from16 v0, p0
move-object/from16 v7, p1
iget-object v1, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->scrollOffsetY:I
invoke-static {v1}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2000(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v1
iget-object v2, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingTop:I
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2100(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v2
sub-int/2addr v1, v2
const/high16 v2, 0x40c00000 # 6.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
add-int/2addr v1, v2
.line 454
.local v1, "y":I
iget-object v2, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->scrollOffsetY:I
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2000(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v2
iget-object v3, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingTop:I
invoke-static {v3}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2200(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v3
sub-int/2addr v2, v3
const/high16 v3, 0x41500000 # 13.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
sub-int/2addr v2, v3
.line 455
.local v2, "top":I
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getMeasuredHeight()I
move-result v3
const/high16 v4, 0x41f00000 # 30.0f
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
add-int/2addr v3, v4
iget-object v4, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingTop:I
invoke-static {v4}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2300(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v4
add-int/2addr v3, v4
.line 456
.local v3, "height":I
const/4 v4, 0x0
.line 457
.local v4, "statusBarHeight":I
const/high16 v5, 0x3f800000 # 1.0f
.line 458
.local v5, "radProgress":F
iget-object v6, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->isFullscreen:Z
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2400(Lim/tpelyyftgw/ui/components/ShareAlert;)Z
move-result v6
const/high16 v8, 0x3f800000 # 1.0f
if-nez v6, :cond_b9
sget v6, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v9, 0x15
if-lt v6, v9, :cond_b9
.line 459
sget v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
add-int/2addr v2, v6
.line 460
sget v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
add-int/2addr v1, v6
.line 461
sget v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int/2addr v3, v6
.line 463
iget-boolean v6, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->fullHeight:Z
if-eqz v6, :cond_b3
.line 464
iget-object v6, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingTop:I
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2500(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v6
add-int/2addr v6, v2
sget v9, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
mul-int/lit8 v9, v9, 0x2
if-ge v6, v9, :cond_8c
.line 465
sget v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sget v9, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
mul-int/lit8 v9, v9, 0x2
sub-int/2addr v9, v2
iget-object v10, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingTop:I
invoke-static {v10}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2600(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v10
sub-int/2addr v9, v10
invoke-static {v6, v9}, Ljava/lang/Math;->min(II)I
move-result v6
.line 466
.local v6, "diff":I
sub-int/2addr v2, v6
.line 467
add-int/2addr v3, v6
.line 468
mul-int/lit8 v9, v6, 0x2
int-to-float v9, v9
sget v10, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
int-to-float v10, v10
div-float/2addr v9, v10
invoke-static {v8, v9}, Ljava/lang/Math;->min(FF)F
move-result v9
sub-float v5, v8, v9
.line 470
.end local v6 # "diff":I
:cond_8c
iget-object v6, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingTop:I
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2700(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v6
add-int/2addr v6, v2
sget v9, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
if-ge v6, v9, :cond_ad
.line 471
sget v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sget v9, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int/2addr v9, v2
iget-object v10, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingTop:I
invoke-static {v10}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2800(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v10
sub-int/2addr v9, v10
invoke-static {v6, v9}, Ljava/lang/Math;->min(II)I
move-result v4
move v9, v1
move v10, v2
move v11, v3
move v12, v4
move v13, v5
goto :goto_be
.line 470
:cond_ad
move v9, v1
move v10, v2
move v11, v3
move v12, v4
move v13, v5
goto :goto_be
.line 463
:cond_b3
move v9, v1
move v10, v2
move v11, v3
move v12, v4
move v13, v5
goto :goto_be
.line 476
:cond_b9
move v9, v1
move v10, v2
move v11, v3
move v12, v4
move v13, v5
.end local v1 # "y":I
.end local v2 # "top":I
.end local v3 # "height":I
.end local v4 # "statusBarHeight":I
.end local v5 # "radProgress":F
.local v9, "y":I
.local v10, "top":I
.local v11, "height":I
.local v12, "statusBarHeight":I
.local v13, "radProgress":F
:goto_be
iget-object v1, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->shadowDrawable:Landroid/graphics/drawable/Drawable;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2900(Lim/tpelyyftgw/ui/components/ShareAlert;)Landroid/graphics/drawable/Drawable;
move-result-object v1
const/4 v2, 0x0
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getMeasuredWidth()I
move-result v3
invoke-virtual {v1, v2, v10, v3, v11}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
.line 477
iget-object v1, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->shadowDrawable:Landroid/graphics/drawable/Drawable;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2900(Lim/tpelyyftgw/ui/components/ShareAlert;)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v1, v7}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
.line 479
const-string v1, "dialogBackground"
cmpl-float v2, v13, v8
if-eqz v2, :cond_12a
.line 480
sget-object v2, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v3
invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setColor(I)V
.line 481
iget-object v2, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->rect1:Landroid/graphics/RectF;
iget-object v3, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingLeft:I
invoke-static {v3}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$3000(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v3
int-to-float v3, v3
iget-object v4, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingTop:I
invoke-static {v4}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$3100(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v4
add-int/2addr v4, v10
int-to-float v4, v4
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getMeasuredWidth()I
move-result v5
iget-object v6, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingLeft:I
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$3200(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v6
sub-int/2addr v5, v6
int-to-float v5, v5
iget-object v6, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingTop:I
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$3300(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v6
add-int/2addr v6, v10
const/high16 v8, 0x41c00000 # 24.0f
invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v8
add-int/2addr v6, v8
int-to-float v6, v6
invoke-virtual {v2, v3, v4, v5, v6}, Landroid/graphics/RectF;->set(FFFF)V
.line 482
iget-object v2, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->rect1:Landroid/graphics/RectF;
const/high16 v3, 0x41400000 # 12.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
int-to-float v4, v4
mul-float v4, v4, v13
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
int-to-float v3, v3
mul-float v3, v3, v13
sget-object v5, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
invoke-virtual {v7, v2, v4, v3, v5}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
.line 485
:cond_12a
const/high16 v2, 0x42100000 # 36.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v8
.line 486
.local v8, "w":I
iget-object v2, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->rect1:Landroid/graphics/RectF;
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getMeasuredWidth()I
move-result v3
sub-int/2addr v3, v8
div-int/lit8 v3, v3, 0x2
int-to-float v3, v3
int-to-float v4, v9
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getMeasuredWidth()I
move-result v5
add-int/2addr v5, v8
div-int/lit8 v5, v5, 0x2
int-to-float v5, v5
const/high16 v6, 0x40800000 # 4.0f
invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v6
add-int/2addr v6, v9
int-to-float v6, v6
invoke-virtual {v2, v3, v4, v5, v6}, Landroid/graphics/RectF;->set(FFFF)V
.line 487
sget-object v2, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
const-string v3, "key_sheet_scrollUp"
invoke-static {v3}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v3
invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setColor(I)V
.line 488
iget-object v2, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->rect1:Landroid/graphics/RectF;
const/high16 v3, 0x40000000 # 2.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
int-to-float v4, v4
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
int-to-float v3, v3
sget-object v5, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
invoke-virtual {v7, v2, v4, v3, v5}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
.line 490
if-lez v12, :cond_1b9
.line 491
invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v14
.line 492
.local v14, "color1":I
const/16 v1, 0xff
invoke-static {v14}, Landroid/graphics/Color;->red(I)I
move-result v2
int-to-float v2, v2
const v3, 0x3f4ccccd # 0.8f
mul-float v2, v2, v3
float-to-int v2, v2
invoke-static {v14}, Landroid/graphics/Color;->green(I)I
move-result v4
int-to-float v4, v4
mul-float v4, v4, v3
float-to-int v4, v4
invoke-static {v14}, Landroid/graphics/Color;->blue(I)I
move-result v5
int-to-float v5, v5
mul-float v5, v5, v3
float-to-int v3, v5
invoke-static {v1, v2, v4, v3}, Landroid/graphics/Color;->argb(IIII)I
move-result v15
.line 493
.local v15, "finalColor":I
sget-object v1, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
invoke-virtual {v1, v15}, Landroid/graphics/Paint;->setColor(I)V
.line 494
iget-object v1, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingLeft:I
invoke-static {v1}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$3400(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v1
int-to-float v2, v1
sget v1, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int/2addr v1, v12
int-to-float v3, v1
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getMeasuredWidth()I
move-result v1
iget-object v4, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingLeft:I
invoke-static {v4}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$3500(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v4
sub-int/2addr v1, v4
int-to-float v4, v1
sget v1, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
int-to-float v5, v1
sget-object v6, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
move-object/from16 v1, p1
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 496
.end local v14 # "color1":I
.end local v15 # "finalColor":I
:cond_1b9
return-void
.end method
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
.registers 5
.param p1, "ev" # Landroid/view/MotionEvent;
.line 431
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v0
if-nez v0, :cond_2b
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->scrollOffsetY:I
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2000(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v0
if-eqz v0, :cond_2b
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v0
iget-object v1, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->scrollOffsetY:I
invoke-static {v1}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$2000(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v1
const/high16 v2, 0x41f00000 # 30.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
sub-int/2addr v1, v2
int-to-float v1, v1
cmpg-float v0, v0, v1
if-gez v0, :cond_2b
.line 432
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/ShareAlert;->dismiss()V
.line 433
const/4 v0, 0x1
return v0
.line 435
:cond_2b
invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayout;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
return v0
.end method
.method protected onLayout(ZIIII)V
.registers 21
.param p1, "changed" # Z
.param p2, "l" # I
.param p3, "t" # I
.param p4, "r" # I
.param p5, "b" # I
.line 363
move-object v0, p0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getChildCount()I
move-result v1
.line 365
.local v1, "count":I
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getKeyboardHeight()I
move-result v2
const/high16 v3, 0x41a00000 # 20.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
if-gt v2, v3, :cond_26
sget-boolean v2, Lim/tpelyyftgw/messenger/AndroidUtilities;->isInMultiwindow:Z
if-nez v2, :cond_26
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->isTablet()Z
move-result v2
if-nez v2, :cond_26
iget-object v2, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->commentTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1200(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v2
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/EditTextEmoji;->getEmojiPadding()I
move-result v2
goto :goto_27
:cond_26
const/4 v2, 0x0
.line 366
.local v2, "paddingBottom":I
:goto_27
invoke-virtual {p0, v2}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->setBottomClip(I)V
.line 368
const/4 v3, 0x0
.local v3, "i":I
:goto_2b
if-ge v3, v1, :cond_f0
.line 369
invoke-virtual {p0, v3}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getChildAt(I)Landroid/view/View;
move-result-object v4
.line 370
.local v4, "child":Landroid/view/View;
invoke-virtual {v4}, Landroid/view/View;->getVisibility()I
move-result v5
const/16 v6, 0x8
if-ne v5, v6, :cond_3b
.line 371
goto/16 :goto_ec
.line 373
:cond_3b
invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v5
check-cast v5, Landroid/widget/FrameLayout$LayoutParams;
.line 375
.local v5, "lp":Landroid/widget/FrameLayout$LayoutParams;
invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I
move-result v6
.line 376
.local v6, "width":I
invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I
move-result v7
.line 381
.local v7, "height":I
iget v8, v5, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 382
.local v8, "gravity":I
const/4 v9, -0x1
if-ne v8, v9, :cond_50
.line 383
const/16 v8, 0x33
.line 386
:cond_50
and-int/lit8 v9, v8, 0x7
.line 387
.local v9, "absoluteGravity":I
and-int/lit8 v10, v8, 0x70
.line 389
.local v10, "verticalGravity":I
and-int/lit8 v11, v9, 0x7
const/4 v12, 0x1
if-eq v11, v12, :cond_77
const/4 v12, 0x5
if-eq v11, v12, :cond_64
.line 398
iget v11, v5, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getPaddingLeft()I
move-result v12
add-int/2addr v11, v12
.local v11, "childLeft":I
goto :goto_83
.line 394
.end local v11 # "childLeft":I
:cond_64
sub-int v11, p4, p2
sub-int/2addr v11, v6
iget v12, v5, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
sub-int/2addr v11, v12
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getPaddingRight()I
move-result v12
sub-int/2addr v11, v12
iget-object v12, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingLeft:I
invoke-static {v12}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1800(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v12
sub-int/2addr v11, v12
.line 395
.restart local v11 # "childLeft":I
goto :goto_83
.line 391
.end local v11 # "childLeft":I
:cond_77
sub-int v11, p4, p2
sub-int/2addr v11, v6
div-int/lit8 v11, v11, 0x2
iget v12, v5, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
add-int/2addr v11, v12
iget v12, v5, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
sub-int/2addr v11, v12
.line 392
.restart local v11 # "childLeft":I
nop
.line 401
:goto_83
const/16 v12, 0x10
if-eq v10, v12, :cond_a3
const/16 v12, 0x30
if-eq v10, v12, :cond_9b
const/16 v12, 0x50
if-eq v10, v12, :cond_92
.line 412
iget v12, v5, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
.local v12, "childTop":I
goto :goto_b1
.line 409
.end local v12 # "childTop":I
:cond_92
sub-int v12, p5, v2
sub-int v12, v12, p3
sub-int/2addr v12, v7
iget v13, v5, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
sub-int/2addr v12, v13
.line 410
.restart local v12 # "childTop":I
goto :goto_b1
.line 403
.end local v12 # "childTop":I
:cond_9b
iget v12, v5, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getPaddingTop()I
move-result v13
add-int/2addr v12, v13
.line 404
.restart local v12 # "childTop":I
goto :goto_b1
.line 406
.end local v12 # "childTop":I
:cond_a3
sub-int v12, p5, v2
sub-int v12, v12, p3
sub-int/2addr v12, v7
div-int/lit8 v12, v12, 0x2
iget v13, v5, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
add-int/2addr v12, v13
iget v13, v5, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
sub-int/2addr v12, v13
.line 407
.restart local v12 # "childTop":I
nop
.line 415
:goto_b1
iget-object v13, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->commentTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v13}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1200(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v13
if-eqz v13, :cond_e5
iget-object v13, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->commentTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v13}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1200(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v13
invoke-virtual {v13, v4}, Lim/tpelyyftgw/ui/components/EditTextEmoji;->isPopupView(Landroid/view/View;)Z
move-result v13
if-eqz v13, :cond_e5
.line 416
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->isTablet()Z
move-result v13
if-eqz v13, :cond_d6
.line 417
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getMeasuredHeight()I
move-result v13
invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I
move-result v14
sub-int v12, v13, v14
goto :goto_e5
.line 419
:cond_d6
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getMeasuredHeight()I
move-result v13
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getKeyboardHeight()I
move-result v14
add-int/2addr v13, v14
invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I
move-result v14
sub-int v12, v13, v14
.line 422
:cond_e5
:goto_e5
add-int v13, v11, v6
add-int v14, v12, v7
invoke-virtual {v4, v11, v12, v13, v14}, Landroid/view/View;->layout(IIII)V
.line 368
.end local v4 # "child":Landroid/view/View;
.end local v5 # "lp":Landroid/widget/FrameLayout$LayoutParams;
.end local v6 # "width":I
.end local v7 # "height":I
.end local v8 # "gravity":I
.end local v9 # "absoluteGravity":I
.end local v10 # "verticalGravity":I
.end local v11 # "childLeft":I
.end local v12 # "childTop":I
:goto_ec
add-int/lit8 v3, v3, 0x1
goto/16 :goto_2b
.line 425
.end local v3 # "i":I
:cond_f0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->notifyHeightChanged()V
.line 426
iget-object v3, v0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# invokes: Lim/tpelyyftgw/ui/components/ShareAlert;->updateLayout()V
invoke-static {v3}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1900(Lim/tpelyyftgw/ui/components/ShareAlert;)V
.line 427
return-void
.end method
.method protected onMeasure(II)V
.registers 14
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 285
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v0
.line 286
.local v0, "totalHeight":I
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/4 v2, 0x1
const/4 v3, 0x0
const/16 v4, 0x15
if-lt v1, v4, :cond_29
iget-object v1, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->isFullscreen:Z
invoke-static {v1}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$900(Lim/tpelyyftgw/ui/components/ShareAlert;)Z
move-result v1
if-nez v1, :cond_29
.line 287
iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->ignoreLayout:Z
.line 288
iget-object v1, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingLeft:I
invoke-static {v1}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1000(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v1
sget v4, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
iget-object v5, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingLeft:I
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1100(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v5
invoke-virtual {p0, v1, v4, v5, v3}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->setPadding(IIII)V
.line 289
iput-boolean v3, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->ignoreLayout:Z
.line 291
:cond_29
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getPaddingTop()I
move-result v1
sub-int v1, v0, v1
.line 292
.local v1, "availableHeight":I
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->getKeyboardHeight()I
move-result v4
.line 293
.local v4, "keyboardSize":I
sget-boolean v5, Lim/tpelyyftgw/messenger/AndroidUtilities;->isInMultiwindow:Z
if-nez v5, :cond_4a
const/high16 v5, 0x41a00000 # 20.0f
invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v5
if-gt v4, v5, :cond_4a
.line 294
iget-object v5, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->commentTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1200(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v5
invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/EditTextEmoji;->getEmojiPadding()I
move-result v5
sub-int/2addr v1, v5
.line 297
:cond_4a
iget-object v5, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->searchAdapter:Lim/tpelyyftgw/ui/components/ShareAlert$ShareSearchAdapter;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$800(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/ShareAlert$ShareSearchAdapter;
move-result-object v5
invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/ShareAlert$ShareSearchAdapter;->getItemCount()I
move-result v5
iget-object v6, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->listAdapter:Lim/tpelyyftgw/ui/components/ShareAlert$ShareDialogsAdapter;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$500(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/ShareAlert$ShareDialogsAdapter;
move-result-object v6
invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/ShareAlert$ShareDialogsAdapter;->getItemCount()I
move-result v6
invoke-static {v5, v6}, Ljava/lang/Math;->max(II)I
move-result v5
.line 298
.local v5, "size":I
const/high16 v6, 0x42400000 # 48.0f
invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v7
int-to-float v8, v5
const/high16 v9, 0x40800000 # 4.0f
div-float/2addr v8, v9
float-to-double v8, v8
invoke-static {v8, v9}, Ljava/lang/Math;->ceil(D)D
move-result-wide v8
double-to-int v8, v8
const/4 v9, 0x3
invoke-static {v9, v8}, Ljava/lang/Math;->max(II)I
move-result v8
const/high16 v10, 0x42ce0000 # 103.0f
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v10
mul-int v8, v8, v10
add-int/2addr v7, v8
iget-object v8, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->backgroundPaddingTop:I
invoke-static {v8}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$1300(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v8
add-int/2addr v7, v8
.line 299
.local v7, "contentSize":I
if-ge v7, v1, :cond_8b
const/4 v8, 0x0
goto :goto_91
:cond_8b
div-int/lit8 v8, v1, 0x5
mul-int/lit8 v8, v8, 0x3
sub-int v8, v1, v8
:goto_91
const/high16 v9, 0x41000000 # 8.0f
invoke-static {v9}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v9
add-int/2addr v8, v9
.line 300
.local v8, "padding":I
iget-object v9, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->gridView:Lim/tpelyyftgw/ui/components/RecyclerListView;
invoke-static {v9}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$100(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v9
invoke-virtual {v9}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getPaddingTop()I
move-result v9
if-eq v9, v8, :cond_b5
.line 301
iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->ignoreLayout:Z
.line 302
iget-object v9, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert;->gridView:Lim/tpelyyftgw/ui/components/RecyclerListView;
invoke-static {v9}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$100(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v9
invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v6
invoke-virtual {v9, v3, v8, v3, v6}, Lim/tpelyyftgw/ui/components/RecyclerListView;->setPadding(IIII)V
.line 303
iput-boolean v3, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->ignoreLayout:Z
.line 305
:cond_b5
if-lt v7, v0, :cond_b8
goto :goto_b9
:cond_b8
const/4 v2, 0x0
:goto_b9
iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->fullHeight:Z
.line 306
invoke-static {v7, v0}, Ljava/lang/Math;->min(II)I
move-result v2
const/high16 v3, 0x40000000 # 2.0f
invoke-static {v2, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v2
invoke-direct {p0, p1, v2}, Lim/tpelyyftgw/ui/components/ShareAlert$1;->onMeasureInternal(II)V
.line 307
return-void
.end method
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
.registers 3
.param p1, "e" # Landroid/view/MotionEvent;
.line 440
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/ShareAlert;->isDismissed()Z
move-result v0
if-nez v0, :cond_10
invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayout;->onTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
if-eqz v0, :cond_10
const/4 v0, 0x1
goto :goto_11
:cond_10
const/4 v0, 0x0
:goto_11
return v0
.end method
.method public requestLayout()V
.registers 2
.line 445
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$1;->ignoreLayout:Z
if-eqz v0, :cond_5
.line 446
return-void
.line 448
:cond_5
invoke-super {p0}, Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayout;->requestLayout()V
.line 449
return-void
.end method