ChannelCreateActivity$2.smali
.class Lim/tpelyyftgw/ui/ChannelCreateActivity$2;
.super Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayout;
.source "ChannelCreateActivity.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/ChannelCreateActivity;->createView(Landroid/content/Context;)Landroid/view/View;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field private ignoreLayout:Z
.field final synthetic this$0:Lim/tpelyyftgw/ui/ChannelCreateActivity;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/ChannelCreateActivity;Landroid/content/Context;)V
.registers 3
.param p1, "this$0" # Lim/tpelyyftgw/ui/ChannelCreateActivity;
.param p2, "context" # Landroid/content/Context;
.line 293
iput-object p1, p0, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->this$0:Lim/tpelyyftgw/ui/ChannelCreateActivity;
invoke-direct {p0, p2}, Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayout;-><init>(Landroid/content/Context;)V
return-void
.end method
# virtual methods
.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 342
move-object v0, p0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->getChildCount()I
move-result v1
.line 344
.local v1, "count":I
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->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/ChannelCreateActivity$2;->this$0:Lim/tpelyyftgw/ui/ChannelCreateActivity;
.line 345
# getter for: Lim/tpelyyftgw/ui/ChannelCreateActivity;->nameTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v2}, Lim/tpelyyftgw/ui/ChannelCreateActivity;->access$200(Lim/tpelyyftgw/ui/ChannelCreateActivity;)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 346
.local v2, "paddingBottom":I
:goto_27
invoke-virtual {p0, v2}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->setBottomClip(I)V
.line 348
const/4 v3, 0x0
.local v3, "i":I
:goto_2b
if-ge v3, v1, :cond_de
.line 349
invoke-virtual {p0, v3}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->getChildAt(I)Landroid/view/View;
move-result-object v4
.line 350
.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 351
goto/16 :goto_da
.line 353
: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 355
.local v5, "lp":Landroid/widget/FrameLayout$LayoutParams;
invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I
move-result v6
.line 356
.local v6, "width":I
invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I
move-result v7
.line 361
.local v7, "height":I
iget v8, v5, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 362
.local v8, "gravity":I
const/4 v9, -0x1
if-ne v8, v9, :cond_50
.line 363
const/16 v8, 0x33
.line 366
:cond_50
and-int/lit8 v9, v8, 0x7
.line 367
.local v9, "absoluteGravity":I
and-int/lit8 v10, v8, 0x70
.line 369
.local v10, "verticalGravity":I
and-int/lit8 v11, v9, 0x7
const/4 v12, 0x1
if-eq v11, v12, :cond_65
const/4 v12, 0x5
if-eq v11, v12, :cond_5f
.line 378
iget v11, v5, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
.local v11, "childLeft":I
goto :goto_71
.line 374
.end local v11 # "childLeft":I
:cond_5f
sub-int v11, p4, v6
iget v12, v5, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
sub-int/2addr v11, v12
.line 375
.restart local v11 # "childLeft":I
goto :goto_71
.line 371
.end local v11 # "childLeft":I
:cond_65
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 372
.restart local v11 # "childLeft":I
nop
.line 381
:goto_71
const/16 v12, 0x10
if-eq v10, v12, :cond_91
const/16 v12, 0x30
if-eq v10, v12, :cond_89
const/16 v12, 0x50
if-eq v10, v12, :cond_80
.line 392
iget v12, v5, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
.local v12, "childTop":I
goto :goto_9f
.line 389
.end local v12 # "childTop":I
:cond_80
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 390
.restart local v12 # "childTop":I
goto :goto_9f
.line 383
.end local v12 # "childTop":I
:cond_89
iget v12, v5, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->getPaddingTop()I
move-result v13
add-int/2addr v12, v13
.line 384
.restart local v12 # "childTop":I
goto :goto_9f
.line 386
.end local v12 # "childTop":I
:cond_91
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 387
.restart local v12 # "childTop":I
nop
.line 395
:goto_9f
iget-object v13, v0, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->this$0:Lim/tpelyyftgw/ui/ChannelCreateActivity;
# getter for: Lim/tpelyyftgw/ui/ChannelCreateActivity;->nameTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v13}, Lim/tpelyyftgw/ui/ChannelCreateActivity;->access$200(Lim/tpelyyftgw/ui/ChannelCreateActivity;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v13
if-eqz v13, :cond_d3
iget-object v13, v0, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->this$0:Lim/tpelyyftgw/ui/ChannelCreateActivity;
# getter for: Lim/tpelyyftgw/ui/ChannelCreateActivity;->nameTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v13}, Lim/tpelyyftgw/ui/ChannelCreateActivity;->access$200(Lim/tpelyyftgw/ui/ChannelCreateActivity;)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_d3
.line 396
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->isTablet()Z
move-result v13
if-eqz v13, :cond_c4
.line 397
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->getMeasuredHeight()I
move-result v13
invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I
move-result v14
sub-int v12, v13, v14
goto :goto_d3
.line 399
:cond_c4
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->getMeasuredHeight()I
move-result v13
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->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 402
:cond_d3
:goto_d3
add-int v13, v11, v6
add-int v14, v12, v7
invoke-virtual {v4, v11, v12, v13, v14}, Landroid/view/View;->layout(IIII)V
.line 348
.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_da
add-int/lit8 v3, v3, 0x1
goto/16 :goto_2b
.line 405
.end local v3 # "i":I
:cond_de
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->notifyHeightChanged()V
.line 406
return-void
.end method
.method protected onMeasure(II)V
.registers 15
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 299
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v0
.line 300
.local v0, "widthSize":I
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v1
.line 302
.local v1, "heightSize":I
invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->setMeasuredDimension(II)V
.line 303
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->getPaddingTop()I
move-result v2
sub-int/2addr v1, v2
.line 305
iget-object v2, p0, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->this$0:Lim/tpelyyftgw/ui/ChannelCreateActivity;
# getter for: Lim/tpelyyftgw/ui/ChannelCreateActivity;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-static {v2}, Lim/tpelyyftgw/ui/ChannelCreateActivity;->access$1500(Lim/tpelyyftgw/ui/ChannelCreateActivity;)Lim/tpelyyftgw/ui/actionbar/ActionBar;
move-result-object v4
const/4 v6, 0x0
const/4 v8, 0x0
move-object v3, p0
move v5, p1
move v7, p2
invoke-virtual/range {v3 .. v8}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->measureChildWithMargins(Landroid/view/View;IIII)V
.line 307
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->getKeyboardHeight()I
move-result v2
.line 308
.local v2, "keyboardSize":I
const/high16 v3, 0x41a00000 # 20.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
if-le v2, v3, :cond_39
.line 309
const/4 v3, 0x1
iput-boolean v3, p0, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->ignoreLayout:Z
.line 310
iget-object v3, p0, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->this$0:Lim/tpelyyftgw/ui/ChannelCreateActivity;
# getter for: Lim/tpelyyftgw/ui/ChannelCreateActivity;->nameTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v3}, Lim/tpelyyftgw/ui/ChannelCreateActivity;->access$200(Lim/tpelyyftgw/ui/ChannelCreateActivity;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v3
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/EditTextEmoji;->hideEmojiView()V
.line 311
const/4 v3, 0x0
iput-boolean v3, p0, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->ignoreLayout:Z
.line 314
:cond_39
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->getChildCount()I
move-result v3
.line 315
.local v3, "childCount":I
const/4 v4, 0x0
.local v4, "i":I
:goto_3e
if-ge v4, v3, :cond_db
.line 316
invoke-virtual {p0, v4}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->getChildAt(I)Landroid/view/View;
move-result-object v11
.line 317
.local v11, "child":Landroid/view/View;
if-eqz v11, :cond_d7
invoke-virtual {v11}, Landroid/view/View;->getVisibility()I
move-result v5
const/16 v6, 0x8
if-eq v5, v6, :cond_d7
iget-object v5, p0, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->this$0:Lim/tpelyyftgw/ui/ChannelCreateActivity;
# getter for: Lim/tpelyyftgw/ui/ChannelCreateActivity;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-static {v5}, Lim/tpelyyftgw/ui/ChannelCreateActivity;->access$1600(Lim/tpelyyftgw/ui/ChannelCreateActivity;)Lim/tpelyyftgw/ui/actionbar/ActionBar;
move-result-object v5
if-ne v11, v5, :cond_58
.line 318
goto/16 :goto_d7
.line 320
:cond_58
iget-object v5, p0, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->this$0:Lim/tpelyyftgw/ui/ChannelCreateActivity;
# getter for: Lim/tpelyyftgw/ui/ChannelCreateActivity;->nameTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v5}, Lim/tpelyyftgw/ui/ChannelCreateActivity;->access$200(Lim/tpelyyftgw/ui/ChannelCreateActivity;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v5
if-eqz v5, :cond_ce
iget-object v5, p0, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->this$0:Lim/tpelyyftgw/ui/ChannelCreateActivity;
# getter for: Lim/tpelyyftgw/ui/ChannelCreateActivity;->nameTextView:Lim/tpelyyftgw/ui/components/EditTextEmoji;
invoke-static {v5}, Lim/tpelyyftgw/ui/ChannelCreateActivity;->access$200(Lim/tpelyyftgw/ui/ChannelCreateActivity;)Lim/tpelyyftgw/ui/components/EditTextEmoji;
move-result-object v5
invoke-virtual {v5, v11}, Lim/tpelyyftgw/ui/components/EditTextEmoji;->isPopupView(Landroid/view/View;)Z
move-result v5
if-eqz v5, :cond_ce
.line 321
sget-boolean v5, Lim/tpelyyftgw/messenger/AndroidUtilities;->isInMultiwindow:Z
const/high16 v6, 0x40000000 # 2.0f
if-nez v5, :cond_8b
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->isTablet()Z
move-result v5
if-eqz v5, :cond_79
goto :goto_8b
.line 331
:cond_79
invoke-static {v0, v6}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v5
.line 332
invoke-virtual {v11}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v7
iget v7, v7, Landroid/view/ViewGroup$LayoutParams;->height:I
invoke-static {v7, v6}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v6
.line 331
invoke-virtual {v11, v5, v6}, Landroid/view/View;->measure(II)V
goto :goto_d7
.line 322
:cond_8b
:goto_8b
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->isTablet()Z
move-result v5
if-eqz v5, :cond_b9
.line 323
invoke-static {v0, v6}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v5
.line 324
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->isTablet()Z
move-result v7
if-eqz v7, :cond_9e
const/high16 v7, 0x43480000 # 200.0f
goto :goto_a0
:cond_9e
const/high16 v7, 0x43a00000 # 320.0f
:goto_a0
invoke-static {v7}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v7
sget v8, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int v8, v1, v8
.line 325
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->getPaddingTop()I
move-result v9
add-int/2addr v8, v9
.line 324
invoke-static {v7, v8}, Ljava/lang/Math;->min(II)I
move-result v7
invoke-static {v7, v6}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v6
.line 323
invoke-virtual {v11, v5, v6}, Landroid/view/View;->measure(II)V
goto :goto_d7
.line 327
:cond_b9
invoke-static {v0, v6}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v5
sget v7, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int v7, v1, v7
.line 328
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->getPaddingTop()I
move-result v8
add-int/2addr v7, v8
invoke-static {v7, v6}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v6
.line 327
invoke-virtual {v11, v5, v6}, Landroid/view/View;->measure(II)V
goto :goto_d7
.line 335
:cond_ce
const/4 v8, 0x0
const/4 v10, 0x0
move-object v5, p0
move-object v6, v11
move v7, p1
move v9, p2
invoke-virtual/range {v5 .. v10}, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->measureChildWithMargins(Landroid/view/View;IIII)V
.line 315
.end local v11 # "child":Landroid/view/View;
:cond_d7
:goto_d7
add-int/lit8 v4, v4, 0x1
goto/16 :goto_3e
.line 338
.end local v4 # "i":I
:cond_db
return-void
.end method
.method public requestLayout()V
.registers 2
.line 410
iget-boolean v0, p0, Lim/tpelyyftgw/ui/ChannelCreateActivity$2;->ignoreLayout:Z
if-eqz v0, :cond_5
.line 411
return-void
.line 413
:cond_5
invoke-super {p0}, Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayout;->requestLayout()V
.line 414
return-void
.end method