ContentPreviewViewer.smali
.class public Lim/tpelyyftgw/ui/ContentPreviewViewer;
.super Ljava/lang/Object;
.source "ContentPreviewViewer.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;,
Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
}
.end annotation
# static fields
.field private static final CONTENT_TYPE_GIF:I = 0x1
.field private static final CONTENT_TYPE_NONE:I = -0x1
.field private static final CONTENT_TYPE_STICKER:I
.field private static volatile Instance:Lim/tpelyyftgw/ui/ContentPreviewViewer;
.field private static textPaint:Landroid/text/TextPaint;
# instance fields
.field private animateY:Z
.field private backgroundDrawable:Landroid/graphics/drawable/ColorDrawable;
.field private centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
.field private clearsInputField:Z
.field private containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
.field private currentAccount:I
.field private currentContentType:I
.field private currentDocument:Lim/tpelyyftgw/tgnet/TLRPC$Document;
.field private currentMoveY:F
.field private currentMoveYProgress:F
.field private currentPreviewCell:Landroid/view/View;
.field private currentStickerSet:Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;
.field private delegate:Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;
.field private finalMoveY:F
.field private inlineResult:Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;
.field private isVisible:Z
.field private keyboardHeight:I
.field private lastInsets:Landroid/view/WindowInsets;
.field private lastTouchY:F
.field private lastUpdateTime:J
.field private moveY:F
.field private openPreviewRunnable:Ljava/lang/Runnable;
.field private parentActivity:Landroid/app/Activity;
.field private parentObject:Ljava/lang/Object;
.field private showProgress:F
.field private showSheetRunnable:Ljava/lang/Runnable;
.field private slideUpDrawable:Landroid/graphics/drawable/Drawable;
.field private startMoveY:F
.field private startX:I
.field private startY:I
.field private stickerEmojiLayout:Landroid/text/StaticLayout;
.field private visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
.field private windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
.field private windowView:Landroid/widget/FrameLayout;
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 292
const/4 v0, 0x0
sput-object v0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->Instance:Lim/tpelyyftgw/ui/ContentPreviewViewer;
return-void
.end method
.method public constructor <init>()V
.registers 3
.line 54
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 98
const/4 v0, 0x0
iput v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->moveY:F
.line 113
new-instance v0, Landroid/graphics/drawable/ColorDrawable;
const/high16 v1, 0x71000000
invoke-direct {v0, v1}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V
iput-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->backgroundDrawable:Landroid/graphics/drawable/ColorDrawable;
.line 118
new-instance v0, Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-direct {v0}, Lim/tpelyyftgw/messenger/ImageReceiver;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
.line 119
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->isVisible:Z
.line 123
const/high16 v0, 0x43480000 # 200.0f
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v0
iput v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->keyboardHeight:I
.line 126
new-instance v0, Lim/tpelyyftgw/ui/ContentPreviewViewer$1;
invoke-direct {v0, p0}, Lim/tpelyyftgw/ui/ContentPreviewViewer$1;-><init>(Lim/tpelyyftgw/ui/ContentPreviewViewer;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showSheetRunnable:Ljava/lang/Runnable;
return-void
.end method
.method static synthetic access$000(Lim/tpelyyftgw/ui/ContentPreviewViewer;Landroid/graphics/Canvas;)V
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.param p1, "x1" # Landroid/graphics/Canvas;
.line 54
invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->onDraw(Landroid/graphics/Canvas;)V
return-void
.end method
.method static synthetic access$100(Lim/tpelyyftgw/ui/ContentPreviewViewer;)Landroid/app/Activity;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentActivity:Landroid/app/Activity;
return-object v0
.end method
.method static synthetic access$1000(Lim/tpelyyftgw/ui/ContentPreviewViewer;)F
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->finalMoveY:F
return v0
.end method
.method static synthetic access$1002(Lim/tpelyyftgw/ui/ContentPreviewViewer;F)F
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.param p1, "x1" # F
.line 54
iput p1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->finalMoveY:F
return p1
.end method
.method static synthetic access$1100(Lim/tpelyyftgw/ui/ContentPreviewViewer;)F
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->startMoveY:F
return v0
.end method
.method static synthetic access$1102(Lim/tpelyyftgw/ui/ContentPreviewViewer;F)F
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.param p1, "x1" # F
.line 54
iput p1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->startMoveY:F
return p1
.end method
.method static synthetic access$1200(Lim/tpelyyftgw/ui/ContentPreviewViewer;)F
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->moveY:F
return v0
.end method
.method static synthetic access$1202(Lim/tpelyyftgw/ui/ContentPreviewViewer;F)F
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.param p1, "x1" # F
.line 54
iput p1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->moveY:F
return p1
.end method
.method static synthetic access$1300(Lim/tpelyyftgw/ui/ContentPreviewViewer;)F
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveYProgress:F
return v0
.end method
.method static synthetic access$1302(Lim/tpelyyftgw/ui/ContentPreviewViewer;F)F
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.param p1, "x1" # F
.line 54
iput p1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveYProgress:F
return p1
.end method
.method static synthetic access$1400(Lim/tpelyyftgw/ui/ContentPreviewViewer;)Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->inlineResult:Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;
return-object v0
.end method
.method static synthetic access$1500(Lim/tpelyyftgw/ui/ContentPreviewViewer;)Ljava/lang/Object;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentObject:Ljava/lang/Object;
return-object v0
.end method
.method static synthetic access$1600(Lim/tpelyyftgw/ui/ContentPreviewViewer;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget-boolean v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->clearsInputField:Z
return v0
.end method
.method static synthetic access$200(Lim/tpelyyftgw/ui/ContentPreviewViewer;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentContentType:I
return v0
.end method
.method static synthetic access$300(Lim/tpelyyftgw/ui/ContentPreviewViewer;)Lim/tpelyyftgw/tgnet/TLRPC$Document;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentDocument:Lim/tpelyyftgw/tgnet/TLRPC$Document;
return-object v0
.end method
.method static synthetic access$400(Lim/tpelyyftgw/ui/ContentPreviewViewer;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentAccount:I
return v0
.end method
.method static synthetic access$500(Lim/tpelyyftgw/ui/ContentPreviewViewer;)Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->delegate:Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;
return-object v0
.end method
.method static synthetic access$600(Lim/tpelyyftgw/ui/ContentPreviewViewer;)Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentStickerSet:Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;
return-object v0
.end method
.method static synthetic access$700(Lim/tpelyyftgw/ui/ContentPreviewViewer;)Lim/tpelyyftgw/ui/actionbar/BottomSheet;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
return-object v0
.end method
.method static synthetic access$702(Lim/tpelyyftgw/ui/ContentPreviewViewer;Lim/tpelyyftgw/ui/actionbar/BottomSheet;)Lim/tpelyyftgw/ui/actionbar/BottomSheet;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.param p1, "x1" # Lim/tpelyyftgw/ui/actionbar/BottomSheet;
.line 54
iput-object p1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
return-object p1
.end method
.method static synthetic access$800(Lim/tpelyyftgw/ui/ContentPreviewViewer;)Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
return-object v0
.end method
.method static synthetic access$900(Lim/tpelyyftgw/ui/ContentPreviewViewer;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 54
iget-boolean v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->animateY:Z
return v0
.end method
.method static synthetic access$902(Lim/tpelyyftgw/ui/ContentPreviewViewer;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/ContentPreviewViewer;
.param p1, "x1" # Z
.line 54
iput-boolean p1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->animateY:Z
return p1
.end method
.method public static getInstance()Lim/tpelyyftgw/ui/ContentPreviewViewer;
.registers 3
.line 294
sget-object v0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->Instance:Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 295
.local v0, "localInstance":Lim/tpelyyftgw/ui/ContentPreviewViewer;
if-nez v0, :cond_19
.line 296
const-class v1, Lim/tpelyyftgw/ui/PhotoViewer;
monitor-enter v1
.line 297
:try_start_7
sget-object v2, Lim/tpelyyftgw/ui/ContentPreviewViewer;->Instance:Lim/tpelyyftgw/ui/ContentPreviewViewer;
move-object v0, v2
.line 298
if-nez v0, :cond_14
.line 299
new-instance v2, Lim/tpelyyftgw/ui/ContentPreviewViewer;
invoke-direct {v2}, Lim/tpelyyftgw/ui/ContentPreviewViewer;-><init>()V
move-object v0, v2
sput-object v2, Lim/tpelyyftgw/ui/ContentPreviewViewer;->Instance:Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 301
:cond_14
monitor-exit v1
goto :goto_19
:catchall_16
move-exception v2
monitor-exit v1
:try_end_18
.catchall {:try_start_7 .. :try_end_18} :catchall_16
throw v2
.line 303
:cond_19
:goto_19
return-object v0
.end method
.method public static hasInstance()Z
.registers 1
.line 307
sget-object v0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->Instance:Lim/tpelyyftgw/ui/ContentPreviewViewer;
if-eqz v0, :cond_6
const/4 v0, 0x1
goto :goto_7
:cond_6
const/4 v0, 0x0
:goto_7
return v0
.end method
.method static synthetic lambda$onTouch$0(Lim/tpelyyftgw/ui/components/RecyclerListView;Ljava/lang/Object;)V
.registers 3
.param p0, "listView" # Lim/tpelyyftgw/ui/components/RecyclerListView;
.param p1, "listener" # Ljava/lang/Object;
.line 332
instance-of v0, p0, Lim/tpelyyftgw/ui/components/RecyclerListView;
if-eqz v0, :cond_a
.line 333
move-object v0, p1
check-cast v0, Lim/tpelyyftgw/ui/components/RecyclerListView$OnItemClickListener;
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/components/RecyclerListView;->setOnItemClickListener(Lim/tpelyyftgw/ui/components/RecyclerListView$OnItemClickListener;)V
.line 335
:cond_a
return-void
.end method
.method private onDraw(Landroid/graphics/Canvas;)V
.registers 14
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 763
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
if-eqz v0, :cond_1d4
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->backgroundDrawable:Landroid/graphics/drawable/ColorDrawable;
if-nez v0, :cond_a
goto/16 :goto_1d4
.line 766
:cond_a
const/high16 v1, 0x43340000 # 180.0f
iget v2, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
mul-float v2, v2, v1
float-to-int v1, v2
invoke-virtual {v0, v1}, Landroid/graphics/drawable/ColorDrawable;->setAlpha(I)V
.line 767
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->backgroundDrawable:Landroid/graphics/drawable/ColorDrawable;
iget-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->getWidth()I
move-result v1
iget-object v2, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->getHeight()I
move-result v2
const/4 v3, 0x0
invoke-virtual {v0, v3, v3, v1, v2}, Landroid/graphics/drawable/ColorDrawable;->setBounds(IIII)V
.line 768
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->backgroundDrawable:Landroid/graphics/drawable/ColorDrawable;
invoke-virtual {v0, p1}, Landroid/graphics/drawable/ColorDrawable;->draw(Landroid/graphics/Canvas;)V
.line 770
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
.line 772
const/4 v0, 0x0
.line 774
.local v0, "insets":I
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x15
if-lt v1, v2, :cond_4c
iget-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastInsets:Landroid/view/WindowInsets;
if-eqz v1, :cond_4c
.line 775
invoke-virtual {v1}, Landroid/view/WindowInsets;->getStableInsetBottom()I
move-result v1
iget-object v2, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastInsets:Landroid/view/WindowInsets;
invoke-virtual {v2}, Landroid/view/WindowInsets;->getStableInsetTop()I
move-result v2
add-int v0, v1, v2
.line 776
iget-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastInsets:Landroid/view/WindowInsets;
invoke-virtual {v1}, Landroid/view/WindowInsets;->getStableInsetTop()I
move-result v1
.local v1, "top":I
goto :goto_4e
.line 778
.end local v1 # "top":I
:cond_4c
sget v1, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
.line 781
.restart local v1 # "top":I
:goto_4e
iget v2, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentContentType:I
const/high16 v4, 0x42200000 # 40.0f
const/4 v5, 0x1
if-ne v2, v5, :cond_6c
.line 782
iget-object v2, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->getWidth()I
move-result v2
iget-object v6, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v6}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->getHeight()I
move-result v6
sub-int/2addr v6, v0
invoke-static {v2, v6}, Ljava/lang/Math;->min(II)I
move-result v2
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v6
sub-int/2addr v2, v6
.local v2, "size":I
goto :goto_83
.line 784
.end local v2 # "size":I
:cond_6c
iget-object v2, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->getWidth()I
move-result v2
iget-object v6, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v6}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->getHeight()I
move-result v6
sub-int/2addr v6, v0
invoke-static {v2, v6}, Ljava/lang/Math;->min(II)I
move-result v2
int-to-float v2, v2
const v6, 0x3fe66666 # 1.8f
div-float/2addr v2, v6
float-to-int v2, v2
.line 787
.restart local v2 # "size":I
:goto_83
iget-object v6, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v6}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->getWidth()I
move-result v6
div-int/lit8 v6, v6, 0x2
int-to-float v6, v6
iget v7, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->moveY:F
div-int/lit8 v8, v2, 0x2
add-int/2addr v8, v1
iget-object v9, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->stickerEmojiLayout:Landroid/text/StaticLayout;
if-eqz v9, :cond_99
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
:cond_99
add-int/2addr v8, v3
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->getHeight()I
move-result v3
sub-int/2addr v3, v0
iget v4, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->keyboardHeight:I
sub-int/2addr v3, v4
div-int/lit8 v3, v3, 0x2
invoke-static {v8, v3}, Ljava/lang/Math;->max(II)I
move-result v3
int-to-float v3, v3
add-float/2addr v7, v3
invoke-virtual {p1, v6, v7}, Landroid/graphics/Canvas;->translate(FF)V
.line 788
iget v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
const v4, 0x3f4ccccd # 0.8f
mul-float v6, v3, v4
div-float/2addr v6, v4
.line 789
.local v6, "scale":F
int-to-float v4, v2
mul-float v4, v4, v6
float-to-int v2, v4
.line 790
iget-object v4, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v4, v3}, Lim/tpelyyftgw/messenger/ImageReceiver;->setAlpha(F)V
.line 791
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
neg-int v4, v2
div-int/lit8 v4, v4, 0x2
neg-int v7, v2
div-int/lit8 v7, v7, 0x2
invoke-virtual {v3, v4, v7, v2, v2}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImageCoords(IIII)V
.line 792
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v3, p1}, Lim/tpelyyftgw/messenger/ImageReceiver;->draw(Landroid/graphics/Canvas;)Z
.line 794
iget v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentContentType:I
const/high16 v4, 0x3f800000 # 1.0f
if-ne v3, v5, :cond_123
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->slideUpDrawable:Landroid/graphics/drawable/Drawable;
if-eqz v3, :cond_123
.line 795
invoke-virtual {v3}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
move-result v3
.line 796
.local v3, "w":I
iget-object v5, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->slideUpDrawable:Landroid/graphics/drawable/Drawable;
invoke-virtual {v5}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
move-result v5
.line 797
.local v5, "h":I
iget-object v7, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v7}, Lim/tpelyyftgw/messenger/ImageReceiver;->getDrawRegion()Landroid/graphics/RectF;
move-result-object v7
iget v7, v7, Landroid/graphics/RectF;->top:F
const/high16 v8, 0x41880000 # 17.0f
const/high16 v9, 0x40c00000 # 6.0f
iget v10, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveY:F
const/high16 v11, 0x42700000 # 60.0f
invoke-static {v11}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v11
int-to-float v11, v11
div-float/2addr v10, v11
mul-float v10, v10, v9
add-float/2addr v10, v8
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v8
int-to-float v8, v8
sub-float/2addr v7, v8
float-to-int v7, v7
.line 798
.local v7, "y":I
iget-object v8, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->slideUpDrawable:Landroid/graphics/drawable/Drawable;
const/high16 v9, 0x437f0000 # 255.0f
iget v10, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveYProgress:F
sub-float v10, v4, v10
mul-float v10, v10, v9
float-to-int v9, v10
invoke-virtual {v8, v9}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V
.line 799
iget-object v8, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->slideUpDrawable:Landroid/graphics/drawable/Drawable;
neg-int v9, v3
div-int/lit8 v9, v9, 0x2
neg-int v10, v5
add-int/2addr v10, v7
div-int/lit8 v11, v3, 0x2
invoke-virtual {v8, v9, v10, v11, v7}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
.line 800
iget-object v8, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->slideUpDrawable:Landroid/graphics/drawable/Drawable;
invoke-virtual {v8, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
.line 802
.end local v3 # "w":I
.end local v5 # "h":I
.end local v7 # "y":I
:cond_123
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->stickerEmojiLayout:Landroid/text/StaticLayout;
if-eqz v3, :cond_148
.line 803
const/high16 v3, 0x42480000 # 50.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
neg-int v3, v3
int-to-float v3, v3
iget-object v5, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v5}, Lim/tpelyyftgw/messenger/ImageReceiver;->getImageHeight()I
move-result v5
neg-int v5, v5
div-int/lit8 v5, v5, 0x2
const/high16 v7, 0x41f00000 # 30.0f
invoke-static {v7}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v7
sub-int/2addr v5, v7
int-to-float v5, v5
invoke-virtual {p1, v3, v5}, Landroid/graphics/Canvas;->translate(FF)V
.line 804
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->stickerEmojiLayout:Landroid/text/StaticLayout;
invoke-virtual {v3, p1}, Landroid/text/StaticLayout;->draw(Landroid/graphics/Canvas;)V
.line 806
:cond_148
invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V
.line 807
iget-boolean v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->isVisible:Z
const/high16 v5, 0x42f00000 # 120.0f
if-eqz v3, :cond_176
.line 808
iget v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
cmpl-float v3, v3, v4
if-eqz v3, :cond_1d3
.line 809
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v7
.line 810
.local v7, "newTime":J
iget-wide v9, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastUpdateTime:J
sub-long v9, v7, v9
.line 811
.local v9, "dt":J
iput-wide v7, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastUpdateTime:J
.line 812
iget v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
long-to-float v11, v9
div-float/2addr v11, v5
add-float/2addr v3, v11
iput v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
.line 813
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->invalidate()V
.line 814
iget v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
cmpl-float v3, v3, v4
if-lez v3, :cond_175
.line 815
iput v4, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
.line 817
.end local v7 # "newTime":J
.end local v9 # "dt":J
:cond_175
goto :goto_1d3
.line 818
:cond_176
iget v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
const/4 v4, 0x0
cmpl-float v3, v3, v4
if-eqz v3, :cond_1d3
.line 819
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v7
.line 820
.restart local v7 # "newTime":J
iget-wide v9, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastUpdateTime:J
sub-long v9, v7, v9
.line 821
.restart local v9 # "dt":J
iput-wide v7, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastUpdateTime:J
.line 822
iget v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
long-to-float v11, v9
div-float/2addr v11, v5
sub-float/2addr v3, v11
iput v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
.line 823
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->invalidate()V
.line 824
iget v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
cmpg-float v3, v3, v4
if-gez v3, :cond_19b
.line 825
iput v4, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
.line 827
:cond_19b
iget v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
cmpl-float v3, v3, v4
if-nez v3, :cond_1d3
.line 828
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
const/4 v4, 0x0
check-cast v4, Landroid/graphics/drawable/Drawable;
invoke-virtual {v3, v4}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImageBitmap(Landroid/graphics/drawable/Drawable;)V
.line 829
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentActivity:Landroid/app/Activity;
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->unlockOrientation(Landroid/app/Activity;)V
.line 830
new-instance v3, Lim/tpelyyftgw/ui/-$$Lambda$ContentPreviewViewer$DgQJ6Nd9b2fD840oL3r-us7aeUI;
invoke-direct {v3, p0}, Lim/tpelyyftgw/ui/-$$Lambda$ContentPreviewViewer$DgQJ6Nd9b2fD840oL3r-us7aeUI;-><init>(Lim/tpelyyftgw/ui/ContentPreviewViewer;)V
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->runOnUIThread(Ljava/lang/Runnable;)V
.line 832
:try_start_1b6
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
invoke-virtual {v3}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;
move-result-object v3
if-eqz v3, :cond_1ce
.line 833
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentActivity:Landroid/app/Activity;
const-string/jumbo v4, "window"
invoke-virtual {v3, v4}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/view/WindowManager;
.line 834
.local v3, "wm":Landroid/view/WindowManager;
iget-object v4, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
invoke-interface {v3, v4}, Landroid/view/WindowManager;->removeView(Landroid/view/View;)V
:try_end_1ce
.catch Ljava/lang/Exception; {:try_start_1b6 .. :try_end_1ce} :catch_1cf
.line 838
.end local v3 # "wm":Landroid/view/WindowManager;
:cond_1ce
goto :goto_1d3
.line 836
:catch_1cf
move-exception v3
.line 837
.local v3, "e":Ljava/lang/Exception;
invoke-static {v3}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 841
.end local v3 # "e":Ljava/lang/Exception;
.end local v7 # "newTime":J
.end local v9 # "dt":J
:cond_1d3
:goto_1d3
return-void
.line 764
.end local v0 # "insets":I
.end local v1 # "top":I
.end local v2 # "size":I
.end local v6 # "scale":F
:cond_1d4
:goto_1d4
return-void
.end method
.method private rubberYPoisition(FF)F
.registers 7
.param p1, "offset" # F
.param p2, "factor" # F
.line 757
invoke-static {p1}, Ljava/lang/Math;->abs(F)F
move-result v0
.line 758
.local v0, "delta":F
const v1, 0x3f0ccccd # 0.55f
mul-float v1, v1, v0
div-float/2addr v1, p2
const/high16 v2, 0x3f800000 # 1.0f
add-float/2addr v1, v2
div-float v1, v2, v1
sub-float v1, v2, v1
mul-float v1, v1, p2
neg-float v1, v1
const/4 v3, 0x0
cmpg-float v3, p1, v3
if-gez v3, :cond_1a
goto :goto_1c
:cond_1a
const/high16 v2, -0x40800000 # -1.0f
:goto_1c
mul-float v1, v1, v2
return v1
.end method
# virtual methods
.method public close()V
.registers 6
.line 705
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentActivity:Landroid/app/Activity;
if-eqz v0, :cond_4b
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
if-eqz v0, :cond_9
goto :goto_4b
.line 708
:cond_9
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showSheetRunnable:Ljava/lang/Runnable;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->cancelRunOnUIThread(Ljava/lang/Runnable;)V
.line 709
const/high16 v0, 0x3f800000 # 1.0f
iput v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
.line 710
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastUpdateTime:J
.line 711
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->invalidate()V
.line 713
const/4 v0, 0x0
:try_start_1e
iget-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
if-eqz v1, :cond_29
.line 714
iget-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/BottomSheet;->dismiss()V
.line 715
iput-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
:try_end_29
.catch Ljava/lang/Exception; {:try_start_1e .. :try_end_29} :catch_2a
.line 719
:cond_29
goto :goto_2e
.line 717
:catch_2a
move-exception v1
.line 718
.local v1, "e":Ljava/lang/Exception;
invoke-static {v1}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 720
.end local v1 # "e":Ljava/lang/Exception;
:goto_2e
iput-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentDocument:Lim/tpelyyftgw/tgnet/TLRPC$Document;
.line 721
iput-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentStickerSet:Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;
.line 722
iput-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->delegate:Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;
.line 723
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->isVisible:Z
.line 724
invoke-static {}, Lim/tpelyyftgw/messenger/NotificationCenter;->getGlobalInstance()Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v1
sget v2, Lim/tpelyyftgw/messenger/NotificationCenter;->startAllHeavyOperations:I
const/4 v3, 0x1
new-array v3, v3, [Ljava/lang/Object;
const/4 v4, 0x4
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
aput-object v4, v3, v0
invoke-virtual {v1, v2, v3}, Lim/tpelyyftgw/messenger/NotificationCenter;->postNotificationName(I[Ljava/lang/Object;)V
.line 725
return-void
.line 706
:cond_4b
:goto_4b
return-void
.end method
.method public destroy()V
.registers 6
.line 728
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->isVisible:Z
.line 729
const/4 v1, 0x0
iput-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->delegate:Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;
.line 730
iput-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentDocument:Lim/tpelyyftgw/tgnet/TLRPC$Document;
.line 731
iput-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentStickerSet:Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;
.line 733
:try_start_a
iget-object v2, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
if-eqz v2, :cond_15
.line 734
iget-object v2, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/actionbar/BottomSheet;->dismiss()V
.line 735
iput-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
:try_end_15
.catch Ljava/lang/Exception; {:try_start_a .. :try_end_15} :catch_16
.line 739
:cond_15
goto :goto_1a
.line 737
:catch_16
move-exception v2
.line 738
.local v2, "e":Ljava/lang/Exception;
invoke-static {v2}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 740
.end local v2 # "e":Ljava/lang/Exception;
:goto_1a
iget-object v2, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentActivity:Landroid/app/Activity;
if-eqz v2, :cond_56
iget-object v2, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
if-nez v2, :cond_23
goto :goto_56
.line 744
:cond_23
:try_start_23
invoke-virtual {v2}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;
move-result-object v2
if-eqz v2, :cond_39
.line 745
iget-object v2, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentActivity:Landroid/app/Activity;
const-string/jumbo v3, "window"
invoke-virtual {v2, v3}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroid/view/WindowManager;
.line 746
.local v2, "wm":Landroid/view/WindowManager;
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
invoke-interface {v2, v3}, Landroid/view/WindowManager;->removeViewImmediate(Landroid/view/View;)V
.line 748
.end local v2 # "wm":Landroid/view/WindowManager;
:cond_39
iput-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
:try_end_3b
.catch Ljava/lang/Exception; {:try_start_23 .. :try_end_3b} :catch_3c
.line 751
goto :goto_40
.line 749
:catch_3c
move-exception v2
.line 750
.local v2, "e":Ljava/lang/Exception;
invoke-static {v2}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 752
.end local v2 # "e":Ljava/lang/Exception;
:goto_40
sput-object v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->Instance:Lim/tpelyyftgw/ui/ContentPreviewViewer;
.line 753
invoke-static {}, Lim/tpelyyftgw/messenger/NotificationCenter;->getGlobalInstance()Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v1
sget v2, Lim/tpelyyftgw/messenger/NotificationCenter;->startAllHeavyOperations:I
const/4 v3, 0x1
new-array v3, v3, [Ljava/lang/Object;
const/4 v4, 0x4
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
aput-object v4, v3, v0
invoke-virtual {v1, v2, v3}, Lim/tpelyyftgw/messenger/NotificationCenter;->postNotificationName(I[Ljava/lang/Object;)V
.line 754
return-void
.line 741
:cond_56
:goto_56
return-void
.end method
.method public isVisible()Z
.registers 2
.line 701
iget-boolean v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->isVisible:Z
return v0
.end method
.method public synthetic lambda$onDraw$4$ContentPreviewViewer()V
.registers 3
.line 830
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
const/4 v1, 0x0
check-cast v1, Landroid/graphics/Bitmap;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImageBitmap(Landroid/graphics/Bitmap;)V
return-void
.end method
.method public synthetic lambda$onInterceptTouchEvent$1$ContentPreviewViewer(Lim/tpelyyftgw/ui/components/RecyclerListView;II)V
.registers 12
.param p1, "listView" # Lim/tpelyyftgw/ui/components/RecyclerListView;
.param p2, "height" # I
.param p3, "contentTypeFinal" # I
.line 517
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
if-nez v0, :cond_5
.line 518
return-void
.line 520
:cond_5
const/4 v0, 0x0
move-object v1, v0
check-cast v1, Lim/tpelyyftgw/ui/components/RecyclerListView$OnItemClickListener;
invoke-virtual {p1, v1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->setOnItemClickListener(Lim/tpelyyftgw/ui/components/RecyclerListView$OnItemClickListener;)V
.line 521
const/4 v1, 0x1
invoke-virtual {p1, v1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->requestDisallowInterceptTouchEvent(Z)V
.line 522
iput-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
.line 523
invoke-virtual {p1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getContext()Landroid/content/Context;
move-result-object v0
check-cast v0, Landroid/app/Activity;
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->setParentActivity(Landroid/app/Activity;)V
.line 524
invoke-virtual {p0, p2}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->setKeyboardHeight(I)V
.line 525
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->clearsInputField:Z
.line 526
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentPreviewCell:Landroid/view/View;
instance-of v2, v0, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
if-eqz v2, :cond_3f
.line 527
check-cast v0, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
.line 528
.local v0, "stickerEmojiCell":Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;->getSticker()Lim/tpelyyftgw/tgnet/TLRPC$Document;
move-result-object v3
const/4 v4, 0x0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;->isRecent()Z
move-result v6
invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;->getParentObject()Ljava/lang/Object;
move-result-object v7
move-object v2, p0
move v5, p3
invoke-virtual/range {v2 .. v7}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->open(Lim/tpelyyftgw/tgnet/TLRPC$Document;Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;IZLjava/lang/Object;)V
.line 529
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;->setScaled(Z)V
.line 530
.end local v0 # "stickerEmojiCell":Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
goto :goto_7a
:cond_3f
instance-of v2, v0, Lim/tpelyyftgw/ui/cells/StickerCell;
if-eqz v2, :cond_5e
.line 531
check-cast v0, Lim/tpelyyftgw/ui/cells/StickerCell;
.line 532
.local v0, "stickerCell":Lim/tpelyyftgw/ui/cells/StickerCell;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/StickerCell;->getSticker()Lim/tpelyyftgw/tgnet/TLRPC$Document;
move-result-object v3
const/4 v4, 0x0
const/4 v6, 0x0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/StickerCell;->getParentObject()Ljava/lang/Object;
move-result-object v7
move-object v2, p0
move v5, p3
invoke-virtual/range {v2 .. v7}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->open(Lim/tpelyyftgw/tgnet/TLRPC$Document;Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;IZLjava/lang/Object;)V
.line 533
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/cells/StickerCell;->setScaled(Z)V
.line 534
invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/StickerCell;->isClearsInputField()Z
move-result v1
iput-boolean v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->clearsInputField:Z
.end local v0 # "stickerCell":Lim/tpelyyftgw/ui/cells/StickerCell;
goto :goto_79
.line 535
:cond_5e
instance-of v2, v0, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
if-eqz v2, :cond_79
.line 536
check-cast v0, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
.line 537
.local v0, "contextLinkCell":Lim/tpelyyftgw/ui/cells/ContextLinkCell;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->getDocument()Lim/tpelyyftgw/tgnet/TLRPC$Document;
move-result-object v3
invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->getBotInlineResult()Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;
move-result-object v4
const/4 v6, 0x0
const/4 v7, 0x0
move-object v2, p0
move v5, p3
invoke-virtual/range {v2 .. v7}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->open(Lim/tpelyyftgw/tgnet/TLRPC$Document;Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;IZLjava/lang/Object;)V
.line 538
if-eq p3, v1, :cond_7a
.line 539
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->setScaled(Z)V
goto :goto_7a
.line 535
.end local v0 # "contextLinkCell":Lim/tpelyyftgw/ui/cells/ContextLinkCell;
:cond_79
:goto_79
nop
.line 542
:cond_7a
:goto_7a
return-void
.end method
.method public synthetic lambda$setParentActivity$2$ContentPreviewViewer(Landroid/view/View;Landroid/view/WindowInsets;)Landroid/view/WindowInsets;
.registers 3
.param p1, "v" # Landroid/view/View;
.param p2, "insets" # Landroid/view/WindowInsets;
.line 571
iput-object p2, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastInsets:Landroid/view/WindowInsets;
.line 572
return-object p2
.end method
.method public synthetic lambda$setParentActivity$3$ContentPreviewViewer(Landroid/view/View;Landroid/view/MotionEvent;)Z
.registers 6
.param p1, "v" # Landroid/view/View;
.param p2, "event" # Landroid/view/MotionEvent;
.line 580
invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I
move-result v0
const/4 v1, 0x1
if-eq v0, v1, :cond_15
invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I
move-result v0
const/4 v2, 0x6
if-eq v0, v2, :cond_15
invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I
move-result v0
const/4 v2, 0x3
if-ne v0, v2, :cond_18
.line 581
:cond_15
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->close()V
.line 583
:cond_18
return v1
.end method
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;Lim/tpelyyftgw/ui/components/RecyclerListView;ILim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;)Z
.registers 22
.param p1, "event" # Landroid/view/MotionEvent;
.param p2, "listView" # Lim/tpelyyftgw/ui/components/RecyclerListView;
.param p3, "height" # I
.param p4, "contentPreviewViewerDelegate" # Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;
.line 466
move-object/from16 v0, p0
move-object/from16 v1, p2
move-object/from16 v2, p4
iput-object v2, v0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->delegate:Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;
.line 467
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I
move-result v3
const/4 v4, 0x0
if-nez v3, :cond_c7
.line 468
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getX()F
move-result v3
float-to-int v3, v3
.line 469
.local v3, "x":I
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getY()F
move-result v5
float-to-int v5, v5
.line 470
.local v5, "y":I
invoke-virtual/range {p2 .. p2}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getChildCount()I
move-result v6
.line 471
.local v6, "count":I
const/4 v7, 0x0
.local v7, "a":I
:goto_1e
if-ge v7, v6, :cond_c4
.line 472
const/4 v8, 0x0
.line 473
.local v8, "view":Landroid/view/View;
instance-of v9, v1, Lim/tpelyyftgw/ui/components/RecyclerListView;
if-eqz v9, :cond_29
.line 474
invoke-virtual {v1, v7}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getChildAt(I)Landroid/view/View;
move-result-object v8
.line 476
:cond_29
if-nez v8, :cond_2c
.line 477
return v4
.line 479
:cond_2c
invoke-virtual {v8}, Landroid/view/View;->getTop()I
move-result v9
.line 480
.local v9, "top":I
invoke-virtual {v8}, Landroid/view/View;->getBottom()I
move-result v10
.line 481
.local v10, "bottom":I
invoke-virtual {v8}, Landroid/view/View;->getLeft()I
move-result v11
.line 482
.local v11, "left":I
invoke-virtual {v8}, Landroid/view/View;->getRight()I
move-result v12
.line 483
.local v12, "right":I
if-gt v9, v5, :cond_b9
if-lt v10, v5, :cond_b9
if-gt v11, v3, :cond_b9
if-ge v12, v3, :cond_48
.line 484
move/from16 v15, p3
goto/16 :goto_bb
.line 486
:cond_48
const/4 v13, -0x1
.line 487
.local v13, "contentType":I
instance-of v14, v8, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
if-eqz v14, :cond_5d
.line 488
move-object v14, v8
check-cast v14, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
invoke-virtual {v14}, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;->showingBitmap()Z
move-result v14
if-eqz v14, :cond_9d
.line 489
const/4 v13, 0x0
.line 490
iget-object v14, v0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v14, v4}, Lim/tpelyyftgw/messenger/ImageReceiver;->setRoundRadius(I)V
goto :goto_9d
.line 492
:cond_5d
instance-of v14, v8, Lim/tpelyyftgw/ui/cells/StickerCell;
if-eqz v14, :cond_71
.line 493
move-object v14, v8
check-cast v14, Lim/tpelyyftgw/ui/cells/StickerCell;
invoke-virtual {v14}, Lim/tpelyyftgw/ui/cells/StickerCell;->showingBitmap()Z
move-result v14
if-eqz v14, :cond_9d
.line 494
const/4 v13, 0x0
.line 495
iget-object v14, v0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v14, v4}, Lim/tpelyyftgw/messenger/ImageReceiver;->setRoundRadius(I)V
goto :goto_9d
.line 497
:cond_71
instance-of v14, v8, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
if-eqz v14, :cond_9d
.line 498
move-object v14, v8
check-cast v14, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
.line 499
.local v14, "cell":Lim/tpelyyftgw/ui/cells/ContextLinkCell;
invoke-virtual {v14}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->showingBitmap()Z
move-result v15
if-eqz v15, :cond_9d
.line 500
invoke-virtual {v14}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->isSticker()Z
move-result v15
if-eqz v15, :cond_8b
.line 501
const/4 v13, 0x0
.line 502
iget-object v15, v0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v15, v4}, Lim/tpelyyftgw/messenger/ImageReceiver;->setRoundRadius(I)V
goto :goto_9d
.line 503
:cond_8b
invoke-virtual {v14}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->isGif()Z
move-result v15
if-eqz v15, :cond_9d
.line 504
const/4 v13, 0x1
.line 505
iget-object v15, v0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
const/high16 v16, 0x40c00000 # 6.0f
invoke-static/range {v16 .. v16}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
invoke-virtual {v15, v4}, Lim/tpelyyftgw/messenger/ImageReceiver;->setRoundRadius(I)V
.line 509
.end local v14 # "cell":Lim/tpelyyftgw/ui/cells/ContextLinkCell;
:cond_9d
:goto_9d
const/4 v4, -0x1
if-ne v13, v4, :cond_a2
.line 510
const/4 v4, 0x0
return v4
.line 512
:cond_a2
iput v3, v0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->startX:I
.line 513
iput v5, v0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->startY:I
.line 514
iput-object v8, v0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentPreviewCell:Landroid/view/View;
.line 515
move v4, v13
.line 516
.local v4, "contentTypeFinal":I
new-instance v14, Lim/tpelyyftgw/ui/-$$Lambda$ContentPreviewViewer$gx2K0wTUNLW0scRQVpn_qXNB68I;
move/from16 v15, p3
invoke-direct {v14, v0, v1, v15, v4}, Lim/tpelyyftgw/ui/-$$Lambda$ContentPreviewViewer$gx2K0wTUNLW0scRQVpn_qXNB68I;-><init>(Lim/tpelyyftgw/ui/ContentPreviewViewer;Lim/tpelyyftgw/ui/components/RecyclerListView;II)V
iput-object v14, v0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
.line 543
const-wide/16 v0, 0xc8
invoke-static {v14, v0, v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->runOnUIThread(Ljava/lang/Runnable;J)V
.line 544
const/4 v0, 0x1
return v0
.line 483
.end local v4 # "contentTypeFinal":I
.end local v13 # "contentType":I
:cond_b9
move/from16 v15, p3
.line 471
.end local v8 # "view":Landroid/view/View;
.end local v9 # "top":I
.end local v10 # "bottom":I
.end local v11 # "left":I
.end local v12 # "right":I
:goto_bb
add-int/lit8 v7, v7, 0x1
const/4 v4, 0x0
move-object/from16 v0, p0
move-object/from16 v1, p2
goto/16 :goto_1e
:cond_c4
move/from16 v15, p3
goto :goto_c9
.line 467
.end local v3 # "x":I
.end local v5 # "y":I
.end local v6 # "count":I
.end local v7 # "a":I
:cond_c7
move/from16 v15, p3
.line 547
:goto_c9
const/4 v0, 0x0
return v0
.end method
.method public onTouch(Landroid/view/MotionEvent;Lim/tpelyyftgw/ui/components/RecyclerListView;ILjava/lang/Object;Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;)Z
.registers 28
.param p1, "event" # Landroid/view/MotionEvent;
.param p2, "listView" # Lim/tpelyyftgw/ui/components/RecyclerListView;
.param p3, "height" # I
.param p4, "listener" # Ljava/lang/Object;
.param p5, "contentPreviewViewerDelegate" # Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;
.line 328
move-object/from16 v6, p0
move-object/from16 v7, p2
move-object/from16 v8, p5
iput-object v8, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->delegate:Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;
.line 329
iget-object v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
const/4 v1, 0x0
if-nez v0, :cond_18
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->isVisible()Z
move-result v0
if-eqz v0, :cond_14
goto :goto_18
:cond_14
move-object/from16 v1, p4
goto/16 :goto_28b
.line 330
:cond_18
:goto_18
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I
move-result v0
const/4 v2, 0x0
const/4 v9, 0x1
if-eq v0, v9, :cond_247
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I
move-result v0
const/4 v3, 0x3
if-eq v0, v3, :cond_247
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I
move-result v0
const/4 v3, 0x6
if-ne v0, v3, :cond_30
goto/16 :goto_247
.line 352
:cond_30
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I
move-result v0
if-eqz v0, :cond_244
.line 353
iget-boolean v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->isVisible:Z
const/4 v3, 0x2
if-eqz v0, :cond_1ff
.line 354
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I
move-result v0
if-ne v0, v3, :cond_1fd
.line 355
iget v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentContentType:I
if-ne v0, v9, :cond_be
.line 356
iget-object v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
if-nez v0, :cond_bd
iget v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
const/high16 v1, 0x3f800000 # 1.0f
cmpl-float v0, v0, v1
if-nez v0, :cond_bd
.line 357
iget v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastTouchY:F
const v1, -0x39e3c000 # -10000.0f
const/4 v2, 0x0
cmpl-float v0, v0, v1
if-nez v0, :cond_66
.line 358
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getY()F
move-result v0
iput v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastTouchY:F
.line 359
iput v2, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveY:F
.line 360
iput v2, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->moveY:F
goto :goto_bd
.line 362
:cond_66
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getY()F
move-result v0
.line 363
.local v0, "newY":F
iget v1, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveY:F
iget v3, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastTouchY:F
sub-float v3, v0, v3
add-float/2addr v1, v3
iput v1, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveY:F
.line 364
iput v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastTouchY:F
.line 365
cmpl-float v3, v1, v2
if-lez v3, :cond_7c
.line 366
iput v2, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveY:F
goto :goto_90
.line 367
:cond_7c
const/high16 v2, 0x42700000 # 60.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
neg-int v3, v3
int-to-float v3, v3
cmpg-float v1, v1, v3
if-gez v1, :cond_90
.line 368
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
neg-int v1, v1
int-to-float v1, v1
iput v1, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveY:F
.line 370
:cond_90
:goto_90
iget v1, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveY:F
const/high16 v2, 0x43480000 # 200.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
int-to-float v2, v2
invoke-direct {v6, v1, v2}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->rubberYPoisition(FF)F
move-result v1
iput v1, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->moveY:F
.line 371
iget-object v1, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->invalidate()V
.line 372
iget v1, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveY:F
const/high16 v2, 0x425c0000 # 55.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
neg-int v2, v2
int-to-float v2, v2
cmpg-float v1, v1, v2
if-gtz v1, :cond_bd
.line 373
iget-object v1, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showSheetRunnable:Ljava/lang/Runnable;
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->cancelRunOnUIThread(Ljava/lang/Runnable;)V
.line 374
iget-object v1, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showSheetRunnable:Ljava/lang/Runnable;
invoke-interface {v1}, Ljava/lang/Runnable;->run()V
.line 375
return v9
.line 379
.end local v0 # "newY":F
:cond_bd
:goto_bd
return v9
.line 381
:cond_be
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getX()F
move-result v0
float-to-int v10, v0
.line 382
.local v10, "x":I
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getY()F
move-result v0
float-to-int v11, v0
.line 383
.local v11, "y":I
invoke-virtual/range {p2 .. p2}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getChildCount()I
move-result v12
.line 384
.local v12, "count":I
const/4 v0, 0x0
move v13, v0
.local v13, "a":I
:goto_ce
if-ge v13, v12, :cond_1fd
.line 385
const/4 v0, 0x0
.line 386
.local v0, "view":Landroid/view/View;
instance-of v2, v7, Lim/tpelyyftgw/ui/components/RecyclerListView;
if-eqz v2, :cond_db
.line 387
invoke-virtual {v7, v13}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getChildAt(I)Landroid/view/View;
move-result-object v0
move-object v14, v0
goto :goto_dc
.line 386
:cond_db
move-object v14, v0
.line 389
.end local v0 # "view":Landroid/view/View;
.local v14, "view":Landroid/view/View;
:goto_dc
if-nez v14, :cond_df
.line 390
return v1
.line 392
:cond_df
invoke-virtual {v14}, Landroid/view/View;->getTop()I
move-result v15
.line 393
.local v15, "top":I
invoke-virtual {v14}, Landroid/view/View;->getBottom()I
move-result v5
.line 394
.local v5, "bottom":I
invoke-virtual {v14}, Landroid/view/View;->getLeft()I
move-result v4
.line 395
.local v4, "left":I
invoke-virtual {v14}, Landroid/view/View;->getRight()I
move-result v3
.line 396
.local v3, "right":I
if-gt v15, v11, :cond_1ef
if-lt v5, v11, :cond_1ef
if-gt v4, v10, :cond_1ef
if-ge v3, v10, :cond_f9
.line 397
goto/16 :goto_1f5
.line 399
:cond_f9
const/4 v0, -0x1
.line 400
.local v0, "contentType":I
instance-of v2, v14, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
if-eqz v2, :cond_106
.line 401
const/4 v0, 0x0
.line 402
iget-object v2, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v2, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setRoundRadius(I)V
move v9, v0
goto :goto_13c
.line 403
:cond_106
instance-of v2, v14, Lim/tpelyyftgw/ui/cells/StickerCell;
if-eqz v2, :cond_112
.line 404
const/4 v0, 0x0
.line 405
iget-object v2, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v2, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setRoundRadius(I)V
move v9, v0
goto :goto_13c
.line 406
:cond_112
instance-of v2, v14, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
if-eqz v2, :cond_13b
.line 407
move-object v2, v14
check-cast v2, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
.line 408
.local v2, "cell":Lim/tpelyyftgw/ui/cells/ContextLinkCell;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->isSticker()Z
move-result v16
if-eqz v16, :cond_127
.line 409
const/4 v0, 0x0
.line 410
iget-object v9, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v9, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setRoundRadius(I)V
move v9, v0
goto :goto_13c
.line 411
:cond_127
invoke-virtual {v2}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->isGif()Z
move-result v9
if-eqz v9, :cond_13b
.line 412
const/4 v0, 0x1
.line 413
iget-object v9, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
const/high16 v17, 0x40c00000 # 6.0f
invoke-static/range {v17 .. v17}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
invoke-virtual {v9, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setRoundRadius(I)V
move v9, v0
goto :goto_13c
.line 416
.end local v2 # "cell":Lim/tpelyyftgw/ui/cells/ContextLinkCell;
:cond_13b
move v9, v0
.end local v0 # "contentType":I
.local v9, "contentType":I
:goto_13c
const/4 v0, -0x1
if-eq v9, v0, :cond_1e8
iget-object v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentPreviewCell:Landroid/view/View;
if-ne v14, v0, :cond_145
.line 417
goto/16 :goto_1fd
.line 419
:cond_145
instance-of v1, v0, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
if-eqz v1, :cond_150
.line 420
check-cast v0, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;->setScaled(Z)V
goto :goto_164
.line 421
:cond_150
const/4 v1, 0x0
instance-of v2, v0, Lim/tpelyyftgw/ui/cells/StickerCell;
if-eqz v2, :cond_15b
.line 422
check-cast v0, Lim/tpelyyftgw/ui/cells/StickerCell;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/cells/StickerCell;->setScaled(Z)V
goto :goto_164
.line 423
:cond_15b
instance-of v2, v0, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
if-eqz v2, :cond_164
.line 424
check-cast v0, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->setScaled(Z)V
.line 426
:cond_164
:goto_164
iput-object v14, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentPreviewCell:Landroid/view/View;
.line 427
move/from16 v2, p3
invoke-virtual {v6, v2}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->setKeyboardHeight(I)V
.line 428
iput-boolean v1, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->clearsInputField:Z
.line 429
iget-object v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentPreviewCell:Landroid/view/View;
instance-of v1, v0, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
if-eqz v1, :cond_19f
.line 430
move-object v1, v0
check-cast v1, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
.line 431
.local v1, "stickerEmojiCell":Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;->getSticker()Lim/tpelyyftgw/tgnet/TLRPC$Document;
move-result-object v17
const/16 v18, 0x0
invoke-virtual {v1}, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;->isRecent()Z
move-result v19
invoke-virtual {v1}, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;->getParentObject()Ljava/lang/Object;
move-result-object v20
move-object/from16 v0, p0
move-object v8, v1
.end local v1 # "stickerEmojiCell":Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
.local v8, "stickerEmojiCell":Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
move-object/from16 v1, v17
move-object/from16 v2, v18
move/from16 v17, v3
.end local v3 # "right":I
.local v17, "right":I
move v3, v9
move/from16 v21, v4
.end local v4 # "left":I
.local v21, "left":I
move/from16 v4, v19
move/from16 v19, v5
.end local v5 # "bottom":I
.local v19, "bottom":I
move-object/from16 v5, v20
invoke-virtual/range {v0 .. v5}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->open(Lim/tpelyyftgw/tgnet/TLRPC$Document;Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;IZLjava/lang/Object;)V
.line 432
const/4 v0, 0x1
invoke-virtual {v8, v0}, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;->setScaled(Z)V
.line 433
.end local v8 # "stickerEmojiCell":Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
const/4 v0, 0x1
goto :goto_1e7
.end local v17 # "right":I
.end local v19 # "bottom":I
.end local v21 # "left":I
.restart local v3 # "right":I
.restart local v4 # "left":I
.restart local v5 # "bottom":I
:cond_19f
move/from16 v17, v3
move/from16 v21, v4
move/from16 v19, v5
.end local v3 # "right":I
.end local v4 # "left":I
.end local v5 # "bottom":I
.restart local v17 # "right":I
.restart local v19 # "bottom":I
.restart local v21 # "left":I
instance-of v1, v0, Lim/tpelyyftgw/ui/cells/StickerCell;
if-eqz v1, :cond_1c8
.line 434
move-object v8, v0
check-cast v8, Lim/tpelyyftgw/ui/cells/StickerCell;
.line 435
.local v8, "stickerCell":Lim/tpelyyftgw/ui/cells/StickerCell;
invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/StickerCell;->getSticker()Lim/tpelyyftgw/tgnet/TLRPC$Document;
move-result-object v1
const/4 v2, 0x0
const/4 v4, 0x0
invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/StickerCell;->getParentObject()Ljava/lang/Object;
move-result-object v5
move-object/from16 v0, p0
move v3, v9
invoke-virtual/range {v0 .. v5}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->open(Lim/tpelyyftgw/tgnet/TLRPC$Document;Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;IZLjava/lang/Object;)V
.line 436
const/4 v0, 0x1
invoke-virtual {v8, v0}, Lim/tpelyyftgw/ui/cells/StickerCell;->setScaled(Z)V
.line 437
invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/StickerCell;->isClearsInputField()Z
move-result v0
iput-boolean v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->clearsInputField:Z
.line 438
.end local v8 # "stickerCell":Lim/tpelyyftgw/ui/cells/StickerCell;
const/4 v0, 0x1
goto :goto_1e7
:cond_1c8
instance-of v1, v0, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
if-eqz v1, :cond_1e6
.line 439
move-object v8, v0
check-cast v8, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
.line 440
.local v8, "contextLinkCell":Lim/tpelyyftgw/ui/cells/ContextLinkCell;
invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->getDocument()Lim/tpelyyftgw/tgnet/TLRPC$Document;
move-result-object v1
invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->getBotInlineResult()Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;
move-result-object v2
const/4 v4, 0x0
const/4 v5, 0x0
move-object/from16 v0, p0
move v3, v9
invoke-virtual/range {v0 .. v5}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->open(Lim/tpelyyftgw/tgnet/TLRPC$Document;Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;IZLjava/lang/Object;)V
.line 441
const/4 v0, 0x1
if-eq v9, v0, :cond_1e7
.line 442
invoke-virtual {v8, v0}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->setScaled(Z)V
goto :goto_1e7
.line 438
.end local v8 # "contextLinkCell":Lim/tpelyyftgw/ui/cells/ContextLinkCell;
:cond_1e6
const/4 v0, 0x1
.line 445
:cond_1e7
:goto_1e7
return v0
.line 416
.end local v17 # "right":I
.end local v19 # "bottom":I
.end local v21 # "left":I
.restart local v3 # "right":I
.restart local v4 # "left":I
.restart local v5 # "bottom":I
:cond_1e8
move/from16 v17, v3
move/from16 v21, v4
move/from16 v19, v5
.end local v3 # "right":I
.end local v4 # "left":I
.end local v5 # "bottom":I
.restart local v17 # "right":I
.restart local v19 # "bottom":I
.restart local v21 # "left":I
goto :goto_1fd
.line 396
.end local v9 # "contentType":I
.end local v17 # "right":I
.end local v19 # "bottom":I
.end local v21 # "left":I
.restart local v3 # "right":I
.restart local v4 # "left":I
.restart local v5 # "bottom":I
:cond_1ef
move/from16 v17, v3
move/from16 v21, v4
move/from16 v19, v5
.line 384
.end local v3 # "right":I
.end local v4 # "left":I
.end local v5 # "bottom":I
.end local v14 # "view":Landroid/view/View;
.end local v15 # "top":I
:goto_1f5
add-int/lit8 v13, v13, 0x1
move-object/from16 v8, p5
const/4 v1, 0x0
const/4 v9, 0x1
goto/16 :goto_ce
.line 448
.end local v10 # "x":I
.end local v11 # "y":I
.end local v12 # "count":I
.end local v13 # "a":I
:cond_1fd
:goto_1fd
const/4 v0, 0x1
return v0
.line 449
:cond_1ff
iget-object v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
if-eqz v0, :cond_241
.line 450
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I
move-result v0
if-ne v0, v3, :cond_237
.line 451
iget v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->startX:I
int-to-float v0, v0
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getX()F
move-result v1
sub-float/2addr v0, v1
float-to-double v0, v0
iget v3, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->startY:I
int-to-float v3, v3
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getY()F
move-result v4
sub-float/2addr v3, v4
float-to-double v3, v3
invoke-static {v0, v1, v3, v4}, Ljava/lang/Math;->hypot(DD)D
move-result-wide v0
const/high16 v3, 0x41200000 # 10.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
int-to-double v3, v3
cmpl-double v5, v0, v3
if-lez v5, :cond_234
.line 452
iget-object v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->cancelRunOnUIThread(Ljava/lang/Runnable;)V
.line 453
iput-object v2, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
move-object/from16 v1, p4
goto :goto_28b
.line 451
:cond_234
move-object/from16 v1, p4
goto :goto_28b
.line 456
:cond_237
iget-object v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->cancelRunOnUIThread(Ljava/lang/Runnable;)V
.line 457
iput-object v2, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
move-object/from16 v1, p4
goto :goto_28b
.line 449
:cond_241
move-object/from16 v1, p4
goto :goto_28b
.line 352
:cond_244
move-object/from16 v1, p4
goto :goto_28b
.line 331
:cond_247
:goto_247
new-instance v0, Lim/tpelyyftgw/ui/-$$Lambda$ContentPreviewViewer$T38QjRhLKzSglrHXQD38-WWnBx0;
move-object/from16 v1, p4
invoke-direct {v0, v7, v1}, Lim/tpelyyftgw/ui/-$$Lambda$ContentPreviewViewer$T38QjRhLKzSglrHXQD38-WWnBx0;-><init>(Lim/tpelyyftgw/ui/components/RecyclerListView;Ljava/lang/Object;)V
const-wide/16 v3, 0x96
invoke-static {v0, v3, v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->runOnUIThread(Ljava/lang/Runnable;J)V
.line 336
iget-object v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
if-eqz v0, :cond_25d
.line 337
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->cancelRunOnUIThread(Ljava/lang/Runnable;)V
.line 338
iput-object v2, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
goto :goto_28b
.line 339
:cond_25d
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->isVisible()Z
move-result v0
if-eqz v0, :cond_28b
.line 340
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->close()V
.line 341
iget-object v0, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentPreviewCell:Landroid/view/View;
if-eqz v0, :cond_28b
.line 342
instance-of v3, v0, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
if-eqz v3, :cond_275
.line 343
check-cast v0, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
const/4 v3, 0x0
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;->setScaled(Z)V
goto :goto_289
.line 344
:cond_275
const/4 v3, 0x0
instance-of v4, v0, Lim/tpelyyftgw/ui/cells/StickerCell;
if-eqz v4, :cond_280
.line 345
check-cast v0, Lim/tpelyyftgw/ui/cells/StickerCell;
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/cells/StickerCell;->setScaled(Z)V
goto :goto_289
.line 346
:cond_280
instance-of v4, v0, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
if-eqz v4, :cond_289
.line 347
check-cast v0, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->setScaled(Z)V
.line 349
:cond_289
:goto_289
iput-object v2, v6, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentPreviewCell:Landroid/view/View;
.line 462
:cond_28b
:goto_28b
const/4 v0, 0x0
return v0
.end method
.method public open(Lim/tpelyyftgw/tgnet/TLRPC$Document;Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;IZLjava/lang/Object;)V
.registers 29
.param p1, "document" # Lim/tpelyyftgw/tgnet/TLRPC$Document;
.param p2, "botInlineResult" # Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;
.param p3, "contentType" # I
.param p4, "isRecent" # Z
.param p5, "parent" # Ljava/lang/Object;
.line 607
move-object/from16 v1, p0
move-object/from16 v2, p1
move-object/from16 v3, p2
move/from16 v4, p3
const-string/jumbo v5, "window"
iget-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentActivity:Landroid/app/Activity;
if-eqz v0, :cond_1d2
iget-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
if-nez v0, :cond_17
move-object/from16 v11, p5
goto/16 :goto_1d4
.line 610
:cond_17
const/4 v0, 0x0
iput-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->stickerEmojiLayout:Landroid/text/StaticLayout;
.line 611
const/4 v6, 0x0
const/16 v7, 0x5a
const/4 v8, 0x1
if-nez v4, :cond_ed
.line 612
if-nez v2, :cond_23
.line 613
return-void
.line 615
:cond_23
sget-object v9, Lim/tpelyyftgw/ui/ContentPreviewViewer;->textPaint:Landroid/text/TextPaint;
const/high16 v10, 0x41c00000 # 24.0f
if-nez v9, :cond_38
.line 616
new-instance v9, Landroid/text/TextPaint;
invoke-direct {v9, v8}, Landroid/text/TextPaint;-><init>(I)V
sput-object v9, Lim/tpelyyftgw/ui/ContentPreviewViewer;->textPaint:Landroid/text/TextPaint;
.line 617
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v11
int-to-float v11, v11
invoke-virtual {v9, v11}, Landroid/text/TextPaint;->setTextSize(F)V
.line 620
:cond_38
const/4 v9, 0x0
.line 621
.local v9, "newSet":Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;
const/4 v11, 0x0
.local v11, "a":I
:goto_3a
iget-object v12, v2, Lim/tpelyyftgw/tgnet/TLRPC$Document;->attributes:Ljava/util/ArrayList;
invoke-virtual {v12}, Ljava/util/ArrayList;->size()I
move-result v12
if-ge v11, v12, :cond_58
.line 622
iget-object v12, v2, Lim/tpelyyftgw/tgnet/TLRPC$Document;->attributes:Ljava/util/ArrayList;
invoke-virtual {v12, v11}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v12
check-cast v12, Lim/tpelyyftgw/tgnet/TLRPC$DocumentAttribute;
.line 623
.local v12, "attribute":Lim/tpelyyftgw/tgnet/TLRPC$DocumentAttribute;
instance-of v13, v12, Lim/tpelyyftgw/tgnet/TLRPC$TL_documentAttributeSticker;
if-eqz v13, :cond_55
iget-object v13, v12, Lim/tpelyyftgw/tgnet/TLRPC$DocumentAttribute;->stickerset:Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;
if-eqz v13, :cond_55
.line 624
iget-object v9, v12, Lim/tpelyyftgw/tgnet/TLRPC$DocumentAttribute;->stickerset:Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;
.line 625
goto :goto_58
.line 621
.end local v12 # "attribute":Lim/tpelyyftgw/tgnet/TLRPC$DocumentAttribute;
:cond_55
add-int/lit8 v11, v11, 0x1
goto :goto_3a
.line 628
.end local v11 # "a":I
:cond_58
:goto_58
if-eqz v9, :cond_7b
.line 630
:try_start_5a
iget-object v11, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
if-eqz v11, :cond_6a
.line 631
iget-object v11, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
invoke-virtual {v11, v0}, Lim/tpelyyftgw/ui/actionbar/BottomSheet;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
.line 632
iget-object v11, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
invoke-virtual {v11}, Lim/tpelyyftgw/ui/actionbar/BottomSheet;->dismiss()V
.line 633
iput-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->visibleDialog:Lim/tpelyyftgw/ui/actionbar/BottomSheet;
:try_end_6a
.catch Ljava/lang/Exception; {:try_start_5a .. :try_end_6a} :catch_6b
.line 637
:cond_6a
goto :goto_6f
.line 635
:catch_6b
move-exception v0
.line 636
.local v0, "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 638
.end local v0 # "e":Ljava/lang/Exception;
:goto_6f
iget-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showSheetRunnable:Ljava/lang/Runnable;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->cancelRunOnUIThread(Ljava/lang/Runnable;)V
.line 639
iget-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showSheetRunnable:Ljava/lang/Runnable;
const-wide/16 v11, 0x514
invoke-static {v0, v11, v12}, Lim/tpelyyftgw/messenger/AndroidUtilities;->runOnUIThread(Ljava/lang/Runnable;J)V
.line 641
:cond_7b
iput-object v9, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentStickerSet:Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;
.line 642
move-object/from16 v11, p5
iput-object v11, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentObject:Ljava/lang/Object;
.line 643
iget-object v0, v2, Lim/tpelyyftgw/tgnet/TLRPC$Document;->thumbs:Ljava/util/ArrayList;
invoke-static {v0, v7}, Lim/tpelyyftgw/messenger/FileLoader;->getClosestPhotoSizeWithSize(Ljava/util/ArrayList;I)Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
move-result-object v0
.line 644
.local v0, "thumb":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
iget-object v12, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-static/range {p1 .. p1}, Lim/tpelyyftgw/messenger/ImageLocation;->getForDocument(Lim/tpelyyftgw/tgnet/TLRPC$Document;)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v13
const/4 v14, 0x0
invoke-static {v0, v2}, Lim/tpelyyftgw/messenger/ImageLocation;->getForDocument(Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;Lim/tpelyyftgw/tgnet/TLRPC$Document;)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v15
const/16 v16, 0x0
iget-object v7, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentStickerSet:Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;
const/16 v19, 0x1
const-string/jumbo v17, "webp"
move-object/from16 v18, v7
invoke-virtual/range {v12 .. v19}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;I)V
.line 645
const/4 v7, 0x0
.local v7, "a":I
:goto_a1
iget-object v12, v2, Lim/tpelyyftgw/tgnet/TLRPC$Document;->attributes:Ljava/util/ArrayList;
invoke-virtual {v12}, Ljava/util/ArrayList;->size()I
move-result v12
if-ge v7, v12, :cond_eb
.line 646
iget-object v12, v2, Lim/tpelyyftgw/tgnet/TLRPC$Document;->attributes:Ljava/util/ArrayList;
invoke-virtual {v12, v7}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v12
check-cast v12, Lim/tpelyyftgw/tgnet/TLRPC$DocumentAttribute;
.line 647
.restart local v12 # "attribute":Lim/tpelyyftgw/tgnet/TLRPC$DocumentAttribute;
instance-of v13, v12, Lim/tpelyyftgw/tgnet/TLRPC$TL_documentAttributeSticker;
if-eqz v13, :cond_e8
.line 648
iget-object v13, v12, Lim/tpelyyftgw/tgnet/TLRPC$DocumentAttribute;->alt:Ljava/lang/String;
invoke-static {v13}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v13
if-nez v13, :cond_e8
.line 649
iget-object v13, v12, Lim/tpelyyftgw/tgnet/TLRPC$DocumentAttribute;->alt:Ljava/lang/String;
sget-object v14, Lim/tpelyyftgw/ui/ContentPreviewViewer;->textPaint:Landroid/text/TextPaint;
invoke-virtual {v14}, Landroid/text/TextPaint;->getFontMetricsInt()Landroid/graphics/Paint$FontMetricsInt;
move-result-object v14
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v10
invoke-static {v13, v14, v10, v6}, Lim/tpelyyftgw/messenger/Emoji;->replaceEmoji(Ljava/lang/CharSequence;Landroid/graphics/Paint$FontMetricsInt;IZ)Ljava/lang/CharSequence;
move-result-object v10
.line 650
.local v10, "emoji":Ljava/lang/CharSequence;
new-instance v13, Landroid/text/StaticLayout;
sget-object v17, Lim/tpelyyftgw/ui/ContentPreviewViewer;->textPaint:Landroid/text/TextPaint;
const/high16 v14, 0x42c80000 # 100.0f
invoke-static {v14}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v18
sget-object v19, Landroid/text/Layout$Alignment;->ALIGN_CENTER:Landroid/text/Layout$Alignment;
const/high16 v20, 0x3f800000 # 1.0f
const/16 v21, 0x0
const/16 v22, 0x0
move-object v15, v13
move-object/from16 v16, v10
invoke-direct/range {v15 .. v22}, Landroid/text/StaticLayout;-><init>(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V
iput-object v13, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->stickerEmojiLayout:Landroid/text/StaticLayout;
.line 651
goto :goto_eb
.line 645
.end local v10 # "emoji":Ljava/lang/CharSequence;
.end local v12 # "attribute":Lim/tpelyyftgw/tgnet/TLRPC$DocumentAttribute;
:cond_e8
add-int/lit8 v7, v7, 0x1
goto :goto_a1
.line 655
.end local v0 # "thumb":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
.end local v7 # "a":I
.end local v9 # "newSet":Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;
:cond_eb
:goto_eb
goto/16 :goto_169
.line 656
:cond_ed
move-object/from16 v11, p5
const-string v0, "gif"
if-eqz v2, :cond_121
.line 657
iget-object v9, v2, Lim/tpelyyftgw/tgnet/TLRPC$Document;->thumbs:Ljava/util/ArrayList;
invoke-static {v9, v7}, Lim/tpelyyftgw/messenger/FileLoader;->getClosestPhotoSizeWithSize(Ljava/util/ArrayList;I)Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
move-result-object v7
.line 658
.local v7, "thumb":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
iget-object v12, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-static/range {p1 .. p1}, Lim/tpelyyftgw/messenger/ImageLocation;->getForDocument(Lim/tpelyyftgw/tgnet/TLRPC$Document;)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v13
const/4 v14, 0x0
invoke-static {v7, v2}, Lim/tpelyyftgw/messenger/ImageLocation;->getForDocument(Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;Lim/tpelyyftgw/tgnet/TLRPC$Document;)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v15
iget v9, v2, Lim/tpelyyftgw/tgnet/TLRPC$Document;->size:I
const/16 v18, 0x0
new-instance v10, Ljava/lang/StringBuilder;
invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v19
const/16 v20, 0x0
const-string v16, "90_90_b"
move/from16 v17, v9
invoke-virtual/range {v12 .. v20}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Object;I)V
.line 659
.end local v7 # "thumb":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
goto :goto_15d
:cond_121
if-eqz v3, :cond_1d1
.line 660
iget-object v7, v3, Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;->content:Lim/tpelyyftgw/tgnet/TLRPC$WebDocument;
if-nez v7, :cond_128
.line 661
return-void
.line 663
:cond_128
iget-object v12, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
iget-object v7, v3, Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;->content:Lim/tpelyyftgw/tgnet/TLRPC$WebDocument;
invoke-static {v7}, Lim/tpelyyftgw/messenger/WebFile;->createWithWebDocument(Lim/tpelyyftgw/tgnet/TLRPC$WebDocument;)Lim/tpelyyftgw/messenger/WebFile;
move-result-object v7
invoke-static {v7}, Lim/tpelyyftgw/messenger/ImageLocation;->getForWebFile(Lim/tpelyyftgw/messenger/WebFile;)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v13
const/4 v14, 0x0
iget-object v7, v3, Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;->thumb:Lim/tpelyyftgw/tgnet/TLRPC$WebDocument;
invoke-static {v7}, Lim/tpelyyftgw/messenger/WebFile;->createWithWebDocument(Lim/tpelyyftgw/tgnet/TLRPC$WebDocument;)Lim/tpelyyftgw/messenger/WebFile;
move-result-object v7
invoke-static {v7}, Lim/tpelyyftgw/messenger/ImageLocation;->getForWebFile(Lim/tpelyyftgw/messenger/WebFile;)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v15
iget-object v7, v3, Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;->content:Lim/tpelyyftgw/tgnet/TLRPC$WebDocument;
iget v7, v7, Lim/tpelyyftgw/tgnet/TLRPC$WebDocument;->size:I
const/16 v18, 0x0
new-instance v9, Ljava/lang/StringBuilder;
invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v9, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v19
const/16 v20, 0x1
const-string v16, "90_90_b"
move/from16 v17, v7
invoke-virtual/range {v12 .. v20}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Object;I)V
.line 667
:goto_15d
iget-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showSheetRunnable:Ljava/lang/Runnable;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->cancelRunOnUIThread(Ljava/lang/Runnable;)V
.line 668
iget-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showSheetRunnable:Ljava/lang/Runnable;
const-wide/16 v9, 0x7d0
invoke-static {v0, v9, v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->runOnUIThread(Ljava/lang/Runnable;J)V
.line 671
:goto_169
iput v4, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentContentType:I
.line 672
iput-object v2, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentDocument:Lim/tpelyyftgw/tgnet/TLRPC$Document;
.line 673
iput-object v3, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->inlineResult:Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;
.line 674
iget-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->invalidate()V
.line 676
iget-boolean v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->isVisible:Z
if-nez v0, :cond_1d0
.line 677
iget-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentActivity:Landroid/app/Activity;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->lockOrientation(Landroid/app/Activity;)V
.line 679
:try_start_17d
iget-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;
move-result-object v0
if-eqz v0, :cond_192
.line 680
iget-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentActivity:Landroid/app/Activity;
invoke-virtual {v0, v5}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/WindowManager;
.line 681
.local v0, "wm":Landroid/view/WindowManager;
iget-object v7, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
invoke-interface {v0, v7}, Landroid/view/WindowManager;->removeView(Landroid/view/View;)V
:try_end_192
.catch Ljava/lang/Exception; {:try_start_17d .. :try_end_192} :catch_193
.line 685
.end local v0 # "wm":Landroid/view/WindowManager;
:cond_192
goto :goto_197
.line 683
:catch_193
move-exception v0
.line 684
.local v0, "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 686
.end local v0 # "e":Ljava/lang/Exception;
:goto_197
iget-object v0, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentActivity:Landroid/app/Activity;
invoke-virtual {v0, v5}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/WindowManager;
.line 687
.local v0, "wm":Landroid/view/WindowManager;
iget-object v5, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
iget-object v7, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-interface {v0, v5, v7}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 688
iput-boolean v8, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->isVisible:Z
.line 689
const/4 v5, 0x0
iput v5, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->showProgress:F
.line 690
const v7, -0x39e3c000 # -10000.0f
iput v7, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastTouchY:F
.line 691
iput v5, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveYProgress:F
.line 692
iput v5, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->finalMoveY:F
.line 693
iput v5, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentMoveY:F
.line 694
iput v5, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->moveY:F
.line 695
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v9
iput-wide v9, v1, Lim/tpelyyftgw/ui/ContentPreviewViewer;->lastUpdateTime:J
.line 696
invoke-static {}, Lim/tpelyyftgw/messenger/NotificationCenter;->getGlobalInstance()Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v5
sget v7, Lim/tpelyyftgw/messenger/NotificationCenter;->stopAllHeavyOperations:I
new-array v8, v8, [Ljava/lang/Object;
const/4 v9, 0x4
invoke-static {v9}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v9
aput-object v9, v8, v6
invoke-virtual {v5, v7, v8}, Lim/tpelyyftgw/messenger/NotificationCenter;->postNotificationName(I[Ljava/lang/Object;)V
.line 698
.end local v0 # "wm":Landroid/view/WindowManager;
:cond_1d0
return-void
.line 665
:cond_1d1
return-void
.line 607
:cond_1d2
move-object/from16 v11, p5
.line 608
:goto_1d4
return-void
.end method
.method public reset()V
.registers 5
.line 311
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
const/4 v1, 0x0
if-eqz v0, :cond_a
.line 312
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->cancelRunOnUIThread(Ljava/lang/Runnable;)V
.line 313
iput-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->openPreviewRunnable:Ljava/lang/Runnable;
.line 315
:cond_a
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentPreviewCell:Landroid/view/View;
if-eqz v0, :cond_2e
.line 316
instance-of v2, v0, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
const/4 v3, 0x0
if-eqz v2, :cond_19
.line 317
check-cast v0, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/cells/StickerEmojiCell;->setScaled(Z)V
goto :goto_2c
.line 318
:cond_19
instance-of v2, v0, Lim/tpelyyftgw/ui/cells/StickerCell;
if-eqz v2, :cond_23
.line 319
check-cast v0, Lim/tpelyyftgw/ui/cells/StickerCell;
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/cells/StickerCell;->setScaled(Z)V
goto :goto_2c
.line 320
:cond_23
instance-of v2, v0, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
if-eqz v2, :cond_2c
.line 321
check-cast v0, Lim/tpelyyftgw/ui/cells/ContextLinkCell;
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->setScaled(Z)V
.line 323
:cond_2c
:goto_2c
iput-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentPreviewCell:Landroid/view/View;
.line 325
:cond_2e
return-void
.end method
.method public setDelegate(Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;)V
.registers 2
.param p1, "contentPreviewViewerDelegate" # Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;
.line 551
iput-object p1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->delegate:Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;
.line 552
return-void
.end method
.method public setKeyboardHeight(I)V
.registers 2
.param p1, "height" # I
.line 603
iput p1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->keyboardHeight:I
.line 604
return-void
.end method
.method public setParentActivity(Landroid/app/Activity;)V
.registers 8
.param p1, "activity" # Landroid/app/Activity;
.line 555
sget v0, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I
iput v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->currentAccount:I
.line 556
iget-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v1, v0}, Lim/tpelyyftgw/messenger/ImageReceiver;->setCurrentAccount(I)V
.line 557
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
const/4 v1, 0x7
invoke-virtual {v0, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setLayerNum(I)V
.line 558
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentActivity:Landroid/app/Activity;
if-ne v0, p1, :cond_14
.line 559
return-void
.line 561
:cond_14
iput-object p1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->parentActivity:Landroid/app/Activity;
.line 563
invoke-virtual {p1}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f08178c
invoke-static {v1}, Lnp/NPFog;->d(I)I
move-result v1
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v0
iput-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->slideUpDrawable:Landroid/graphics/drawable/Drawable;
.line 565
new-instance v0, Landroid/widget/FrameLayout;
invoke-direct {v0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
.line 566
const/4 v1, 0x1
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setFocusable(Z)V
.line 567
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setFocusableInTouchMode(Z)V
.line 568
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x15
if-lt v0, v2, :cond_4c
.line 569
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setFitsSystemWindows(Z)V
.line 570
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
new-instance v3, Lim/tpelyyftgw/ui/-$$Lambda$ContentPreviewViewer$HkH9fgYP57tNaYtMHczm_fGdJCw;
invoke-direct {v3, p0}, Lim/tpelyyftgw/ui/-$$Lambda$ContentPreviewViewer$HkH9fgYP57tNaYtMHczm_fGdJCw;-><init>(Lim/tpelyyftgw/ui/ContentPreviewViewer;)V
invoke-virtual {v0, v3}, Landroid/widget/FrameLayout;->setOnApplyWindowInsetsListener(Landroid/view/View$OnApplyWindowInsetsListener;)V
.line 576
:cond_4c
new-instance v0, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-direct {v0, p0, p1}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;-><init>(Lim/tpelyyftgw/ui/ContentPreviewViewer;Landroid/content/Context;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
.line 577
const/4 v3, 0x0
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->setFocusable(Z)V
.line 578
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowView:Landroid/widget/FrameLayout;
iget-object v3, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
const/16 v4, 0x33
const/4 v5, -0x1
invoke-static {v5, v5, v4}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v4
invoke-virtual {v0, v3, v4}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 579
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
new-instance v3, Lim/tpelyyftgw/ui/-$$Lambda$ContentPreviewViewer$stTJEM86fI7Atgdd5D4YGMTS8p4;
invoke-direct {v3, p0}, Lim/tpelyyftgw/ui/-$$Lambda$ContentPreviewViewer$stTJEM86fI7Atgdd5D4YGMTS8p4;-><init>(Lim/tpelyyftgw/ui/ContentPreviewViewer;)V
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
.line 586
new-instance v0, Landroid/view/WindowManager$LayoutParams;
invoke-direct {v0}, Landroid/view/WindowManager$LayoutParams;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
.line 587
iput v5, v0, Landroid/view/WindowManager$LayoutParams;->height:I
.line 588
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
const/4 v3, -0x3
iput v3, v0, Landroid/view/WindowManager$LayoutParams;->format:I
.line 589
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
iput v5, v0, Landroid/view/WindowManager$LayoutParams;->width:I
.line 590
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
const/16 v3, 0x30
iput v3, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I
.line 591
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
const/16 v3, 0x63
iput v3, v0, Landroid/view/WindowManager$LayoutParams;->type:I
.line 592
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v0, v2, :cond_99
.line 593
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
const v2, -0x7ffefef8
iput v2, v0, Landroid/view/WindowManager$LayoutParams;->flags:I
goto :goto_9f
.line 595
:cond_99
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
const/16 v2, 0x8
iput v2, v0, Landroid/view/WindowManager$LayoutParams;->flags:I
.line 597
:goto_9f
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setAspectFit(Z)V
.line 598
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setInvalidateAll(Z)V
.line 599
iget-object v0, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
iget-object v1, p0, Lim/tpelyyftgw/ui/ContentPreviewViewer;->containerView:Lim/tpelyyftgw/ui/ContentPreviewViewer$FrameLayoutDrawer;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setParentView(Landroid/view/View;)V
.line 600
return-void
.end method