PhotoAttachPhotoCell.smali
.class public Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;
.super Landroid/widget/FrameLayout;
.source "PhotoAttachPhotoCell.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$PhotoAttachPhotoCellDelegate;
}
.end annotation
# static fields
.field private static rect:Landroid/graphics/Rect;
# instance fields
.field private animator:Landroid/animation/AnimatorSet;
.field private animatorSet:Landroid/animation/AnimatorSet;
.field private backgroundPaint:Landroid/graphics/Paint;
.field private checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
.field private checkFrame:Landroid/widget/FrameLayout;
.field private container:Landroid/widget/FrameLayout;
.field private delegate:Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$PhotoAttachPhotoCellDelegate;
.field private imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
.field private isLast:Z
.field private isVertical:Z
.field private itemSize:I
.field private itemSizeChanged:Z
.field private mblnNewStyle:Z
.field private mediaInfoContainer:Landroid/widget/RelativeLayout;
.field private final mediaInfoDrawableRight:Landroid/widget/ImageView;
.field private needCheckShow:Z
.field private photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
.field private pressed:Z
.field private searchEntry:Lim/tpelyyftgw/messenger/MediaController$SearchImage;
.field private videoTextView:Landroid/widget/TextView;
.field private zoomOnSelect:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 54
new-instance v0, Landroid/graphics/Rect;
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
sput-object v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->rect:Landroid/graphics/Rect;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.registers 19
.param p1, "context" # Landroid/content/Context;
.line 75
move-object/from16 v0, p0
move-object/from16 v1, p1
invoke-direct/range {p0 .. p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
.line 58
const/4 v2, 0x0
iput-boolean v2, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mblnNewStyle:Z
.line 61
const/4 v3, 0x1
iput-boolean v3, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->zoomOnSelect:Z
.line 66
new-instance v4, Landroid/graphics/Paint;
invoke-direct {v4}, Landroid/graphics/Paint;-><init>()V
iput-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->backgroundPaint:Landroid/graphics/Paint;
.line 77
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->setWillNotDraw(Z)V
.line 79
new-instance v4, Landroid/widget/FrameLayout;
invoke-direct {v4, v1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
iput-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->container:Landroid/widget/FrameLayout;
.line 80
const/high16 v5, 0x42a00000 # 80.0f
const/16 v6, 0x50
invoke-static {v6, v5}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(IF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v6
invoke-virtual {v0, v4, v6}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 82
new-instance v4, Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-direct {v4, v1}, Lim/tpelyyftgw/ui/components/BackupImageView;-><init>(Landroid/content/Context;)V
iput-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
.line 83
iget-object v6, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->container:Landroid/widget/FrameLayout;
const/4 v7, -0x1
const/high16 v8, -0x40800000 # -1.0f
invoke-static {v7, v8}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(IF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v8
invoke-virtual {v6, v4, v8}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 85
new-instance v4, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$1;
invoke-direct {v4, v0, v1}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$1;-><init>(Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;Landroid/content/Context;)V
iput-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoContainer:Landroid/widget/RelativeLayout;
.line 95
invoke-virtual {v4, v2}, Landroid/widget/RelativeLayout;->setWillNotDraw(Z)V
.line 96
iget-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoContainer:Landroid/widget/RelativeLayout;
const/high16 v6, 0x40a00000 # 5.0f
invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v8
invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v6
invoke-virtual {v4, v8, v2, v6, v2}, Landroid/widget/RelativeLayout;->setPadding(IIII)V
.line 97
iget-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->container:Landroid/widget/FrameLayout;
iget-object v6, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoContainer:Landroid/widget/RelativeLayout;
const/high16 v8, -0x40000000 # -2.0f
const/high16 v9, 0x41880000 # 17.0f
const/16 v10, 0x53
const/high16 v11, 0x40800000 # 4.0f
const/4 v12, 0x0
const/4 v13, 0x0
const/high16 v14, 0x40800000 # 4.0f
invoke-static/range {v8 .. v14}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v8
invoke-virtual {v4, v6, v8}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 99
new-instance v4, Landroid/widget/ImageView;
invoke-direct {v4, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
iput-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoDrawableRight:Landroid/widget/ImageView;
.line 100
invoke-virtual {v4}, Ljava/lang/Object;->hashCode()I
move-result v6
invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setId(I)V
.line 101
iget-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoDrawableRight:Landroid/widget/ImageView;
const v6, 0x7f0802dc
invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setImageResource(I)V
.line 102
iget-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoContainer:Landroid/widget/RelativeLayout;
iget-object v6, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoDrawableRight:Landroid/widget/ImageView;
const/4 v8, -0x2
const/16 v9, 0xf
invoke-static {v8, v8, v9}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createRelative(III)Landroid/widget/RelativeLayout$LayoutParams;
move-result-object v8
invoke-virtual {v4, v6, v8}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 104
new-instance v4, Landroid/widget/TextView;
invoke-direct {v4, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
iput-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->videoTextView:Landroid/widget/TextView;
.line 105
invoke-virtual {v4, v7}, Landroid/widget/TextView;->setTextColor(I)V
.line 106
iget-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->videoTextView:Landroid/widget/TextView;
const-string v6, "fonts/rmedium.ttf"
invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getTypeface(Ljava/lang/String;)Landroid/graphics/Typeface;
move-result-object v6
invoke-virtual {v4, v6}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
.line 107
iget-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->videoTextView:Landroid/widget/TextView;
const/high16 v6, 0x41400000 # 12.0f
invoke-virtual {v4, v3, v6}, Landroid/widget/TextView;->setTextSize(IF)V
.line 108
iget-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->videoTextView:Landroid/widget/TextView;
const/4 v6, 0x2
invoke-virtual {v4, v6}, Landroid/widget/TextView;->setImportantForAccessibility(I)V
.line 109
iget-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoContainer:Landroid/widget/RelativeLayout;
iget-object v6, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->videoTextView:Landroid/widget/TextView;
iget-object v7, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoDrawableRight:Landroid/widget/ImageView;
invoke-virtual {v7}, Landroid/widget/ImageView;->getId()I
move-result v16
const/high16 v8, -0x40000000 # -2.0f
const/high16 v9, -0x40000000 # -2.0f
const/4 v10, 0x4
const/4 v11, 0x0
const/4 v12, 0x0
const/4 v13, 0x0
const/16 v14, 0xf
const/4 v15, 0x1
invoke-static/range {v8 .. v16}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createRelative(FFIIIIIII)Landroid/widget/RelativeLayout$LayoutParams;
move-result-object v7
invoke-virtual {v4, v6, v7}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 111
new-instance v4, Lim/tpelyyftgw/ui/components/CheckBox2;
const/16 v6, 0x18
invoke-direct {v4, v1, v6}, Lim/tpelyyftgw/ui/components/CheckBox2;-><init>(Landroid/content/Context;I)V
iput-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
.line 112
const/4 v6, 0x7
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/components/CheckBox2;->setDrawBackgroundAsArc(I)V
.line 113
iget-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
const-string v6, "chat_attachCheckBoxBackground"
const-string v7, "chat_attachPhotoBackground"
const-string v8, "chat_attachCheckBoxCheck"
invoke-virtual {v4, v6, v7, v8}, Lim/tpelyyftgw/ui/components/CheckBox2;->setColor(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 114
iget-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
const/high16 v6, 0x41d00000 # 26.0f
const/high16 v7, 0x41d00000 # 26.0f
const/16 v8, 0x33
const/high16 v9, 0x42500000 # 52.0f
const/high16 v10, 0x40800000 # 4.0f
const/4 v11, 0x0
const/4 v12, 0x0
invoke-static/range {v6 .. v12}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v6
invoke-virtual {v0, v4, v6}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 115
iget-object v4, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v4, v2}, Lim/tpelyyftgw/ui/components/CheckBox2;->setVisibility(I)V
.line 116
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->setFocusable(Z)V
.line 118
new-instance v2, Landroid/widget/FrameLayout;
invoke-direct {v2, v1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
iput-object v2, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkFrame:Landroid/widget/FrameLayout;
.line 119
const/high16 v6, 0x42280000 # 42.0f
const/high16 v7, 0x42280000 # 42.0f
const/high16 v9, 0x42180000 # 38.0f
const/4 v10, 0x0
invoke-static/range {v6 .. v12}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v3
invoke-virtual {v0, v2, v3}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 121
invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
iput v2, v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->itemSize:I
.line 122
return-void
.end method
.method static synthetic access$000(Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;)Landroid/animation/AnimatorSet;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;
.line 43
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animator:Landroid/animation/AnimatorSet;
return-object v0
.end method
.method static synthetic access$002(Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;Landroid/animation/AnimatorSet;)Landroid/animation/AnimatorSet;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;
.param p1, "x1" # Landroid/animation/AnimatorSet;
.line 43
iput-object p1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animator:Landroid/animation/AnimatorSet;
return-object p1
.end method
.method static synthetic access$100(Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;)Landroid/animation/AnimatorSet;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;
.line 43
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animatorSet:Landroid/animation/AnimatorSet;
return-object v0
.end method
.method static synthetic access$102(Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;Landroid/animation/AnimatorSet;)Landroid/animation/AnimatorSet;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;
.param p1, "x1" # Landroid/animation/AnimatorSet;
.line 43
iput-object p1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animatorSet:Landroid/animation/AnimatorSet;
return-object p1
.end method
# virtual methods
.method public callDelegate()V
.registers 2
.line 319
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->delegate:Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$PhotoAttachPhotoCellDelegate;
invoke-interface {v0, p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$PhotoAttachPhotoCellDelegate;->onCheckClick(Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;)V
.line 320
return-void
.end method
.method public clearAnimation()V
.registers 5
.line 353
invoke-super {p0}, Landroid/widget/FrameLayout;->clearAnimation()V
.line 354
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animator:Landroid/animation/AnimatorSet;
if-eqz v0, :cond_35
.line 355
invoke-virtual {v0}, Landroid/animation/AnimatorSet;->cancel()V
.line 356
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animator:Landroid/animation/AnimatorSet;
.line 358
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->container:Landroid/widget/FrameLayout;
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/CheckBox2;->isChecked()Z
move-result v1
const v2, 0x3f4978d5 # 0.787f
const/high16 v3, 0x3f800000 # 1.0f
if-eqz v1, :cond_20
const v1, 0x3f4978d5 # 0.787f
goto :goto_22
:cond_20
const/high16 v1, 0x3f800000 # 1.0f
:goto_22
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setScaleX(F)V
.line 359
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->container:Landroid/widget/FrameLayout;
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/CheckBox2;->isChecked()Z
move-result v1
if-eqz v1, :cond_30
goto :goto_32
:cond_30
const/high16 v2, 0x3f800000 # 1.0f
:goto_32
invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->setScaleY(F)V
.line 361
:cond_35
return-void
.end method
.method public getCheckBox()Lim/tpelyyftgw/ui/components/CheckBox2;
.registers 2
.line 173
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
return-object v0
.end method
.method public getCheckFrame()Landroid/widget/FrameLayout;
.registers 2
.line 177
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkFrame:Landroid/widget/FrameLayout;
return-object v0
.end method
.method public getImageView()Lim/tpelyyftgw/ui/components/BackupImageView;
.registers 2
.line 165
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
return-object v0
.end method
.method public getPhotoEntry()Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
.registers 2
.line 161
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
return-object v0
.end method
.method public getScale()F
.registers 2
.line 169
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->container:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getScaleX()F
move-result v0
return v0
.end method
.method public getVideoInfoContainer()Landroid/view/View;
.registers 2
.line 181
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoContainer:Landroid/widget/RelativeLayout;
return-object v0
.end method
.method public isChecked()Z
.registers 2
.line 257
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox2;->isChecked()Z
move-result v0
return v0
.end method
.method protected onDraw(Landroid/graphics/Canvas;)V
.registers 10
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 401
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox2;->isChecked()Z
move-result v0
if-nez v0, :cond_48
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->container:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getScaleX()F
move-result v0
const/high16 v1, 0x3f800000 # 1.0f
cmpl-float v0, v0, v1
if-nez v0, :cond_48
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->getImageReceiver()Lim/tpelyyftgw/messenger/ImageReceiver;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/ImageReceiver;->hasNotThumb()Z
move-result v0
if-eqz v0, :cond_48
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->getImageReceiver()Lim/tpelyyftgw/messenger/ImageReceiver;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/ImageReceiver;->getCurrentAlpha()F
move-result v0
cmpl-float v0, v0, v1
if-nez v0, :cond_48
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
if-eqz v0, :cond_3a
iget-object v0, v0, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->path:Ljava/lang/String;
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->isShowingImage(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_48
:cond_3a
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->searchEntry:Lim/tpelyyftgw/messenger/MediaController$SearchImage;
if-eqz v0, :cond_69
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->getPathToAttach()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lim/tpelyyftgw/ui/PhotoViewer;->isShowingImage(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_69
.line 402
:cond_48
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->backgroundPaint:Landroid/graphics/Paint;
const-string v1, "chat_attachPhotoBackground"
invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v1
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
.line 403
const/4 v3, 0x0
const/4 v4, 0x0
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->getMeasuredWidth()I
move-result v0
int-to-float v5, v0
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->getMeasuredHeight()I
move-result v0
int-to-float v6, v0
iget-object v7, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->backgroundPaint:Landroid/graphics/Paint;
move-object v2, p1
invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 405
:cond_69
return-void
.end method
.method public onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
.registers 6
.param p1, "info" # Landroid/view/accessibility/AccessibilityNodeInfo;
.line 409
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
.line 410
const/4 v0, 0x1
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setEnabled(Z)V
.line 411
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
if-eqz v1, :cond_38
iget-boolean v1, v1, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->isVideo:Z
if-eqz v1, :cond_38
.line 412
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const v2, 0x7f0f01c1
const-string v3, "AttachVideo"
invoke-static {v3, v2}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, ", "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget v2, v2, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->duration:I
invoke-static {v2}, Lim/tpelyyftgw/messenger/LocaleController;->formatCallDuration(I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {p1, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setText(Ljava/lang/CharSequence;)V
goto :goto_44
.line 414
:cond_38
const v1, 0x7f0f01bb
const-string v2, "AttachPhoto"
invoke-static {v2, v1}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
invoke-virtual {p1, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setText(Ljava/lang/CharSequence;)V
.line 416
:goto_44
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/CheckBox2;->isChecked()Z
move-result v1
if-eqz v1, :cond_4f
.line 417
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setSelected(Z)V
.line 419
:cond_4f
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-lt v0, v1, :cond_69
.line 420
new-instance v0, Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
const v1, 0x7f09002f
const v2, 0x7f0f0a6d
const-string v3, "Open"
invoke-static {v3, v2}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v2
invoke-direct {v0, v1, v2}, Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;-><init>(ILjava/lang/CharSequence;)V
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;)V
.line 422
:cond_69
return-void
.end method
.method protected onMeasure(II)V
.registers 8
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 149
iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->itemSizeChanged:Z
const/high16 v1, 0x40000000 # 2.0f
if-eqz v0, :cond_1d
.line 150
iget v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->itemSize:I
invoke-static {v0, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v0
iget v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->itemSize:I
const/high16 v3, 0x40a00000 # 5.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
add-int/2addr v2, v3
invoke-static {v2, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v1
invoke-super {p0, v0, v1}, Landroid/widget/FrameLayout;->onMeasure(II)V
goto :goto_5e
.line 152
:cond_1d
iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->isVertical:Z
const/4 v2, 0x0
const/4 v3, 0x6
const/high16 v4, 0x42a00000 # 80.0f
if-eqz v0, :cond_42
.line 153
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v0
invoke-static {v0, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v0
iget-boolean v4, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->isLast:Z
if-eqz v4, :cond_32
goto :goto_33
:cond_32
const/4 v2, 0x6
:goto_33
add-int/lit8 v2, v2, 0x50
int-to-float v2, v2
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
invoke-static {v2, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v1
invoke-super {p0, v0, v1}, Landroid/widget/FrameLayout;->onMeasure(II)V
goto :goto_5e
.line 155
:cond_42
iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->isLast:Z
if-eqz v0, :cond_47
goto :goto_48
:cond_47
const/4 v2, 0x6
:goto_48
add-int/lit8 v2, v2, 0x50
int-to-float v0, v2
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v0
invoke-static {v0, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v0
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
invoke-static {v2, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v1
invoke-super {p0, v0, v1}, Landroid/widget/FrameLayout;->onMeasure(II)V
.line 158
:goto_5e
return-void
.end method
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
.registers 7
.param p1, "event" # Landroid/view/MotionEvent;
.line 365
const/4 v0, 0x0
.line 367
.local v0, "result":Z
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkFrame:Landroid/widget/FrameLayout;
sget-object v2, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->rect:Landroid/graphics/Rect;
invoke-virtual {v1, v2}, Landroid/widget/FrameLayout;->getHitRect(Landroid/graphics/Rect;)V
.line 368
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v1
const/4 v2, 0x1
if-nez v1, :cond_28
.line 369
sget-object v1, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->rect:Landroid/graphics/Rect;
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v3
float-to-int v3, v3
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v4
float-to-int v4, v4
invoke-virtual {v1, v3, v4}, Landroid/graphics/Rect;->contains(II)Z
move-result v1
if-eqz v1, :cond_76
.line 370
iput-boolean v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->pressed:Z
.line 371
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->invalidate()V
.line 372
const/4 v0, 0x1
goto :goto_76
.line 374
:cond_28
iget-boolean v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->pressed:Z
if-eqz v1, :cond_76
.line 375
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v1
const/4 v3, 0x0
if-ne v1, v2, :cond_4b
.line 376
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->getParent()Landroid/view/ViewParent;
move-result-object v1
invoke-interface {v1, v2}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V
.line 377
iput-boolean v3, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->pressed:Z
.line 378
invoke-virtual {p0, v3}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->playSoundEffect(I)V
.line 379
invoke-virtual {p0, v2}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->sendAccessibilityEvent(I)V
.line 380
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->delegate:Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$PhotoAttachPhotoCellDelegate;
invoke-interface {v1, p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$PhotoAttachPhotoCellDelegate;->onCheckClick(Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;)V
.line 381
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->invalidate()V
goto :goto_76
.line 382
:cond_4b
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v1
const/4 v2, 0x3
if-ne v1, v2, :cond_58
.line 383
iput-boolean v3, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->pressed:Z
.line 384
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->invalidate()V
goto :goto_76
.line 385
:cond_58
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v1
const/4 v2, 0x2
if-ne v1, v2, :cond_76
.line 386
sget-object v1, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->rect:Landroid/graphics/Rect;
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v2
float-to-int v2, v2
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v4
float-to-int v4, v4
invoke-virtual {v1, v2, v4}, Landroid/graphics/Rect;->contains(II)Z
move-result v1
if-nez v1, :cond_76
.line 387
iput-boolean v3, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->pressed:Z
.line 388
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->invalidate()V
.line 392
:cond_76
:goto_76
if-nez v0, :cond_7c
.line 393
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
.line 396
:cond_7c
return v0
.end method
.method public performAccessibilityAction(ILandroid/os/Bundle;)Z
.registers 13
.param p1, "action" # I
.param p2, "arguments" # Landroid/os/Bundle;
.line 426
const v0, 0x7f09002f
if-ne p1, v0, :cond_4f
.line 427
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->getParent()Landroid/view/ViewParent;
move-result-object v0
check-cast v0, Landroid/view/View;
.line 428
.local v0, "parent":Landroid/view/View;
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v1
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v3
const/4 v5, 0x0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->getLeft()I
move-result v6
int-to-float v6, v6
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->getTop()I
move-result v7
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->getHeight()I
move-result v8
add-int/2addr v7, v8
add-int/lit8 v7, v7, -0x1
int-to-float v7, v7
const/4 v8, 0x0
invoke-static/range {v1 .. v8}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z
.line 429
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v2
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v4
const/4 v6, 0x1
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->getLeft()I
move-result v1
int-to-float v7, v1
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->getTop()I
move-result v1
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->getHeight()I
move-result v8
add-int/2addr v1, v8
add-int/lit8 v1, v1, -0x1
int-to-float v8, v1
const/4 v9, 0x0
invoke-static/range {v2 .. v9}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z
.line 431
.end local v0 # "parent":Landroid/view/View;
:cond_4f
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->performAccessibilityAction(ILandroid/os/Bundle;)Z
move-result v0
return v0
.end method
.method public setChecked(IZZ)V
.registers 14
.param p1, "num" # I
.param p2, "checked" # Z
.param p3, "animated" # Z
.line 261
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox2;->getVisibility()I
move-result v0
if-nez v0, :cond_a1
.line 262
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v0, p1, p2, p3}, Lim/tpelyyftgw/ui/components/CheckBox2;->setChecked(IZZ)V
.line 263
iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->itemSizeChanged:Z
const/high16 v1, 0x3f800000 # 1.0f
if-eqz v0, :cond_8c
.line 264
const v0, 0x3f4978d5 # 0.787f
.line 265
.local v0, "fScale":F
iget-boolean v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mblnNewStyle:Z
if-eqz v2, :cond_1c
.line 266
const/high16 v0, 0x3f800000 # 1.0f
.line 267
:cond_1c
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animator:Landroid/animation/AnimatorSet;
if-eqz v2, :cond_26
.line 268
invoke-virtual {v2}, Landroid/animation/AnimatorSet;->cancel()V
.line 269
const/4 v2, 0x0
iput-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animator:Landroid/animation/AnimatorSet;
.line 271
:cond_26
if-eqz p3, :cond_76
.line 272
new-instance v2, Landroid/animation/AnimatorSet;
invoke-direct {v2}, Landroid/animation/AnimatorSet;-><init>()V
iput-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animator:Landroid/animation/AnimatorSet;
.line 273
const/4 v3, 0x2
new-array v3, v3, [Landroid/animation/Animator;
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->container:Landroid/widget/FrameLayout;
sget-object v5, Landroid/view/View;->SCALE_X:Landroid/util/Property;
const/4 v6, 0x1
new-array v7, v6, [F
if-eqz p2, :cond_3d
move v8, v0
goto :goto_3f
:cond_3d
const/high16 v8, 0x3f800000 # 1.0f
:goto_3f
const/4 v9, 0x0
aput v8, v7, v9
.line 274
invoke-static {v4, v5, v7}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v4
aput-object v4, v3, v9
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->container:Landroid/widget/FrameLayout;
sget-object v5, Landroid/view/View;->SCALE_Y:Landroid/util/Property;
new-array v7, v6, [F
if-eqz p2, :cond_52
move v8, v0
goto :goto_54
:cond_52
const/high16 v8, 0x3f800000 # 1.0f
:goto_54
aput v8, v7, v9
.line 275
invoke-static {v4, v5, v7}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v4
aput-object v4, v3, v6
.line 273
invoke-virtual {v2, v3}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
.line 276
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animator:Landroid/animation/AnimatorSet;
const-wide/16 v3, 0xc8
invoke-virtual {v2, v3, v4}, Landroid/animation/AnimatorSet;->setDuration(J)Landroid/animation/AnimatorSet;
.line 277
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animator:Landroid/animation/AnimatorSet;
new-instance v3, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$2;
invoke-direct {v3, p0, p2}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$2;-><init>(Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;Z)V
invoke-virtual {v2, v3}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 295
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animator:Landroid/animation/AnimatorSet;
invoke-virtual {v2}, Landroid/animation/AnimatorSet;->start()V
goto :goto_8c
.line 297
:cond_76
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->container:Landroid/widget/FrameLayout;
if-eqz p2, :cond_7c
move v3, v0
goto :goto_7e
:cond_7c
const/high16 v3, 0x3f800000 # 1.0f
:goto_7e
invoke-virtual {v2, v3}, Landroid/widget/FrameLayout;->setScaleX(F)V
.line 298
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->container:Landroid/widget/FrameLayout;
if-eqz p2, :cond_87
move v3, v0
goto :goto_89
:cond_87
const/high16 v3, 0x3f800000 # 1.0f
:goto_89
invoke-virtual {v2, v3}, Landroid/widget/FrameLayout;->setScaleY(F)V
.line 301
.end local v0 # "fScale":F
:cond_8c
:goto_8c
iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mblnNewStyle:Z
if-eqz v0, :cond_a1
.line 302
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/CheckBox2;->isChecked()Z
move-result v2
if-eqz v2, :cond_9b
goto :goto_9e
:cond_9b
const v1, 0x3e99999a # 0.3f
:goto_9e
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setAlpha(F)V
.line 304
:cond_a1
return-void
.end method
.method public setDelegate(Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$PhotoAttachPhotoCellDelegate;)V
.registers 2
.param p1, "delegate" # Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$PhotoAttachPhotoCellDelegate;
.line 315
iput-object p1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->delegate:Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$PhotoAttachPhotoCellDelegate;
.line 316
return-void
.end method
.method public setIsVertical(Z)V
.registers 2
.param p1, "value" # Z
.line 125
iput-boolean p1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->isVertical:Z
.line 126
return-void
.end method
.method public setItemSize(I)V
.registers 6
.param p1, "size" # I
.line 129
iput p1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->itemSize:I
.line 131
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->container:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
.line 132
.local v0, "layoutParams":Landroid/widget/FrameLayout$LayoutParams;
iget v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->itemSize:I
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->height:I
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->width:I
.line 134
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkFrame:Landroid/widget/FrameLayout;
invoke-virtual {v1}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v1
move-object v0, v1
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
.line 135
const/16 v1, 0x35
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 136
const/4 v2, 0x0
iput v2, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
.line 138
iget-object v3, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/CheckBox2;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v3
move-object v0, v3
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
.line 139
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 140
iput v2, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
.line 141
const/high16 v1, 0x40a00000 # 5.0f
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
.line 142
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
const/4 v2, 0x6
invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/components/CheckBox2;->setDrawBackgroundAsArc(I)V
.line 144
const/4 v1, 0x1
iput-boolean v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->itemSizeChanged:Z
.line 145
return-void
.end method
.method public setNewStyle(Z)V
.registers 2
.param p1, "blnNewStyle" # Z
.line 435
iput-boolean p1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mblnNewStyle:Z
.line 436
return-void
.end method
.method public setNum(I)V
.registers 3
.param p1, "num" # I
.line 307
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/CheckBox2;->setNum(I)V
.line 308
return-void
.end method
.method public setOnCheckClickLisnener(Landroid/view/View$OnClickListener;)V
.registers 3
.param p1, "onCheckClickLisnener" # Landroid/view/View$OnClickListener;
.line 311
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkFrame:Landroid/widget/FrameLayout;
invoke-virtual {v0, p1}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 312
return-void
.end method
.method public setPhotoEntry(Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;ZZ)V
.registers 11
.param p1, "entry" # Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
.param p2, "needCheckShow" # Z
.param p3, "last" # Z
.line 185
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->pressed:Z
.line 186
iput-object p1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
.line 187
iput-boolean p3, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->isLast:Z
.line 188
iget-boolean v1, p1, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->isVideo:Z
const/4 v2, 0x1
if-eqz v1, :cond_43
.line 189
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v1, v0, v2}, Lim/tpelyyftgw/ui/components/BackupImageView;->setOrientation(IZ)V
.line 190
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoContainer:Landroid/widget/RelativeLayout;
invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->setVisibility(I)V
.line 191
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget v1, v1, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->duration:I
div-int/lit8 v1, v1, 0x3c
.line 192
.local v1, "minutes":I
iget-object v3, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget v3, v3, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->duration:I
mul-int/lit8 v4, v1, 0x3c
sub-int/2addr v3, v4
.line 193
.local v3, "seconds":I
if-nez v1, :cond_28
if-nez v3, :cond_28
.line 194
const/4 v3, 0x1
.line 196
:cond_28
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->videoTextView:Landroid/widget/TextView;
const/4 v5, 0x2
new-array v5, v5, [Ljava/lang/Object;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v6
aput-object v6, v5, v0
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v6
aput-object v6, v5, v2
const-string v6, "%d:%02d"
invoke-static {v6, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v5
invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 197
.end local v1 # "minutes":I
.end local v3 # "seconds":I
goto :goto_69
.line 198
:cond_43
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget-object v1, v1, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->path:Ljava/lang/String;
const-string v3, ".gif"
invoke-virtual {v1, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_63
.line 199
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoContainer:Landroid/widget/RelativeLayout;
invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->setVisibility(I)V
.line 200
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoDrawableRight:Landroid/widget/ImageView;
const/16 v3, 0x8
invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setVisibility(I)V
.line 201
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->videoTextView:Landroid/widget/TextView;
const-string v3, "GIF"
invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_69
.line 203
:cond_63
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoContainer:Landroid/widget/RelativeLayout;
const/4 v3, 0x4
invoke-virtual {v1, v3}, Landroid/widget/RelativeLayout;->setVisibility(I)V
.line 206
:goto_69
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget-object v1, v1, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->thumbPath:Ljava/lang/String;
const/4 v3, 0x0
if-eqz v1, :cond_7c
.line 207
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget-object v4, v4, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->thumbPath:Ljava/lang/String;
sget-object v5, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_attachEmptyDrawable:Landroid/graphics/drawable/Drawable;
invoke-virtual {v1, v4, v3, v5}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V
goto :goto_ea
.line 208
:cond_7c
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget-object v1, v1, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->path:Ljava/lang/String;
if-eqz v1, :cond_e3
.line 209
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget-boolean v1, v1, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->isVideo:Z
const-string v4, ":"
if-eqz v1, :cond_b2
.line 210
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v6, "vthumb://"
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget v6, v6, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->imageId:I
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget-object v4, v4, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->path:Ljava/lang/String;
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
sget-object v5, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_attachEmptyDrawable:Landroid/graphics/drawable/Drawable;
invoke-virtual {v1, v4, v3, v5}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V
goto :goto_ea
.line 212
:cond_b2
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v5, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget v5, v5, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->orientation:I
invoke-virtual {v1, v5, v2}, Lim/tpelyyftgw/ui/components/BackupImageView;->setOrientation(IZ)V
.line 213
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v6, "thumb://"
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget v6, v6, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->imageId:I
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget-object v4, v4, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->path:Ljava/lang/String;
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
sget-object v5, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_attachEmptyDrawable:Landroid/graphics/drawable/Drawable;
invoke-virtual {v1, v4, v3, v5}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V
goto :goto_ea
.line 216
:cond_e3
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
sget-object v3, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_attachEmptyDrawable:Landroid/graphics/drawable/Drawable;
invoke-virtual {v1, v3}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 218
:goto_ea
if-eqz p2, :cond_f8
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->photoEntry:Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
iget-object v1, v1, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->path:Ljava/lang/String;
invoke-static {v1}, Lim/tpelyyftgw/ui/PhotoViewer;->isShowingImage(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_f8
const/4 v1, 0x1
goto :goto_f9
:cond_f8
const/4 v1, 0x0
.line 219
.local v1, "showing":Z
:goto_f9
iget-object v3, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/BackupImageView;->getImageReceiver()Lim/tpelyyftgw/messenger/ImageReceiver;
move-result-object v3
if-nez v1, :cond_102
const/4 v0, 0x1
:cond_102
invoke-virtual {v3, v0, v2}, Lim/tpelyyftgw/messenger/ImageReceiver;->setVisible(ZZ)V
.line 220
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
const/4 v2, 0x0
const/high16 v3, 0x3f800000 # 1.0f
if-eqz v1, :cond_10e
const/4 v4, 0x0
goto :goto_110
:cond_10e
const/high16 v4, 0x3f800000 # 1.0f
:goto_110
invoke-virtual {v0, v4}, Lim/tpelyyftgw/ui/components/CheckBox2;->setAlpha(F)V
.line 221
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoContainer:Landroid/widget/RelativeLayout;
if-eqz v1, :cond_118
goto :goto_11a
:cond_118
const/high16 v2, 0x3f800000 # 1.0f
:goto_11a
invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout;->setAlpha(F)V
.line 222
iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mblnNewStyle:Z
if-eqz v0, :cond_132
.line 223
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/CheckBox2;->isChecked()Z
move-result v2
if-eqz v2, :cond_12c
goto :goto_12f
:cond_12c
const v3, 0x3e99999a # 0.3f
:goto_12f
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/components/BackupImageView;->setAlpha(F)V
.line 224
:cond_132
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->requestLayout()V
.line 225
return-void
.end method
.method public setPhotoEntry(Lim/tpelyyftgw/messenger/MediaController$SearchImage;ZZ)V
.registers 10
.param p1, "searchImage" # Lim/tpelyyftgw/messenger/MediaController$SearchImage;
.param p2, "needCheckShow" # Z
.param p3, "last" # Z
.line 228
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->pressed:Z
.line 229
iput-object p1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->searchEntry:Lim/tpelyyftgw/messenger/MediaController$SearchImage;
.line 230
iput-boolean p3, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->isLast:Z
.line 232
iget-boolean v1, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->zoomOnSelect:Z
if-eqz v1, :cond_e
sget-object v1, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_attachEmptyDrawable:Landroid/graphics/drawable/Drawable;
goto :goto_1d
:cond_e
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x7f0817fa
invoke-static {v2}, Lnp/NPFog;->d(I)I
move-result v2
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v1
.line 233
.local v1, "thumb":Landroid/graphics/drawable/Drawable;
:goto_1d
iget-object v2, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->thumbPhotoSize:Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
const/4 v3, 0x0
if-eqz v2, :cond_30
.line 234
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v4, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->thumbPhotoSize:Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
iget-object v5, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->photo:Lim/tpelyyftgw/tgnet/TLRPC$Photo;
invoke-static {v4, v5}, Lim/tpelyyftgw/messenger/ImageLocation;->getForPhoto(Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;Lim/tpelyyftgw/tgnet/TLRPC$Photo;)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v4
invoke-virtual {v2, v4, v3, v1, p1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V
goto :goto_87
.line 235
:cond_30
iget-object v2, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->photoSize:Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
if-eqz v2, :cond_44
.line 236
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v3, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->photoSize:Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
iget-object v4, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->photo:Lim/tpelyyftgw/tgnet/TLRPC$Photo;
invoke-static {v3, v4}, Lim/tpelyyftgw/messenger/ImageLocation;->getForPhoto(Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;Lim/tpelyyftgw/tgnet/TLRPC$Photo;)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v3
const-string v4, "80_80"
invoke-virtual {v2, v3, v4, v1, p1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V
goto :goto_87
.line 237
:cond_44
iget-object v2, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->thumbPath:Ljava/lang/String;
if-eqz v2, :cond_50
.line 238
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v4, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->thumbPath:Ljava/lang/String;
invoke-virtual {v2, v4, v3, v1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V
goto :goto_87
.line 239
:cond_50
iget-object v2, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->thumbUrl:Ljava/lang/String;
if-eqz v2, :cond_64
iget-object v2, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->thumbUrl:Ljava/lang/String;
invoke-virtual {v2}, Ljava/lang/String;->length()I
move-result v2
if-lez v2, :cond_64
.line 240
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v4, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->thumbUrl:Ljava/lang/String;
invoke-virtual {v2, v4, v3, v1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V
goto :goto_87
.line 241
:cond_64
iget-object v2, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->document:Lim/tpelyyftgw/tgnet/TLRPC$Document;
invoke-static {v2}, Lim/tpelyyftgw/messenger/MessageObject;->isDocumentHasThumb(Lim/tpelyyftgw/tgnet/TLRPC$Document;)Z
move-result v2
if-eqz v2, :cond_82
.line 242
iget-object v2, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->document:Lim/tpelyyftgw/tgnet/TLRPC$Document;
iget-object v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$Document;->thumbs:Ljava/util/ArrayList;
const/16 v4, 0x140
invoke-static {v2, v4}, Lim/tpelyyftgw/messenger/FileLoader;->getClosestPhotoSizeWithSize(Ljava/util/ArrayList;I)Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
move-result-object v2
.line 243
.local v2, "photoSize":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v5, p1, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->document:Lim/tpelyyftgw/tgnet/TLRPC$Document;
invoke-static {v2, v5}, Lim/tpelyyftgw/messenger/ImageLocation;->getForDocument(Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;Lim/tpelyyftgw/tgnet/TLRPC$Document;)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v5
invoke-virtual {v4, v5, v3, v1, p1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V
.line 244
.end local v2 # "photoSize":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
goto :goto_87
.line 245
:cond_82
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v2, v1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 247
:goto_87
const/4 v2, 0x1
if-eqz p2, :cond_96
invoke-virtual {p1}, Lim/tpelyyftgw/messenger/MediaController$SearchImage;->getPathToAttach()Ljava/lang/String;
move-result-object v3
invoke-static {v3}, Lim/tpelyyftgw/ui/PhotoViewer;->isShowingImage(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_96
const/4 v3, 0x1
goto :goto_97
:cond_96
const/4 v3, 0x0
.line 248
.local v3, "showing":Z
:goto_97
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/BackupImageView;->getImageReceiver()Lim/tpelyyftgw/messenger/ImageReceiver;
move-result-object v4
if-nez v3, :cond_a0
const/4 v0, 0x1
:cond_a0
invoke-virtual {v4, v0, v2}, Lim/tpelyyftgw/messenger/ImageReceiver;->setVisible(ZZ)V
.line 249
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
const/4 v2, 0x0
const/high16 v4, 0x3f800000 # 1.0f
if-eqz v3, :cond_ac
const/4 v5, 0x0
goto :goto_ae
:cond_ac
const/high16 v5, 0x3f800000 # 1.0f
:goto_ae
invoke-virtual {v0, v5}, Lim/tpelyyftgw/ui/components/CheckBox2;->setAlpha(F)V
.line 250
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoContainer:Landroid/widget/RelativeLayout;
if-eqz v3, :cond_b6
goto :goto_b8
:cond_b6
const/high16 v2, 0x3f800000 # 1.0f
:goto_b8
invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout;->setAlpha(F)V
.line 251
iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mblnNewStyle:Z
if-eqz v0, :cond_d0
.line 252
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/CheckBox2;->isChecked()Z
move-result v2
if-eqz v2, :cond_ca
goto :goto_cd
:cond_ca
const v4, 0x3e99999a # 0.3f
:goto_cd
invoke-virtual {v0, v4}, Lim/tpelyyftgw/ui/components/BackupImageView;->setAlpha(F)V
.line 253
:cond_d0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->requestLayout()V
.line 254
return-void
.end method
.method public showCheck(Z)V
.registers 12
.param p1, "show" # Z
.line 327
if-eqz p1, :cond_c
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox2;->getVisibility()I
move-result v0
const/16 v1, 0x8
if-eq v0, v1, :cond_86
:cond_c
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox2;->getAlpha()F
move-result v0
const/high16 v1, 0x3f800000 # 1.0f
cmpl-float v0, v0, v1
if-eqz v0, :cond_86
const/4 v0, 0x0
if-nez p1, :cond_26
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/CheckBox2;->getAlpha()F
move-result v2
cmpl-float v2, v2, v0
if-nez v2, :cond_26
goto :goto_86
.line 330
:cond_26
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animatorSet:Landroid/animation/AnimatorSet;
if-eqz v2, :cond_30
.line 331
invoke-virtual {v2}, Landroid/animation/AnimatorSet;->cancel()V
.line 332
const/4 v2, 0x0
iput-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animatorSet:Landroid/animation/AnimatorSet;
.line 334
:cond_30
new-instance v2, Landroid/animation/AnimatorSet;
invoke-direct {v2}, Landroid/animation/AnimatorSet;-><init>()V
iput-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animatorSet:Landroid/animation/AnimatorSet;
.line 335
new-instance v3, Landroid/view/animation/DecelerateInterpolator;
invoke-direct {v3}, Landroid/view/animation/DecelerateInterpolator;-><init>()V
invoke-virtual {v2, v3}, Landroid/animation/AnimatorSet;->setInterpolator(Landroid/animation/TimeInterpolator;)V
.line 336
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animatorSet:Landroid/animation/AnimatorSet;
const-wide/16 v3, 0xb4
invoke-virtual {v2, v3, v4}, Landroid/animation/AnimatorSet;->setDuration(J)Landroid/animation/AnimatorSet;
.line 337
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animatorSet:Landroid/animation/AnimatorSet;
const/4 v3, 0x2
new-array v3, v3, [Landroid/animation/Animator;
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->mediaInfoContainer:Landroid/widget/RelativeLayout;
sget-object v5, Landroid/view/View;->ALPHA:Landroid/util/Property;
const/4 v6, 0x1
new-array v7, v6, [F
if-eqz p1, :cond_57
const/high16 v8, 0x3f800000 # 1.0f
goto :goto_58
:cond_57
const/4 v8, 0x0
:goto_58
const/4 v9, 0x0
aput v8, v7, v9
.line 338
invoke-static {v4, v5, v7}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v4
aput-object v4, v3, v9
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
sget-object v5, Landroid/view/View;->ALPHA:Landroid/util/Property;
new-array v7, v6, [F
if-eqz p1, :cond_6a
goto :goto_6b
:cond_6a
const/4 v1, 0x0
:goto_6b
aput v1, v7, v9
.line 339
invoke-static {v4, v5, v7}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v0
aput-object v0, v3, v6
.line 337
invoke-virtual {v2, v3}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
.line 340
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animatorSet:Landroid/animation/AnimatorSet;
new-instance v1, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$3;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell$3;-><init>(Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;)V
invoke-virtual {v0, v1}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 348
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->animatorSet:Landroid/animation/AnimatorSet;
invoke-virtual {v0}, Landroid/animation/AnimatorSet;->start()V
.line 349
return-void
.line 328
:cond_86
:goto_86
return-void
.end method
.method public showImage()V
.registers 3
.line 323
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->getImageReceiver()Lim/tpelyyftgw/messenger/ImageReceiver;
move-result-object v0
const/4 v1, 0x1
invoke-virtual {v0, v1, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setVisible(ZZ)V
.line 324
return-void
.end method