PhotoViewer$FrameLayoutDrawer.smali
.class Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;
.super Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayoutPhoto;
.source "PhotoViewer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lim/tpelyyftgw/ui/PhotoViewer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2
name = "FrameLayoutDrawer"
.end annotation
# instance fields
.field private ignoreLayout:Z
.field private paint:Landroid/graphics/Paint;
.field final synthetic this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lim/tpelyyftgw/ui/PhotoViewer;Landroid/content/Context;)V
.registers 4
.param p2, "context" # Landroid/content/Context;
.line 1241
iput-object p1, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
.line 1242
invoke-direct {p0, p2}, Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayoutPhoto;-><init>(Landroid/content/Context;)V
.line 1238
new-instance p1, Landroid/graphics/Paint;
invoke-direct {p1}, Landroid/graphics/Paint;-><init>()V
iput-object p1, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->paint:Landroid/graphics/Paint;
.line 1243
const/4 p1, 0x0
invoke-virtual {p0, p1}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->setWillNotDraw(Z)V
.line 1244
iget-object p1, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->paint:Landroid/graphics/Paint;
const/high16 v0, 0x33000000
invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setColor(I)V
.line 1245
return-void
.end method
# virtual methods
.method protected drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
.registers 10
.param p1, "canvas" # Landroid/graphics/Canvas;
.param p2, "child" # Landroid/view/View;
.param p3, "drawingTime" # J
.line 1405
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->mentionListView:Lim/tpelyyftgw/ui/components/RecyclerListView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4400(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v0
const/4 v1, 0x1
const/4 v2, 0x0
if-eq p2, v0, :cond_f3
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v0
if-ne p2, v0, :cond_14
goto/16 :goto_f3
.line 1409
:cond_14
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->cameraItem:Landroid/widget/ImageView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4900(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/ImageView;
move-result-object v0
if-eq p2, v0, :cond_7c
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->pickerView:Landroid/widget/FrameLayout;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5000(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/FrameLayout;
move-result-object v0
if-eq p2, v0, :cond_7c
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->pickerViewSendButton:Landroid/widget/ImageView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5400(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/ImageView;
move-result-object v0
if-eq p2, v0, :cond_7c
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionTextView:Landroid/widget/TextView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4200(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/TextView;
move-result-object v0
if-eq p2, v0, :cond_7c
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->muteItem:Landroid/widget/ImageView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5500(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/ImageView;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/ImageView;->getVisibility()I
move-result v0
if-nez v0, :cond_49
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->bottomLayout:Landroid/widget/FrameLayout;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5600(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/FrameLayout;
move-result-object v0
if-ne p2, v0, :cond_49
goto :goto_7c
.line 1420
:cond_49
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->checkImageView:Lim/tpelyyftgw/ui/components/CheckBox;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5800(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/CheckBox;
move-result-object v0
if-eq p2, v0, :cond_63
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->photosCounterView:Lim/tpelyyftgw/ui/PhotoViewer$CounterView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5900(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/PhotoViewer$CounterView;
move-result-object v0
if-ne p2, v0, :cond_5a
goto :goto_63
.line 1427
:cond_5a
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->miniProgressView:Lim/tpelyyftgw/ui/components/RadialProgressView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$6000(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/RadialProgressView;
move-result-object v0
if-ne p2, v0, :cond_122
.line 1428
return v2
.line 1421
:cond_63
:goto_63
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->getTag()Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_75
.line 1422
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# setter for: Lim/tpelyyftgw/ui/PhotoViewer;->bottomTouchEnabled:Z
invoke-static {v0, v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5702(Lim/tpelyyftgw/ui/PhotoViewer;Z)Z
.line 1423
return v2
.line 1425
:cond_75
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# setter for: Lim/tpelyyftgw/ui/PhotoViewer;->bottomTouchEnabled:Z
invoke-static {v0, v1}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5702(Lim/tpelyyftgw/ui/PhotoViewer;Z)Z
goto/16 :goto_122
.line 1410
:cond_7c
:goto_7c
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getKeyboardHeight()I
move-result v0
const/high16 v3, 0x41a00000 # 20.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
if-gt v0, v3, :cond_97
sget-boolean v0, Lim/tpelyyftgw/messenger/AndroidUtilities;->isInMultiwindow:Z
if-nez v0, :cond_97
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->getEmojiPadding()I
move-result v0
goto :goto_98
:cond_97
const/4 v0, 0x0
.line 1411
.local v0, "paddingBottom":I
:goto_98
iget-object v3, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v3}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v3
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->isPopupShowing()Z
move-result v3
if-nez v3, :cond_c9
sget-boolean v3, Lim/tpelyyftgw/messenger/AndroidUtilities;->usingHardwareInput:Z
if-eqz v3, :cond_b4
iget-object v3, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v3}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v3
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->getTag()Ljava/lang/Object;
move-result-object v3
if-nez v3, :cond_c9
:cond_b4
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getKeyboardHeight()I
move-result v3
const/high16 v4, 0x42a00000 # 80.0f
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
if-gt v3, v4, :cond_c9
if-eqz v0, :cond_c3
goto :goto_c9
.line 1418
:cond_c3
iget-object v3, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# setter for: Lim/tpelyyftgw/ui/PhotoViewer;->bottomTouchEnabled:Z
invoke-static {v3, v1}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5702(Lim/tpelyyftgw/ui/PhotoViewer;Z)Z
.line 1420
.end local v0 # "paddingBottom":I
goto :goto_122
.line 1412
.restart local v0 # "paddingBottom":I
:cond_c9
:goto_c9
sget-boolean v1, Lim/tpelyyftgw/messenger/BuildVars;->DEBUG_VERSION:Z
if-eqz v1, :cond_ed
.line 1413
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "keyboard height = "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getKeyboardHeight()I
move-result v3
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v3, " padding = "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Lim/tpelyyftgw/messenger/FileLog;->d(Ljava/lang/String;)V
.line 1415
:cond_ed
iget-object v1, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# setter for: Lim/tpelyyftgw/ui/PhotoViewer;->bottomTouchEnabled:Z
invoke-static {v1, v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5702(Lim/tpelyyftgw/ui/PhotoViewer;Z)Z
.line 1416
return v2
.line 1406
.end local v0 # "paddingBottom":I
:cond_f3
:goto_f3
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->isPopupShowing()Z
move-result v0
if-nez v0, :cond_122
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->getEmojiPadding()I
move-result v0
if-nez v0, :cond_122
sget-boolean v0, Lim/tpelyyftgw/messenger/AndroidUtilities;->usingHardwareInput:Z
if-eqz v0, :cond_11b
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->getTag()Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_121
:cond_11b
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getKeyboardHeight()I
move-result v0
if-nez v0, :cond_122
.line 1407
:cond_121
return v2
.line 1431
:cond_122
:goto_122
:try_start_122
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$2900(Lim/tpelyyftgw/ui/PhotoViewer;)Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
move-result-object v0
if-eq p2, v0, :cond_131
invoke-super {p0, p1, p2, p3, p4}, Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayoutPhoto;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
move-result v0
:try_end_12e
.catchall {:try_start_122 .. :try_end_12e} :catchall_133
if-eqz v0, :cond_131
goto :goto_132
:cond_131
const/4 v1, 0x0
:goto_132
return v1
.line 1432
:catchall_133
move-exception v0
.line 1433
.local v0, "ignore":Ljava/lang/Throwable;
return v1
.end method
.method protected onDraw(Landroid/graphics/Canvas;)V
.registers 11
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 1388
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# invokes: Lim/tpelyyftgw/ui/PhotoViewer;->onDraw(Landroid/graphics/Canvas;)V
invoke-static {v0, p1}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5300(Lim/tpelyyftgw/ui/PhotoViewer;Landroid/graphics/Canvas;)V
.line 1390
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-lt v0, v1, :cond_90
sget v0, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
if-eqz v0, :cond_90
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4600(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/actionbar/ActionBar;
move-result-object v0
if-eqz v0, :cond_90
.line 1391
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->paint:Landroid/graphics/Paint;
iget-object v1, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-static {v1}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4600(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/actionbar/ActionBar;
move-result-object v1
invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->getAlpha()F
move-result v1
const/high16 v2, 0x437f0000 # 255.0f
mul-float v1, v1, v2
const v3, 0x3e4ccccd # 0.2f
mul-float v1, v1, v3
float-to-int v1, v1
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V
.line 1392
const/4 v4, 0x0
const/4 v5, 0x0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getMeasuredWidth()I
move-result v0
int-to-float v6, v0
sget v0, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
int-to-float v7, v0
iget-object v8, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->paint:Landroid/graphics/Paint;
move-object v3, p1
invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 1393
iget-object v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->paint:Landroid/graphics/Paint;
iget-object v1, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-static {v1}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4600(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/actionbar/ActionBar;
move-result-object v1
invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->getAlpha()F
move-result v1
mul-float v1, v1, v2
const v2, 0x3efef9db # 0.498f
mul-float v1, v1, v2
float-to-int v1, v1
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V
.line 1394
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getPaddingRight()I
move-result v0
if-lez v0, :cond_78
.line 1395
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getMeasuredWidth()I
move-result v0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getPaddingRight()I
move-result v1
sub-int/2addr v0, v1
int-to-float v2, v0
const/4 v3, 0x0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getMeasuredWidth()I
move-result v0
int-to-float v4, v0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getMeasuredHeight()I
move-result v0
int-to-float v5, v0
iget-object v6, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->paint:Landroid/graphics/Paint;
move-object v1, p1
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 1397
:cond_78
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getPaddingLeft()I
move-result v0
if-lez v0, :cond_90
.line 1398
const/4 v2, 0x0
const/4 v3, 0x0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getPaddingLeft()I
move-result v0
int-to-float v4, v0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getMeasuredHeight()I
move-result v0
int-to-float v5, v0
iget-object v6, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->paint:Landroid/graphics/Paint;
move-object v1, p1
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 1401
:cond_90
return-void
.end method
.method protected onLayout(ZIIII)V
.registers 26
.param p1, "changed" # Z
.param p2, "_l" # I
.param p3, "t" # I
.param p4, "_r" # I
.param p5, "_b" # I
.line 1291
move-object/from16 v0, p0
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getChildCount()I
move-result v1
.line 1292
.local v1, "count":I
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->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_21
sget-boolean v2, Lim/tpelyyftgw/messenger/AndroidUtilities;->isInMultiwindow:Z
if-nez v2, :cond_21
iget-object v2, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v2
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->getEmojiPadding()I
move-result v2
goto :goto_22
:cond_21
const/4 v2, 0x0
.line 1294
.local v2, "paddingBottom":I
:goto_22
const/4 v3, 0x0
.local v3, "i":I
:goto_23
if-ge v3, v1, :cond_1e4
.line 1295
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getChildAt(I)Landroid/view/View;
move-result-object v4
.line 1296
.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_37
.line 1297
move/from16 v16, v1
move/from16 v18, v2
goto/16 :goto_1dc
.line 1300
:cond_37
iget-object v5, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
invoke-static {v5}, Lim/tpelyyftgw/ui/PhotoViewer;->access$2900(Lim/tpelyyftgw/ui/PhotoViewer;)Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
move-result-object v5
if-ne v4, v5, :cond_46
.line 1301
move/from16 v5, p2
.line 1302
.local v5, "l":I
move/from16 v6, p4
.line 1303
.local v6, "r":I
move/from16 v7, p5
.local v7, "b":I
goto :goto_58
.line 1305
.end local v5 # "l":I
.end local v6 # "r":I
.end local v7 # "b":I
:cond_46
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getPaddingLeft()I
move-result v5
add-int v5, p2, v5
.line 1306
.restart local v5 # "l":I
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getPaddingRight()I
move-result v6
sub-int v6, p4, v6
.line 1307
.restart local v6 # "r":I
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getPaddingBottom()I
move-result v7
sub-int v7, p5, v7
.line 1309
.restart local v7 # "b":I
:goto_58
invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v8
check-cast v8, Landroid/widget/FrameLayout$LayoutParams;
.line 1311
.local v8, "lp":Landroid/widget/FrameLayout$LayoutParams;
invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I
move-result v9
.line 1312
.local v9, "width":I
invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I
move-result v10
.line 1317
.local v10, "height":I
iget v11, v8, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 1318
.local v11, "gravity":I
const/4 v12, -0x1
if-ne v11, v12, :cond_6d
.line 1319
const/16 v11, 0x33
.line 1322
:cond_6d
and-int/lit8 v12, v11, 0x7
.line 1323
.local v12, "absoluteGravity":I
and-int/lit8 v13, v11, 0x70
.line 1325
.local v13, "verticalGravity":I
and-int/lit8 v14, v12, 0x7
const/4 v15, 0x5
move/from16 v16, v1
.end local v1 # "count":I
.local v16, "count":I
const/4 v1, 0x1
if-eq v14, v1, :cond_85
if-eq v14, v15, :cond_7e
.line 1334
iget v1, v8, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
.local v1, "childLeft":I
goto :goto_91
.line 1330
.end local v1 # "childLeft":I
:cond_7e
sub-int v1, v6, v5
sub-int/2addr v1, v9
iget v14, v8, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
sub-int/2addr v1, v14
.line 1331
.restart local v1 # "childLeft":I
goto :goto_91
.line 1327
.end local v1 # "childLeft":I
:cond_85
sub-int v1, v6, v5
sub-int/2addr v1, v9
div-int/lit8 v1, v1, 0x2
iget v14, v8, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
add-int/2addr v1, v14
iget v14, v8, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
sub-int/2addr v1, v14
.line 1328
.restart local v1 # "childLeft":I
nop
.line 1337
:goto_91
const/16 v14, 0x10
if-eq v13, v14, :cond_a5
const/16 v14, 0x50
if-eq v13, v14, :cond_9c
.line 1352
iget v14, v8, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
.local v14, "childTop":I
goto :goto_b3
.line 1349
.end local v14 # "childTop":I
:cond_9c
sub-int v14, v7, v2
sub-int v14, v14, p3
sub-int/2addr v14, v10
iget v15, v8, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
sub-int/2addr v14, v15
.line 1350
.restart local v14 # "childTop":I
goto :goto_b3
.line 1346
.end local v14 # "childTop":I
:cond_a5
sub-int v14, v7, v2
sub-int v14, v14, p3
sub-int/2addr v14, v10
div-int/lit8 v14, v14, 0x2
iget v15, v8, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
add-int/2addr v14, v15
iget v15, v8, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
sub-int/2addr v14, v15
.line 1347
.restart local v14 # "childTop":I
nop
.line 1356
:goto_b3
iget-object v15, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->mentionListView:Lim/tpelyyftgw/ui/components/RecyclerListView;
invoke-static {v15}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4400(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v15
if-ne v4, v15, :cond_cc
.line 1357
iget-object v15, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v15}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v15
invoke-virtual {v15}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->getMeasuredHeight()I
move-result v15
sub-int/2addr v14, v15
move/from16 v18, v2
move/from16 v19, v6
goto/16 :goto_1d2
.line 1358
:cond_cc
iget-object v15, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v15}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v15
invoke-virtual {v15, v4}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->isPopupView(Landroid/view/View;)Z
move-result v15
if-eqz v15, :cond_10a
.line 1359
sget-boolean v15, Lim/tpelyyftgw/messenger/AndroidUtilities;->isInMultiwindow:Z
if-eqz v15, :cond_fa
.line 1360
iget-object v15, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v15}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v15
invoke-virtual {v15}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->getTop()I
move-result v15
invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I
move-result v17
sub-int v15, v15, v17
const/high16 v17, 0x3f800000 # 1.0f
invoke-static/range {v17 .. v17}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v17
add-int v14, v15, v17
move/from16 v18, v2
move/from16 v19, v6
goto/16 :goto_1d2
.line 1362
:cond_fa
iget-object v15, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v15}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v15
invoke-virtual {v15}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->getBottom()I
move-result v14
move/from16 v18, v2
move/from16 v19, v6
goto/16 :goto_1d2
.line 1364
:cond_10a
iget-object v15, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->selectedPhotosListView:Lim/tpelyyftgw/ui/components/RecyclerListView;
invoke-static {v15}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4500(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v15
if-ne v4, v15, :cond_122
.line 1365
iget-object v15, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-static {v15}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4600(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/actionbar/ActionBar;
move-result-object v15
invoke-virtual {v15}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->getMeasuredHeight()I
move-result v14
move/from16 v18, v2
move/from16 v19, v6
goto/16 :goto_1d2
.line 1366
:cond_122
iget-object v15, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionTextView:Landroid/widget/TextView;
invoke-static {v15}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4200(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/TextView;
move-result-object v15
if-eq v4, v15, :cond_1b5
iget-object v15, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->switchCaptionTextView:Landroid/widget/TextView;
invoke-static {v15}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4700(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/TextView;
move-result-object v15
if-ne v4, v15, :cond_138
move/from16 v18, v2
move/from16 v19, v6
goto/16 :goto_1b9
.line 1370
:cond_138
iget-object v15, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->cameraItem:Landroid/widget/ImageView;
invoke-static {v15}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4900(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/ImageView;
move-result-object v15
if-ne v4, v15, :cond_178
.line 1371
iget-object v15, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->pickerView:Landroid/widget/FrameLayout;
invoke-static {v15}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5000(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/FrameLayout;
move-result-object v15
invoke-virtual {v15}, Landroid/widget/FrameLayout;->getTop()I
move-result v15
move/from16 v18, v2
.end local v2 # "paddingBottom":I
.local v18, "paddingBottom":I
iget-object v2, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->sendPhotoType:I
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5100(Lim/tpelyyftgw/ui/PhotoViewer;)I
move-result v2
move/from16 v19, v6
.end local v6 # "r":I
.local v19, "r":I
const/4 v6, 0x4
if-eq v2, v6, :cond_164
iget-object v2, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->sendPhotoType:I
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5100(Lim/tpelyyftgw/ui/PhotoViewer;)I
move-result v2
const/4 v6, 0x5
if-ne v2, v6, :cond_161
goto :goto_164
:cond_161
const/high16 v2, 0x41700000 # 15.0f
goto :goto_166
:cond_164
:goto_164
const/high16 v2, 0x42200000 # 40.0f
:goto_166
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
sub-int/2addr v15, v2
iget-object v2, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->cameraItem:Landroid/widget/ImageView;
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4900(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/ImageView;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/ImageView;->getMeasuredHeight()I
move-result v2
sub-int v14, v15, v2
goto :goto_1d2
.line 1372
.end local v18 # "paddingBottom":I
.end local v19 # "r":I
.restart local v2 # "paddingBottom":I
.restart local v6 # "r":I
:cond_178
move/from16 v18, v2
move/from16 v19, v6
.end local v2 # "paddingBottom":I
.end local v6 # "r":I
.restart local v18 # "paddingBottom":I
.restart local v19 # "r":I
iget-object v2, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->videoPreviewFrame:Lim/tpelyyftgw/ui/components/VideoSeekPreviewImage;
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$5200(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/VideoSeekPreviewImage;
move-result-object v2
if-ne v4, v2, :cond_1d2
.line 1373
iget-object v2, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->groupedPhotosListView:Lim/tpelyyftgw/ui/components/GroupedPhotosListView;
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4800(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/GroupedPhotosListView;
move-result-object v2
iget-object v2, v2, Lim/tpelyyftgw/ui/components/GroupedPhotosListView;->currentPhotos:Ljava/util/ArrayList;
invoke-virtual {v2}, Ljava/util/ArrayList;->isEmpty()Z
move-result v2
if-nez v2, :cond_19d
.line 1374
iget-object v2, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->groupedPhotosListView:Lim/tpelyyftgw/ui/components/GroupedPhotosListView;
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4800(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/GroupedPhotosListView;
move-result-object v2
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/GroupedPhotosListView;->getMeasuredHeight()I
move-result v2
sub-int/2addr v14, v2
.line 1376
:cond_19d
iget-object v2, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionTextView:Landroid/widget/TextView;
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4200(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/TextView;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/TextView;->getVisibility()I
move-result v2
if-nez v2, :cond_1d2
.line 1377
iget-object v2, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionTextView:Landroid/widget/TextView;
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4200(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/TextView;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/TextView;->getMeasuredHeight()I
move-result v2
sub-int/2addr v14, v2
goto :goto_1d2
.line 1366
.end local v18 # "paddingBottom":I
.end local v19 # "r":I
.restart local v2 # "paddingBottom":I
.restart local v6 # "r":I
:cond_1b5
move/from16 v18, v2
move/from16 v19, v6
.line 1367
.end local v2 # "paddingBottom":I
.end local v6 # "r":I
.restart local v18 # "paddingBottom":I
.restart local v19 # "r":I
:goto_1b9
iget-object v2, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->groupedPhotosListView:Lim/tpelyyftgw/ui/components/GroupedPhotosListView;
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4800(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/GroupedPhotosListView;
move-result-object v2
iget-object v2, v2, Lim/tpelyyftgw/ui/components/GroupedPhotosListView;->currentPhotos:Ljava/util/ArrayList;
invoke-virtual {v2}, Ljava/util/ArrayList;->isEmpty()Z
move-result v2
if-nez v2, :cond_1d2
.line 1368
iget-object v2, v0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->groupedPhotosListView:Lim/tpelyyftgw/ui/components/GroupedPhotosListView;
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4800(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/GroupedPhotosListView;
move-result-object v2
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/GroupedPhotosListView;->getMeasuredHeight()I
move-result v2
sub-int/2addr v14, v2
.line 1380
:cond_1d2
:goto_1d2
add-int v2, v1, v5
add-int v6, v1, v9
add-int/2addr v6, v5
add-int v15, v14, v10
invoke-virtual {v4, v2, v14, v6, v15}, Landroid/view/View;->layout(IIII)V
.line 1294
.end local v1 # "childLeft":I
.end local v4 # "child":Landroid/view/View;
.end local v5 # "l":I
.end local v7 # "b":I
.end local v8 # "lp":Landroid/widget/FrameLayout$LayoutParams;
.end local v9 # "width":I
.end local v10 # "height":I
.end local v11 # "gravity":I
.end local v12 # "absoluteGravity":I
.end local v13 # "verticalGravity":I
.end local v14 # "childTop":I
.end local v19 # "r":I
:goto_1dc
add-int/lit8 v3, v3, 0x1
move/from16 v1, v16
move/from16 v2, v18
goto/16 :goto_23
.line 1383
.end local v3 # "i":I
.end local v16 # "count":I
.end local v18 # "paddingBottom":I
.local v1, "count":I
.restart local v2 # "paddingBottom":I
:cond_1e4
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->notifyHeightChanged()V
.line 1384
return-void
.end method
.method protected onMeasure(II)V
.registers 16
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 1249
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v0
.line 1250
.local v0, "widthSize":I
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v1
.line 1252
.local v1, "heightSize":I
invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->setMeasuredDimension(II)V
.line 1254
const/4 v2, 0x1
iput-boolean v2, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->ignoreLayout:Z
.line 1255
iget-object v2, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionTextView:Landroid/widget/TextView;
invoke-static {v2}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4200(Lim/tpelyyftgw/ui/PhotoViewer;)Landroid/widget/TextView;
move-result-object v2
sget-object v3, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v3, v3, Landroid/graphics/Point;->x:I
sget-object v4, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v4, v4, Landroid/graphics/Point;->y:I
if-le v3, v4, :cond_20
const/4 v3, 0x5
goto :goto_22
:cond_20
const/16 v3, 0xa
:goto_22
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setMaxLines(I)V
.line 1256
const/4 v2, 0x0
iput-boolean v2, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->ignoreLayout:Z
.line 1258
iget-object v3, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v3}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v5
const/4 v7, 0x0
const/4 v9, 0x0
move-object v4, p0
move v6, p1
move v8, p2
invoke-virtual/range {v4 .. v9}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->measureChildWithMargins(Landroid/view/View;IIII)V
.line 1259
iget-object v3, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v3}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v3
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->getMeasuredHeight()I
move-result v3
.line 1261
.local v3, "inputFieldHeight":I
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getPaddingRight()I
move-result v4
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getPaddingLeft()I
move-result v5
add-int/2addr v4, v5
sub-int/2addr v0, v4
.line 1262
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getPaddingBottom()I
move-result v4
sub-int/2addr v1, v4
.line 1264
invoke-virtual {p0}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getChildCount()I
move-result v4
.line 1265
.local v4, "childCount":I
const/4 v5, 0x0
.local v5, "i":I
:goto_54
if-ge v5, v4, :cond_ee
.line 1266
invoke-virtual {p0, v5}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->getChildAt(I)Landroid/view/View;
move-result-object v12
.line 1267
.local v12, "child":Landroid/view/View;
invoke-virtual {v12}, Landroid/view/View;->getVisibility()I
move-result v6
const/16 v7, 0x8
if-eq v6, v7, :cond_ea
iget-object v6, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v6}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v6
if-ne v12, v6, :cond_6c
.line 1268
goto/16 :goto_ea
.line 1270
:cond_6c
iget-object v6, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
invoke-static {v6}, Lim/tpelyyftgw/ui/PhotoViewer;->access$2900(Lim/tpelyyftgw/ui/PhotoViewer;)Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
move-result-object v6
const/high16 v7, 0x40000000 # 2.0f
if-ne v12, v6, :cond_8d
.line 1271
sget-object v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v6, v6, Landroid/graphics/Point;->y:I
sget v8, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v9, 0x15
if-lt v8, v9, :cond_83
sget v8, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
goto :goto_84
:cond_83
const/4 v8, 0x0
:goto_84
add-int/2addr v6, v8
invoke-static {v6, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v6
.line 1272
.local v6, "heightSpec":I
invoke-virtual {v12, p1, v6}, Landroid/view/View;->measure(II)V
.line 1273
.end local v6 # "heightSpec":I
goto :goto_ea
:cond_8d
iget-object v6, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->this$0:Lim/tpelyyftgw/ui/PhotoViewer;
# getter for: Lim/tpelyyftgw/ui/PhotoViewer;->captionEditText:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
invoke-static {v6}, Lim/tpelyyftgw/ui/PhotoViewer;->access$4300(Lim/tpelyyftgw/ui/PhotoViewer;)Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
move-result-object v6
invoke-virtual {v6, v12}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->isPopupView(Landroid/view/View;)Z
move-result v6
if-eqz v6, :cond_e1
.line 1274
sget-boolean v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->isInMultiwindow:Z
if-eqz v6, :cond_cf
.line 1275
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->isTablet()Z
move-result v6
if-eqz v6, :cond_be
.line 1276
invoke-static {v0, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v6
const/high16 v8, 0x43a00000 # 320.0f
invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v8
sub-int v9, v1, v3
sget v10, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int/2addr v9, v10
invoke-static {v8, v9}, Ljava/lang/Math;->min(II)I
move-result v8
invoke-static {v8, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v7
invoke-virtual {v12, v6, v7}, Landroid/view/View;->measure(II)V
goto :goto_ea
.line 1278
:cond_be
invoke-static {v0, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v6
sub-int v8, v1, v3
sget v9, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int/2addr v8, v9
invoke-static {v8, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v7
invoke-virtual {v12, v6, v7}, Landroid/view/View;->measure(II)V
goto :goto_ea
.line 1281
:cond_cf
invoke-static {v0, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v6
invoke-virtual {v12}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v8
iget v8, v8, Landroid/view/ViewGroup$LayoutParams;->height:I
invoke-static {v8, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v7
invoke-virtual {v12, v6, v7}, Landroid/view/View;->measure(II)V
goto :goto_ea
.line 1284
:cond_e1
const/4 v9, 0x0
const/4 v11, 0x0
move-object v6, p0
move-object v7, v12
move v8, p1
move v10, p2
invoke-virtual/range {v6 .. v11}, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->measureChildWithMargins(Landroid/view/View;IIII)V
.line 1265
.end local v12 # "child":Landroid/view/View;
:cond_ea
:goto_ea
add-int/lit8 v5, v5, 0x1
goto/16 :goto_54
.line 1287
.end local v5 # "i":I
:cond_ee
return-void
.end method
.method public requestLayout()V
.registers 2
.line 1439
iget-boolean v0, p0, Lim/tpelyyftgw/ui/PhotoViewer$FrameLayoutDrawer;->ignoreLayout:Z
if-eqz v0, :cond_5
.line 1440
return-void
.line 1442
:cond_5
invoke-super {p0}, Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayoutPhoto;->requestLayout()V
.line 1443
return-void
.end method