SecretMediaViewer.smali
.class public Lim/tpelyyftgw/ui/SecretMediaViewer;
.super Ljava/lang/Object;
.source "SecretMediaViewer.java"
# interfaces
.implements Lim/tpelyyftgw/messenger/NotificationCenter$NotificationCenterDelegate;
.implements Landroid/view/GestureDetector$OnGestureListener;
.implements Landroid/view/GestureDetector$OnDoubleTapListener;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;,
Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;,
Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
}
.end annotation
# static fields
.field private static volatile Instance:Lim/tpelyyftgw/ui/SecretMediaViewer;
# instance fields
.field private actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
.field private animateToClipBottom:F
.field private animateToClipHorizontal:F
.field private animateToClipTop:F
.field private animateToScale:F
.field private animateToX:F
.field private animateToY:F
.field private animationStartTime:J
.field private animationValue:F
.field private aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
.field private blackPaint:Landroid/graphics/Paint;
.field private canDragDown:Z
.field private centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
.field private clipBottom:F
.field private clipHorizontal:F
.field private clipTop:F
.field private closeTime:J
.field private closeVideoAfterWatch:Z
.field private containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
.field private coords:[I
.field private currentAccount:I
.field private currentActionBarAnimation:Landroid/animation/AnimatorSet;
.field private currentChannelId:I
.field private currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
.field private currentProvider:Lim/tpelyyftgw/ui/PhotoViewer$PhotoViewerProvider;
.field private currentRotation:I
.field private currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
.field private disableShowCheck:Z
.field private discardTap:Z
.field private doubleTap:Z
.field private dragY:F
.field private draggingDown:Z
.field private gestureDetector:Landroid/view/GestureDetector;
.field private imageMoveAnimation:Landroid/animation/AnimatorSet;
.field private interpolator:Landroid/view/animation/DecelerateInterpolator;
.field private invalidCoords:Z
.field private isActionBarVisible:Z
.field private isPhotoVisible:Z
.field private isPlaying:Z
.field private isVideo:Z
.field private isVisible:Z
.field private lastInsets:Ljava/lang/Object;
.field private maxX:F
.field private maxY:F
.field private minX:F
.field private minY:F
.field private moveStartX:F
.field private moveStartY:F
.field private moving:Z
.field private openTime:J
.field private parentActivity:Landroid/app/Activity;
.field private photoAnimationEndRunnable:Ljava/lang/Runnable;
.field private photoAnimationInProgress:I
.field private photoBackgroundDrawable:Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
.field private photoTransitionAnimationStartTime:J
.field private pinchCenterX:F
.field private pinchCenterY:F
.field private pinchStartDistance:F
.field private pinchStartScale:F
.field private pinchStartX:F
.field private pinchStartY:F
.field private playerRetryPlayCount:I
.field private scale:F
.field private scroller:Lim/tpelyyftgw/ui/components/Scroller;
.field private secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
.field private textureUploaded:Z
.field private translationX:F
.field private translationY:F
.field private useOvershootForScale:Z
.field private velocityTracker:Landroid/view/VelocityTracker;
.field private videoCrossfadeAlpha:F
.field private videoCrossfadeAlphaLastTime:J
.field private videoCrossfadeStarted:Z
.field private videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;
.field private videoTextureView:Landroid/view/TextureView;
.field private videoWatchedOneTime:Z
.field private windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
.field private windowView:Landroid/widget/FrameLayout;
.field private zoomAnimation:Z
.field private zooming:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 385
const/4 v0, 0x0
sput-object v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->Instance:Lim/tpelyyftgw/ui/SecretMediaViewer;
return-void
.end method
.method public constructor <init>()V
.registers 5
.line 62
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 298
new-instance v0, Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-direct {v0}, Lim/tpelyyftgw/messenger/ImageReceiver;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
.line 328
const/4 v0, 0x2
new-array v0, v0, [I
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->coords:[I
.line 332
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isActionBarVisible:Z
.line 334
new-instance v1, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
const/high16 v2, -0x1000000
invoke-direct {v1, p0, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;I)V
iput-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoBackgroundDrawable:Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
.line 335
new-instance v1, Landroid/graphics/Paint;
invoke-direct {v1}, Landroid/graphics/Paint;-><init>()V
iput-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->blackPaint:Landroid/graphics/Paint;
.line 348
const/high16 v1, 0x3f800000 # 1.0f
iput v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
.line 361
new-instance v2, Landroid/view/animation/DecelerateInterpolator;
const/high16 v3, 0x3fc00000 # 1.5f
invoke-direct {v2, v3}, Landroid/view/animation/DecelerateInterpolator;-><init>(F)V
iput-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->interpolator:Landroid/view/animation/DecelerateInterpolator;
.line 363
iput v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartScale:F
.line 378
iput-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->canDragDown:Z
return-void
.end method
.method static synthetic access$000(Lim/tpelyyftgw/ui/SecretMediaViewer;Landroid/view/MotionEvent;)Z
.registers 3
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # Landroid/view/MotionEvent;
.line 62
invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->processTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
return v0
.end method
.method static synthetic access$100(Lim/tpelyyftgw/ui/SecretMediaViewer;Landroid/graphics/Canvas;)V
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # Landroid/graphics/Canvas;
.line 62
invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->onDraw(Landroid/graphics/Canvas;)V
return-void
.end method
.method static synthetic access$1002(Lim/tpelyyftgw/ui/SecretMediaViewer;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # Z
.line 62
iput-boolean p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoWatchedOneTime:Z
return p1
.end method
.method static synthetic access$1100(Lim/tpelyyftgw/ui/SecretMediaViewer;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->closeVideoAfterWatch:Z
return v0
.end method
.method static synthetic access$1200(Lim/tpelyyftgw/ui/SecretMediaViewer;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->playerRetryPlayCount:I
return v0
.end method
.method static synthetic access$1210(Lim/tpelyyftgw/ui/SecretMediaViewer;)I
.registers 3
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->playerRetryPlayCount:I
add-int/lit8 v1, v0, -0x1
iput v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->playerRetryPlayCount:I
return v0
.end method
.method static synthetic access$1300(Lim/tpelyyftgw/ui/SecretMediaViewer;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->textureUploaded:Z
return v0
.end method
.method static synthetic access$1302(Lim/tpelyyftgw/ui/SecretMediaViewer;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # Z
.line 62
iput-boolean p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->textureUploaded:Z
return p1
.end method
.method static synthetic access$1400(Lim/tpelyyftgw/ui/SecretMediaViewer;)Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
return-object v0
.end method
.method static synthetic access$1500(Lim/tpelyyftgw/ui/SecretMediaViewer;Ljava/io/File;)V
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # Ljava/io/File;
.line 62
invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->preparePlayer(Ljava/io/File;)V
return-void
.end method
.method static synthetic access$1600(Lim/tpelyyftgw/ui/SecretMediaViewer;)Ljava/lang/Object;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->lastInsets:Ljava/lang/Object;
return-object v0
.end method
.method static synthetic access$1700(Lim/tpelyyftgw/ui/SecretMediaViewer;)Landroid/animation/AnimatorSet;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
return-object v0
.end method
.method static synthetic access$1702(Lim/tpelyyftgw/ui/SecretMediaViewer;Landroid/animation/AnimatorSet;)Landroid/animation/AnimatorSet;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # Landroid/animation/AnimatorSet;
.line 62
iput-object p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
return-object p1
.end method
.method static synthetic access$1800(Lim/tpelyyftgw/ui/SecretMediaViewer;)F
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
return v0
.end method
.method static synthetic access$1802(Lim/tpelyyftgw/ui/SecretMediaViewer;F)F
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # F
.line 62
iput p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
return p1
.end method
.method static synthetic access$1902(Lim/tpelyyftgw/ui/SecretMediaViewer;F)F
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # F
.line 62
iput p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
return p1
.end method
.method static synthetic access$200(Lim/tpelyyftgw/ui/SecretMediaViewer;)Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
return-object v0
.end method
.method static synthetic access$2002(Lim/tpelyyftgw/ui/SecretMediaViewer;F)F
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # F
.line 62
iput p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
return p1
.end method
.method static synthetic access$2100(Lim/tpelyyftgw/ui/SecretMediaViewer;F)V
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # F
.line 62
invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->updateMinMax(F)V
return-void
.end method
.method static synthetic access$2200(Lim/tpelyyftgw/ui/SecretMediaViewer;)Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
return-object v0
.end method
.method static synthetic access$2400(Lim/tpelyyftgw/ui/SecretMediaViewer;)Ljava/lang/Runnable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationEndRunnable:Ljava/lang/Runnable;
return-object v0
.end method
.method static synthetic access$2402(Lim/tpelyyftgw/ui/SecretMediaViewer;Ljava/lang/Runnable;)Ljava/lang/Runnable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # Ljava/lang/Runnable;
.line 62
iput-object p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationEndRunnable:Ljava/lang/Runnable;
return-object p1
.end method
.method static synthetic access$2700(Lim/tpelyyftgw/ui/SecretMediaViewer;)Landroid/animation/AnimatorSet;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentActionBarAnimation:Landroid/animation/AnimatorSet;
return-object v0
.end method
.method static synthetic access$2702(Lim/tpelyyftgw/ui/SecretMediaViewer;Landroid/animation/AnimatorSet;)Landroid/animation/AnimatorSet;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # Landroid/animation/AnimatorSet;
.line 62
iput-object p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentActionBarAnimation:Landroid/animation/AnimatorSet;
return-object p1
.end method
.method static synthetic access$2800(Lim/tpelyyftgw/ui/SecretMediaViewer;)Lim/tpelyyftgw/ui/actionbar/ActionBar;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
return-object v0
.end method
.method static synthetic access$2902(Lim/tpelyyftgw/ui/SecretMediaViewer;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # Z
.line 62
iput-boolean p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isVisible:Z
return p1
.end method
.method static synthetic access$400(Lim/tpelyyftgw/ui/SecretMediaViewer;)Lim/tpelyyftgw/messenger/MessageObject;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
return-object v0
.end method
.method static synthetic access$500(Lim/tpelyyftgw/ui/SecretMediaViewer;)Lim/tpelyyftgw/ui/components/VideoPlayer;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;
return-object v0
.end method
.method static synthetic access$600(Lim/tpelyyftgw/ui/SecretMediaViewer;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentAccount:I
return v0
.end method
.method static synthetic access$700(Lim/tpelyyftgw/ui/SecretMediaViewer;)Landroid/app/Activity;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
return-object v0
.end method
.method static synthetic access$800(Lim/tpelyyftgw/ui/SecretMediaViewer;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isPhotoVisible:Z
return v0
.end method
.method static synthetic access$900(Lim/tpelyyftgw/ui/SecretMediaViewer;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 62
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isPlaying:Z
return v0
.end method
.method static synthetic access$902(Lim/tpelyyftgw/ui/SecretMediaViewer;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer;
.param p1, "x1" # Z
.line 62
iput-boolean p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isPlaying:Z
return p1
.end method
.method private animateTo(FFFZ)V
.registers 11
.param p1, "newScale" # F
.param p2, "newTx" # F
.param p3, "newTy" # F
.param p4, "isZoom" # Z
.line 1559
const/16 v5, 0xfa
move-object v0, p0
move v1, p1
move v2, p2
move v3, p3
move v4, p4
invoke-direct/range {v0 .. v5}, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateTo(FFFZI)V
.line 1560
return-void
.end method
.method private animateTo(FFFZI)V
.registers 11
.param p1, "newScale" # F
.param p2, "newTx" # F
.param p3, "newTy" # F
.param p4, "isZoom" # Z
.param p5, "duration" # I
.line 1563
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
cmpl-float v0, v0, p1
if-nez v0, :cond_13
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
cmpl-float v0, v0, p2
if-nez v0, :cond_13
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
cmpl-float v0, v0, p3
if-nez v0, :cond_13
.line 1564
return-void
.line 1566
:cond_13
iput-boolean p4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->zoomAnimation:Z
.line 1567
iput p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToScale:F
.line 1568
iput p2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToX:F
.line 1569
iput p3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToY:F
.line 1570
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animationStartTime:J
.line 1571
new-instance v0, Landroid/animation/AnimatorSet;
invoke-direct {v0}, Landroid/animation/AnimatorSet;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
.line 1572
const/4 v1, 0x1
new-array v1, v1, [Landroid/animation/Animator;
const/4 v2, 0x0
const/4 v3, 0x2
new-array v3, v3, [F
fill-array-data v3, :array_5a
.line 1573
const-string v4, "animationValue"
invoke-static {p0, v4, v3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v3
aput-object v3, v1, v2
.line 1572
invoke-virtual {v0, v1}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
.line 1575
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->interpolator:Landroid/view/animation/DecelerateInterpolator;
invoke-virtual {v0, v1}, Landroid/animation/AnimatorSet;->setInterpolator(Landroid/animation/TimeInterpolator;)V
.line 1576
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
int-to-long v1, p5
invoke-virtual {v0, v1, v2}, Landroid/animation/AnimatorSet;->setDuration(J)Landroid/animation/AnimatorSet;
.line 1577
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
new-instance v1, Lim/tpelyyftgw/ui/SecretMediaViewer$9;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/SecretMediaViewer$9;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;)V
invoke-virtual {v0, v1}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 1584
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
invoke-virtual {v0}, Landroid/animation/AnimatorSet;->start()V
.line 1585
return-void
:array_5a
.array-data 4
0x0
0x3f800000 # 1.0f
.end array-data
.end method
.method private checkMinMax(Z)V
.registers 6
.param p1, "zoom" # Z
.line 1542
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
.line 1543
.local v0, "moveToX":F
iget v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
.line 1544
.local v1, "moveToY":F
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
invoke-direct {p0, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer;->updateMinMax(F)V
.line 1545
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
cmpg-float v3, v2, v3
if-gez v3, :cond_14
.line 1546
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
goto :goto_1c
.line 1547
:cond_14
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
cmpl-float v2, v2, v3
if-lez v2, :cond_1c
.line 1548
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
.line 1550
:cond_1c
:goto_1c
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
cmpg-float v3, v2, v3
if-gez v3, :cond_27
.line 1551
iget v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
goto :goto_2f
.line 1552
:cond_27
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
cmpl-float v2, v2, v3
if-lez v2, :cond_2f
.line 1553
iget v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
.line 1555
:cond_2f
:goto_2f
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
invoke-direct {p0, v2, v0, v1, p1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateTo(FFFZ)V
.line 1556
return-void
.end method
.method private checkPhotoAnimation()Z
.registers 7
.line 1143
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationInProgress:I
const/4 v1, 0x0
if-eqz v0, :cond_22
.line 1144
iget-wide v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoTransitionAnimationStartTime:J
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
sub-long/2addr v2, v4
invoke-static {v2, v3}, Ljava/lang/Math;->abs(J)J
move-result-wide v2
const-wide/16 v4, 0x1f4
cmp-long v0, v2, v4
if-ltz v0, :cond_22
.line 1145
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationEndRunnable:Ljava/lang/Runnable;
if-eqz v0, :cond_20
.line 1146
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
.line 1147
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationEndRunnable:Ljava/lang/Runnable;
.line 1149
:cond_20
iput v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationInProgress:I
.line 1152
:cond_22
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationInProgress:I
if-eqz v0, :cond_27
const/4 v1, 0x1
:cond_27
return v1
.end method
.method private getContainerViewHeight()I
.registers 2
.line 1369
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->getHeight()I
move-result v0
return v0
.end method
.method private getContainerViewWidth()I
.registers 2
.line 1365
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->getWidth()I
move-result v0
return v0
.end method
.method public static getInstance()Lim/tpelyyftgw/ui/SecretMediaViewer;
.registers 3
.line 387
sget-object v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->Instance:Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 388
.local v0, "localInstance":Lim/tpelyyftgw/ui/SecretMediaViewer;
if-nez v0, :cond_19
.line 389
const-class v1, Lim/tpelyyftgw/ui/PhotoViewer;
monitor-enter v1
.line 390
:try_start_7
sget-object v2, Lim/tpelyyftgw/ui/SecretMediaViewer;->Instance:Lim/tpelyyftgw/ui/SecretMediaViewer;
move-object v0, v2
.line 391
if-nez v0, :cond_14
.line 392
new-instance v2, Lim/tpelyyftgw/ui/SecretMediaViewer;
invoke-direct {v2}, Lim/tpelyyftgw/ui/SecretMediaViewer;-><init>()V
move-object v0, v2
sput-object v2, Lim/tpelyyftgw/ui/SecretMediaViewer;->Instance:Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 394
: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 396
:cond_19
:goto_19
return-object v0
.end method
.method public static hasInstance()Z
.registers 1
.line 400
sget-object v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->Instance:Lim/tpelyyftgw/ui/SecretMediaViewer;
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 private onDraw(Landroid/graphics/Canvas;)V
.registers 29
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 981
move-object/from16 v0, p0
move-object/from16 v1, p1
iget-boolean v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isPhotoVisible:Z
if-nez v2, :cond_9
.line 982
return-void
.line 991
:cond_9
const/high16 v2, -0x40800000 # -1.0f
.line 993
.local v2, "aty":F
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
const/4 v4, 0x0
const/4 v5, 0x0
const/high16 v6, 0x3f800000 # 1.0f
if-eqz v3, :cond_d2
.line 994
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/Scroller;->isFinished()Z
move-result v3
if-nez v3, :cond_20
.line 995
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/Scroller;->abortAnimation()V
.line 998
:cond_20
iget-boolean v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->useOvershootForScale:Z
if-eqz v3, :cond_80
.line 999
const v3, 0x3f828f5c # 1.02f
.line 1000
.local v3, "overshoot":F
const v7, 0x3f666666 # 0.9f
.line 1002
.local v7, "overshootTime":F
iget v8, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animationValue:F
const v9, 0x3f666666 # 0.9f
cmpg-float v10, v8, v9
if-gez v10, :cond_42
.line 1003
div-float/2addr v8, v9
.line 1004
.local v8, "av":F
iget v9, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
iget v10, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToScale:F
const v11, 0x3f828f5c # 1.02f
mul-float v10, v10, v11
sub-float/2addr v10, v9
mul-float v10, v10, v8
add-float/2addr v9, v10
.local v9, "currentScale":F
goto :goto_57
.line 1006
.end local v8 # "av":F
.end local v9 # "currentScale":F
:cond_42
const/high16 v10, 0x3f800000 # 1.0f
.line 1007
.local v10, "av":F
iget v11, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToScale:F
const v12, 0x3ca3d700 # 0.01999998f
mul-float v12, v12, v11
sub-float/2addr v8, v9
const v9, 0x3dccccd0 # 0.100000024f
div-float/2addr v8, v9
sub-float v8, v6, v8
mul-float v12, v12, v8
add-float v9, v11, v12
move v8, v10
.line 1009
.end local v10 # "av":F
.restart local v8 # "av":F
.restart local v9 # "currentScale":F
:goto_57
iget v10, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
iget v11, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToY:F
sub-float/2addr v11, v10
mul-float v11, v11, v8
add-float/2addr v10, v11
.line 1010
.local v10, "currentTranslationY":F
iget v11, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
iget v12, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToX:F
sub-float/2addr v12, v11
mul-float v12, v12, v8
add-float/2addr v11, v12
.line 1011
.local v11, "currentTranslationX":F
iget v12, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipTop:F
iget v13, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipTop:F
sub-float/2addr v13, v12
mul-float v13, v13, v8
add-float/2addr v12, v13
.line 1012
.local v12, "currentClipTop":F
iget v13, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipBottom:F
iget v14, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipBottom:F
sub-float/2addr v14, v13
mul-float v14, v14, v8
add-float/2addr v13, v14
.line 1013
.local v13, "currentClipBottom":F
iget v14, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipHorizontal:F
iget v15, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipHorizontal:F
sub-float/2addr v15, v14
mul-float v15, v15, v8
add-float/2addr v14, v15
.line 1014
.end local v3 # "overshoot":F
.end local v7 # "overshootTime":F
.end local v8 # "av":F
.local v14, "currentClipHorizontal":F
goto :goto_b8
.line 1015
.end local v9 # "currentScale":F
.end local v10 # "currentTranslationY":F
.end local v11 # "currentTranslationX":F
.end local v12 # "currentClipTop":F
.end local v13 # "currentClipBottom":F
.end local v14 # "currentClipHorizontal":F
:cond_80
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
iget v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToScale:F
sub-float/2addr v7, v3
iget v8, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animationValue:F
mul-float v7, v7, v8
add-float v9, v3, v7
.line 1016
.restart local v9 # "currentScale":F
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
iget v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToY:F
sub-float/2addr v7, v3
mul-float v7, v7, v8
add-float v10, v3, v7
.line 1017
.restart local v10 # "currentTranslationY":F
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
iget v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToX:F
sub-float/2addr v7, v3
mul-float v7, v7, v8
add-float v11, v3, v7
.line 1018
.restart local v11 # "currentTranslationX":F
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipTop:F
iget v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipTop:F
sub-float/2addr v7, v3
mul-float v7, v7, v8
add-float v12, v3, v7
.line 1019
.restart local v12 # "currentClipTop":F
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipBottom:F
iget v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipBottom:F
sub-float/2addr v7, v3
mul-float v7, v7, v8
add-float v13, v3, v7
.line 1020
.restart local v13 # "currentClipBottom":F
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipHorizontal:F
iget v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipHorizontal:F
sub-float/2addr v7, v3
mul-float v7, v7, v8
add-float v14, v3, v7
.line 1022
.restart local v14 # "currentClipHorizontal":F
:goto_b8
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToScale:F
cmpl-float v3, v3, v6
if-nez v3, :cond_cb
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
cmpl-float v3, v3, v6
if-nez v3, :cond_cb
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
cmpl-float v3, v3, v4
if-nez v3, :cond_cb
.line 1023
move v2, v10
.line 1026
:cond_cb
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->invalidate()V
goto/16 :goto_168
.line 1028
.end local v9 # "currentScale":F
.end local v10 # "currentTranslationY":F
.end local v11 # "currentTranslationX":F
.end local v12 # "currentClipTop":F
.end local v13 # "currentClipBottom":F
.end local v14 # "currentClipHorizontal":F
:cond_d2
iget-wide v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animationStartTime:J
const-wide/16 v9, 0x0
cmp-long v3, v7, v9
if-eqz v3, :cond_fb
.line 1029
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToX:F
iput v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
.line 1030
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToY:F
iput v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
.line 1031
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipBottom:F
iput v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipBottom:F
.line 1032
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipTop:F
iput v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipTop:F
.line 1033
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipHorizontal:F
iput v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipHorizontal:F
.line 1034
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToScale:F
iput v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
.line 1035
iput-wide v9, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animationStartTime:J
.line 1036
invoke-direct {v0, v3}, Lim/tpelyyftgw/ui/SecretMediaViewer;->updateMinMax(F)V
.line 1037
iput-boolean v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->zoomAnimation:Z
.line 1038
iput-boolean v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->useOvershootForScale:Z
.line 1040
:cond_fb
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/Scroller;->isFinished()Z
move-result v3
if-nez v3, :cond_156
.line 1041
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/Scroller;->computeScrollOffset()Z
move-result v3
if-eqz v3, :cond_156
.line 1042
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/Scroller;->getStartX()I
move-result v3
int-to-float v3, v3
iget v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
cmpg-float v3, v3, v7
if-gez v3, :cond_12e
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/Scroller;->getStartX()I
move-result v3
int-to-float v3, v3
iget v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
cmpl-float v3, v3, v7
if-lez v3, :cond_12e
.line 1043
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/Scroller;->getCurrX()I
move-result v3
int-to-float v3, v3
iput v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
.line 1045
:cond_12e
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/Scroller;->getStartY()I
move-result v3
int-to-float v3, v3
iget v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
cmpg-float v3, v3, v7
if-gez v3, :cond_151
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/Scroller;->getStartY()I
move-result v3
int-to-float v3, v3
iget v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
cmpl-float v3, v3, v7
if-lez v3, :cond_151
.line 1046
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/Scroller;->getCurrY()I
move-result v3
int-to-float v3, v3
iput v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
.line 1048
:cond_151
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->invalidate()V
.line 1051
:cond_156
iget v9, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
.line 1052
.restart local v9 # "currentScale":F
iget v10, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
.line 1053
.restart local v10 # "currentTranslationY":F
iget v11, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
.line 1054
.restart local v11 # "currentTranslationX":F
iget v12, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipTop:F
.line 1055
.restart local v12 # "currentClipTop":F
iget v13, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipBottom:F
.line 1056
.restart local v13 # "currentClipBottom":F
iget v14, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipHorizontal:F
.line 1057
.restart local v14 # "currentClipHorizontal":F
iget-boolean v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moving:Z
if-nez v3, :cond_168
.line 1058
iget v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
.line 1062
:cond_168
:goto_168
move v3, v11
.line 1063
.local v3, "translateX":F
const/4 v7, 0x0
.line 1064
.local v7, "scaleDiff":F
const/high16 v8, 0x3f800000 # 1.0f
.line 1065
.local v8, "alpha":F
iget v15, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationInProgress:I
const/4 v5, 0x3
if-eq v15, v5, :cond_1cd
.line 1066
iget v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
cmpl-float v5, v5, v6
if-nez v5, :cond_1a5
const/high16 v5, -0x40800000 # -1.0f
cmpl-float v5, v2, v5
if-eqz v5, :cond_1a5
iget-boolean v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->zoomAnimation:Z
if-nez v5, :cond_1a5
.line 1067
invoke-direct/range {p0 .. p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewHeight()I
move-result v5
int-to-float v5, v5
const/high16 v15, 0x40800000 # 4.0f
div-float/2addr v5, v15
.line 1068
.local v5, "maxValue":F
iget-object v15, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoBackgroundDrawable:Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
const/high16 v18, 0x437f0000 # 255.0f
invoke-static {v2}, Ljava/lang/Math;->abs(F)F
move-result v4
invoke-static {v4, v5}, Ljava/lang/Math;->min(FF)F
move-result v4
div-float/2addr v4, v5
sub-float v4, v6, v4
mul-float v4, v4, v18
const/high16 v6, 0x42fe0000 # 127.0f
invoke-static {v6, v4}, Ljava/lang/Math;->max(FF)F
move-result v4
float-to-int v4, v4
invoke-virtual {v15, v4}, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->setAlpha(I)V
.line 1069
.end local v5 # "maxValue":F
goto :goto_1ac
.line 1070
:cond_1a5
iget-object v4, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoBackgroundDrawable:Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
const/16 v5, 0xff
invoke-virtual {v4, v5}, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->setAlpha(I)V
.line 1072
:goto_1ac
iget-boolean v4, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->zoomAnimation:Z
if-nez v4, :cond_1cd
iget v4, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
cmpl-float v5, v3, v4
if-lez v5, :cond_1cd
.line 1073
sub-float v4, v3, v4
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->getWidth()I
move-result v5
int-to-float v5, v5
div-float/2addr v4, v5
const/high16 v5, 0x3f800000 # 1.0f
invoke-static {v5, v4}, Ljava/lang/Math;->min(FF)F
move-result v4
.line 1074
.end local v8 # "alpha":F
.local v4, "alpha":F
const v6, 0x3e99999a # 0.3f
mul-float v7, v4, v6
.line 1075
sub-float v8, v5, v4
.line 1076
.end local v4 # "alpha":F
.restart local v8 # "alpha":F
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
.line 1080
:cond_1cd
iget-object v4, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
if-eqz v4, :cond_1da
invoke-virtual {v4}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getVisibility()I
move-result v4
if-nez v4, :cond_1da
const/16 v16, 0x1
goto :goto_1dc
:cond_1da
const/16 v16, 0x0
:goto_1dc
move/from16 v4, v16
.line 1081
.local v4, "drawTextureView":Z
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
.line 1082
sub-float v6, v9, v7
.line 1083
.local v6, "sc":F
invoke-direct/range {p0 .. p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewWidth()I
move-result v15
div-int/lit8 v15, v15, 0x2
int-to-float v15, v15
add-float/2addr v15, v3
invoke-direct/range {p0 .. p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewHeight()I
move-result v16
div-int/lit8 v5, v16, 0x2
int-to-float v5, v5
add-float/2addr v5, v10
invoke-virtual {v1, v15, v5}, Landroid/graphics/Canvas;->translate(FF)V
.line 1084
invoke-virtual {v1, v6, v6}, Landroid/graphics/Canvas;->scale(FF)V
.line 1086
iget-object v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v5}, Lim/tpelyyftgw/messenger/ImageReceiver;->getBitmapWidth()I
move-result v5
.line 1087
.local v5, "bitmapWidth":I
iget-object v15, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v15}, Lim/tpelyyftgw/messenger/ImageReceiver;->getBitmapHeight()I
move-result v15
.line 1088
.local v15, "bitmapHeight":I
if-eqz v4, :cond_247
move/from16 v16, v2
.end local v2 # "aty":F
.local v16, "aty":F
iget-boolean v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->textureUploaded:Z
if-eqz v2, :cond_242
.line 1089
int-to-float v2, v5
move/from16 v20, v3
.end local v3 # "translateX":F
.local v20, "translateX":F
int-to-float v3, v15
div-float/2addr v2, v3
.line 1090
.local v2, "scale1":F
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoTextureView:Landroid/view/TextureView;
invoke-virtual {v3}, Landroid/view/TextureView;->getMeasuredWidth()I
move-result v3
int-to-float v3, v3
move/from16 v21, v5
.end local v5 # "bitmapWidth":I
.local v21, "bitmapWidth":I
iget-object v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoTextureView:Landroid/view/TextureView;
invoke-virtual {v5}, Landroid/view/TextureView;->getMeasuredHeight()I
move-result v5
int-to-float v5, v5
div-float/2addr v3, v5
.line 1091
.local v3, "scale2":F
sub-float v5, v2, v3
invoke-static {v5}, Ljava/lang/Math;->abs(F)F
move-result v5
const v22, 0x3c23d70a # 0.01f
cmpl-float v5, v5, v22
if-lez v5, :cond_23f
.line 1092
iget-object v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoTextureView:Landroid/view/TextureView;
invoke-virtual {v5}, Landroid/view/TextureView;->getMeasuredWidth()I
move-result v5
.line 1093
.end local v21 # "bitmapWidth":I
.restart local v5 # "bitmapWidth":I
move/from16 v22, v2
.end local v2 # "scale1":F
.local v22, "scale1":F
iget-object v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoTextureView:Landroid/view/TextureView;
invoke-virtual {v2}, Landroid/view/TextureView;->getMeasuredHeight()I
move-result v15
goto :goto_24f
.line 1091
.end local v5 # "bitmapWidth":I
.end local v22 # "scale1":F
.restart local v2 # "scale1":F
.restart local v21 # "bitmapWidth":I
:cond_23f
move/from16 v22, v2
.end local v2 # "scale1":F
.restart local v22 # "scale1":F
goto :goto_24d
.line 1088
.end local v20 # "translateX":F
.end local v21 # "bitmapWidth":I
.end local v22 # "scale1":F
.local v3, "translateX":F
.restart local v5 # "bitmapWidth":I
:cond_242
move/from16 v20, v3
move/from16 v21, v5
.end local v3 # "translateX":F
.end local v5 # "bitmapWidth":I
.restart local v20 # "translateX":F
.restart local v21 # "bitmapWidth":I
goto :goto_24d
.end local v16 # "aty":F
.end local v20 # "translateX":F
.end local v21 # "bitmapWidth":I
.local v2, "aty":F
.restart local v3 # "translateX":F
.restart local v5 # "bitmapWidth":I
:cond_247
move/from16 v16, v2
move/from16 v20, v3
move/from16 v21, v5
.line 1097
.end local v2 # "aty":F
.end local v3 # "translateX":F
.end local v5 # "bitmapWidth":I
.restart local v16 # "aty":F
.restart local v20 # "translateX":F
.restart local v21 # "bitmapWidth":I
:goto_24d
move/from16 v5, v21
.end local v21 # "bitmapWidth":I
.restart local v5 # "bitmapWidth":I
:goto_24f
invoke-direct/range {p0 .. p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewHeight()I
move-result v2
int-to-float v2, v2
int-to-float v3, v15
div-float/2addr v2, v3
invoke-direct/range {p0 .. p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewWidth()I
move-result v3
int-to-float v3, v3
move/from16 v21, v7
.end local v7 # "scaleDiff":F
.local v21, "scaleDiff":F
int-to-float v7, v5
div-float/2addr v3, v7
invoke-static {v2, v3}, Ljava/lang/Math;->min(FF)F
move-result v2
.line 1098
.local v2, "scale":F
int-to-float v3, v5
mul-float v3, v3, v2
float-to-int v3, v3
.line 1099
.local v3, "width":I
int-to-float v7, v15
mul-float v7, v7, v2
float-to-int v7, v7
.line 1101
.local v7, "height":I
move/from16 v22, v2
.end local v2 # "scale":F
.local v22, "scale":F
neg-int v2, v3
div-int/lit8 v2, v2, 0x2
int-to-float v2, v2
div-float v23, v14, v6
add-float v2, v2, v23
move/from16 v23, v5
.end local v5 # "bitmapWidth":I
.local v23, "bitmapWidth":I
neg-int v5, v7
div-int/lit8 v5, v5, 0x2
int-to-float v5, v5
div-float v24, v12, v6
add-float v5, v5, v24
move/from16 v24, v9
.end local v9 # "currentScale":F
.local v24, "currentScale":F
div-int/lit8 v9, v3, 0x2
int-to-float v9, v9
div-float v25, v14, v6
sub-float v9, v9, v25
move/from16 v25, v10
.end local v10 # "currentTranslationY":F
.local v25, "currentTranslationY":F
div-int/lit8 v10, v7, 0x2
int-to-float v10, v10
div-float v26, v13, v6
sub-float v10, v10, v26
invoke-virtual {v1, v2, v5, v9, v10}, Landroid/graphics/Canvas;->clipRect(FFFF)Z
.line 1103
if-eqz v4, :cond_2a6
iget-boolean v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->textureUploaded:Z
if-eqz v2, :cond_2a6
iget-boolean v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeStarted:Z
if-eqz v2, :cond_2a6
iget v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlpha:F
const/high16 v5, 0x3f800000 # 1.0f
cmpl-float v2, v2, v5
if-eqz v2, :cond_2bb
.line 1104
:cond_2a6
iget-object v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v2, v8}, Lim/tpelyyftgw/messenger/ImageReceiver;->setAlpha(F)V
.line 1105
iget-object v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
neg-int v5, v3
div-int/lit8 v5, v5, 0x2
neg-int v9, v7
div-int/lit8 v9, v9, 0x2
invoke-virtual {v2, v5, v9, v3, v7}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImageCoords(IIII)V
.line 1106
iget-object v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v2, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->draw(Landroid/graphics/Canvas;)Z
.line 1108
:cond_2bb
if-eqz v4, :cond_31f
.line 1109
iget-boolean v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeStarted:Z
if-nez v2, :cond_2d1
iget-boolean v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->textureUploaded:Z
if-eqz v2, :cond_2d1
.line 1110
const/4 v2, 0x1
iput-boolean v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeStarted:Z
.line 1111
const/4 v2, 0x0
iput v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlpha:F
.line 1112
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v9
iput-wide v9, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlphaLastTime:J
.line 1114
:cond_2d1
neg-int v2, v3
div-int/lit8 v2, v2, 0x2
int-to-float v2, v2
neg-int v5, v7
div-int/lit8 v5, v5, 0x2
int-to-float v5, v5
invoke-virtual {v1, v2, v5}, Landroid/graphics/Canvas;->translate(FF)V
.line 1115
iget-object v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoTextureView:Landroid/view/TextureView;
iget v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlpha:F
mul-float v5, v5, v8
invoke-virtual {v2, v5}, Landroid/view/TextureView;->setAlpha(F)V
.line 1116
iget-object v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
invoke-virtual {v2, v1}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->draw(Landroid/graphics/Canvas;)V
.line 1117
iget-boolean v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeStarted:Z
if-eqz v2, :cond_31c
iget v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlpha:F
const/high16 v5, 0x3f800000 # 1.0f
cmpg-float v2, v2, v5
if-gez v2, :cond_31c
.line 1118
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v9
.line 1119
.local v9, "newUpdateTime":J
iget-wide v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlphaLastTime:J
sub-long v1, v9, v1
.line 1120
.local v1, "dt":J
iput-wide v9, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlphaLastTime:J
.line 1121
iget v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlpha:F
move/from16 v17, v3
.end local v3 # "width":I
.local v17, "width":I
long-to-float v3, v1
const/high16 v19, 0x43480000 # 200.0f
div-float v3, v3, v19
add-float/2addr v5, v3
iput v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlpha:F
.line 1122
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->invalidate()V
.line 1123
iget v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlpha:F
const/high16 v5, 0x3f800000 # 1.0f
cmpl-float v3, v3, v5
if-lez v3, :cond_321
.line 1124
iput v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlpha:F
goto :goto_321
.line 1117
.end local v1 # "dt":J
.end local v9 # "newUpdateTime":J
.end local v17 # "width":I
.restart local v3 # "width":I
:cond_31c
move/from16 v17, v3
.end local v3 # "width":I
.restart local v17 # "width":I
goto :goto_321
.line 1108
.end local v17 # "width":I
.restart local v3 # "width":I
:cond_31f
move/from16 v17, v3
.line 1128
.end local v3 # "width":I
.restart local v17 # "width":I
:cond_321
:goto_321
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V
.line 1129
return-void
.end method
.method private onPhotoClosed(Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;)V
.registers 6
.param p1, "object" # Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
.line 1324
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isVisible:Z
.line 1325
const/4 v1, 0x0
iput-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentProvider:Lim/tpelyyftgw/ui/PhotoViewer$PhotoViewerProvider;
.line 1326
iput-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->disableShowCheck:Z
.line 1327
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->releasePlayer()V
.line 1328
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 1329
.local v0, "filesToDelete":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/io/File;>;"
new-instance v1, Lim/tpelyyftgw/ui/-$$Lambda$SecretMediaViewer$z2ng9rJ4B0_ShwxMJLmIJEtByM0;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/-$$Lambda$SecretMediaViewer$z2ng9rJ4B0_ShwxMJLmIJEtByM0;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;)V
const-wide/16 v2, 0x32
invoke-static {v1, v2, v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->runOnUIThread(Ljava/lang/Runnable;J)V
.line 1345
return-void
.end method
.method private preparePlayer(Ljava/io/File;)V
.registers 8
.param p1, "file" # Ljava/io/File;
.line 465
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
if-nez v0, :cond_5
.line 466
return-void
.line 468
:cond_5
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->releasePlayer()V
.line 469
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoTextureView:Landroid/view/TextureView;
const/4 v1, 0x0
if-nez v0, :cond_3f
.line 470
new-instance v0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
invoke-direct {v0, v2}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
.line 471
const/4 v2, 0x4
invoke-virtual {v0, v2}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->setVisibility(I)V
.line 472
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
const/16 v3, 0x11
const/4 v4, -0x1
invoke-static {v4, v4, v3}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v5
invoke-virtual {v0, v2, v1, v5}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
.line 474
new-instance v0, Landroid/view/TextureView;
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
invoke-direct {v0, v2}, Landroid/view/TextureView;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoTextureView:Landroid/view/TextureView;
.line 475
invoke-virtual {v0, v1}, Landroid/view/TextureView;->setOpaque(Z)V
.line 476
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoTextureView:Landroid/view/TextureView;
invoke-static {v4, v4, v3}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v3
invoke-virtual {v0, v2, v3}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 478
:cond_3f
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->textureUploaded:Z
.line 479
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeStarted:Z
.line 480
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoTextureView:Landroid/view/TextureView;
const/4 v1, 0x0
iput v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlpha:F
invoke-virtual {v0, v1}, Landroid/view/TextureView;->setAlpha(F)V
.line 481
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;
if-nez v0, :cond_65
.line 482
new-instance v0, Lim/tpelyyftgw/ui/components/VideoPlayer;
invoke-direct {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;
.line 483
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoTextureView:Landroid/view/TextureView;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/VideoPlayer;->setTextureView(Landroid/view/TextureView;)V
.line 484
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;
new-instance v1, Lim/tpelyyftgw/ui/SecretMediaViewer$1;
invoke-direct {v1, p0, p1}, Lim/tpelyyftgw/ui/SecretMediaViewer$1;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;Ljava/io/File;)V
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/VideoPlayer;->setDelegate(Lim/tpelyyftgw/ui/components/VideoPlayer$VideoPlayerDelegate;)V
.line 565
:cond_65
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;
invoke-static {p1}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;
move-result-object v1
const-string v2, "other"
invoke-virtual {v0, v1, v2}, Lim/tpelyyftgw/ui/components/VideoPlayer;->preparePlayer(Landroid/net/Uri;Ljava/lang/String;)V
.line 566
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/VideoPlayer;->setPlayWhenReady(Z)V
.line 567
return-void
.end method
.method private processTouchEvent(Landroid/view/MotionEvent;)Z
.registers 14
.param p1, "ev" # Landroid/view/MotionEvent;
.line 1373
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationInProgress:I
const/4 v1, 0x0
if-nez v0, :cond_386
iget-wide v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animationStartTime:J
const-wide/16 v4, 0x0
cmp-long v0, v2, v4
if-eqz v0, :cond_f
goto/16 :goto_386
.line 1377
:cond_f
invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I
move-result v0
const/4 v2, 0x1
if-ne v0, v2, :cond_2c
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->gestureDetector:Landroid/view/GestureDetector;
invoke-virtual {v0, p1}, Landroid/view/GestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
if-eqz v0, :cond_2c
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->doubleTap:Z
if-eqz v0, :cond_2c
.line 1378
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->doubleTap:Z
.line 1379
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moving:Z
.line 1380
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->zooming:Z
.line 1381
invoke-direct {p0, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->checkMinMax(Z)V
.line 1382
return v2
.line 1385
:cond_2c
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
move-result v0
const/high16 v3, 0x40000000 # 2.0f
const/4 v6, 0x2
if-eqz v0, :cond_302
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
move-result v0
const/4 v7, 0x5
if-ne v0, v7, :cond_3e
goto/16 :goto_302
.line 1413
:cond_3e
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
move-result v0
const/4 v7, 0x0
const/high16 v8, 0x40400000 # 3.0f
const/high16 v9, 0x3f800000 # 1.0f
if-ne v0, v6, :cond_1fc
.line 1414
invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I
move-result v0
if-ne v0, v6, :cond_c4
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->draggingDown:Z
if-nez v0, :cond_c4
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->zooming:Z
if-eqz v0, :cond_c4
.line 1415
iput-boolean v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->discardTap:Z
.line 1416
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getX(I)F
move-result v0
invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getX(I)F
move-result v3
sub-float/2addr v0, v3
float-to-double v3, v0
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getY(I)F
move-result v0
invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getY(I)F
move-result v2
sub-float/2addr v0, v2
float-to-double v7, v0
invoke-static {v3, v4, v7, v8}, Ljava/lang/Math;->hypot(DD)D
move-result-wide v2
double-to-float v0, v2
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartDistance:F
div-float/2addr v0, v2
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartScale:F
mul-float v0, v0, v2
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
.line 1417
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchCenterX:F
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewWidth()I
move-result v2
div-int/2addr v2, v6
int-to-float v2, v2
sub-float/2addr v0, v2
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchCenterX:F
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewWidth()I
move-result v3
div-int/2addr v3, v6
int-to-float v3, v3
sub-float/2addr v2, v3
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartX:F
sub-float/2addr v2, v3
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartScale:F
div-float/2addr v3, v4
mul-float v2, v2, v3
sub-float/2addr v0, v2
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
.line 1418
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchCenterY:F
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewHeight()I
move-result v2
div-int/2addr v2, v6
int-to-float v2, v2
sub-float/2addr v0, v2
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchCenterY:F
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewHeight()I
move-result v3
div-int/2addr v3, v6
int-to-float v3, v3
sub-float/2addr v2, v3
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartY:F
sub-float/2addr v2, v3
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartScale:F
div-float v4, v3, v4
mul-float v2, v2, v4
sub-float/2addr v0, v2
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
.line 1419
invoke-direct {p0, v3}, Lim/tpelyyftgw/ui/SecretMediaViewer;->updateMinMax(F)V
.line 1420
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->invalidate()V
goto/16 :goto_385
.line 1421
:cond_c4
invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I
move-result v0
if-ne v0, v2, :cond_385
.line 1422
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->velocityTracker:Landroid/view/VelocityTracker;
if-eqz v0, :cond_d1
.line 1423
invoke-virtual {v0, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V
.line 1425
:cond_d1
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v0
iget v6, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moveStartX:F
sub-float/2addr v0, v6
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
move-result v0
.line 1426
.local v0, "dx":F
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v6
iget v10, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->dragY:F
sub-float/2addr v6, v10
invoke-static {v6}, Ljava/lang/Math;->abs(F)F
move-result v6
.line 1427
.local v6, "dy":F
invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v10
int-to-float v10, v10
cmpl-float v10, v0, v10
if-gtz v10, :cond_f9
invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v10
int-to-float v10, v10
cmpl-float v10, v6, v10
if-lez v10, :cond_fb
.line 1428
:cond_f9
iput-boolean v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->discardTap:Z
.line 1430
:cond_fb
iget-boolean v10, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->canDragDown:Z
if-eqz v10, :cond_12c
iget-boolean v10, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->draggingDown:Z
if-nez v10, :cond_12c
iget v10, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
cmpl-float v10, v10, v9
if-nez v10, :cond_12c
const/high16 v10, 0x41f00000 # 30.0f
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v10
int-to-float v10, v10
cmpl-float v10, v6, v10
if-ltz v10, :cond_12c
div-float v3, v6, v3
cmpl-float v3, v3, v0
if-lez v3, :cond_12c
.line 1431
iput-boolean v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->draggingDown:Z
.line 1432
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moving:Z
.line 1433
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v3
iput v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->dragY:F
.line 1434
iget-boolean v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isActionBarVisible:Z
if-eqz v3, :cond_12b
.line 1435
invoke-direct {p0, v1, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer;->toggleActionBar(ZZ)V
.line 1437
:cond_12b
return v2
.line 1438
:cond_12c
iget-boolean v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->draggingDown:Z
if-eqz v3, :cond_140
.line 1439
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v2
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->dragY:F
sub-float/2addr v2, v3
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
.line 1440
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->invalidate()V
goto/16 :goto_1fa
.line 1441
:cond_140
iget-boolean v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->invalidCoords:Z
if-nez v3, :cond_1ec
iget-wide v10, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animationStartTime:J
cmp-long v3, v10, v4
if-nez v3, :cond_1ec
.line 1442
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moveStartX:F
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v4
sub-float/2addr v3, v4
.line 1443
.local v3, "moveDx":F
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moveStartY:F
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v5
sub-float/2addr v4, v5
.line 1444
.local v4, "moveDy":F
iget-boolean v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moving:Z
if-nez v5, :cond_17c
iget v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
cmpl-float v5, v5, v9
if-nez v5, :cond_176
invoke-static {v4}, Ljava/lang/Math;->abs(F)F
move-result v5
const/high16 v10, 0x41400000 # 12.0f
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v10
int-to-float v10, v10
add-float/2addr v5, v10
invoke-static {v3}, Ljava/lang/Math;->abs(F)F
move-result v10
cmpg-float v5, v5, v10
if-ltz v5, :cond_17c
:cond_176
iget v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
cmpl-float v5, v5, v9
if-eqz v5, :cond_1eb
.line 1445
:cond_17c
iget-boolean v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moving:Z
if-nez v5, :cond_186
.line 1446
const/4 v3, 0x0
.line 1447
const/4 v4, 0x0
.line 1448
iput-boolean v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moving:Z
.line 1449
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->canDragDown:Z
.line 1452
:cond_186
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v2
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moveStartX:F
.line 1453
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v2
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moveStartY:F
.line 1454
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
invoke-direct {p0, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer;->updateMinMax(F)V
.line 1455
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
iget v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
cmpg-float v5, v2, v5
if-ltz v5, :cond_1a5
iget v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
cmpl-float v2, v2, v5
if-lez v2, :cond_1a6
.line 1456
:cond_1a5
div-float/2addr v3, v8
.line 1458
:cond_1a6
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
cmpl-float v5, v2, v7
if-nez v5, :cond_1c7
iget v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
cmpl-float v7, v5, v7
if-nez v7, :cond_1c7
.line 1459
iget v7, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
sub-float v8, v7, v4
cmpg-float v8, v8, v5
if-gez v8, :cond_1be
.line 1460
iput v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
.line 1461
const/4 v4, 0x0
goto :goto_1d6
.line 1462
:cond_1be
sub-float/2addr v7, v4
cmpl-float v5, v7, v2
if-lez v5, :cond_1d6
.line 1463
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
.line 1464
const/4 v4, 0x0
goto :goto_1d6
.line 1467
:cond_1c7
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
iget v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
cmpg-float v5, v2, v5
if-ltz v5, :cond_1d5
iget v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
cmpl-float v2, v2, v5
if-lez v2, :cond_1d6
.line 1468
:cond_1d5
div-float/2addr v4, v8
.line 1472
:cond_1d6
:goto_1d6
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
sub-float/2addr v2, v3
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
.line 1473
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
cmpl-float v2, v2, v9
if-eqz v2, :cond_1e6
.line 1474
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
sub-float/2addr v2, v4
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
.line 1476
:cond_1e6
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->invalidate()V
.line 1478
.end local v3 # "moveDx":F
.end local v4 # "moveDy":F
:cond_1eb
goto :goto_1fa
.line 1479
:cond_1ec
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->invalidCoords:Z
.line 1480
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v2
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moveStartX:F
.line 1481
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v2
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moveStartY:F
.line 1483
.end local v0 # "dx":F
.end local v6 # "dy":F
:goto_1fa
goto/16 :goto_385
.line 1484
:cond_1fc
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
move-result v0
const/4 v3, 0x3
if-eq v0, v3, :cond_210
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
move-result v0
if-eq v0, v2, :cond_210
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
move-result v0
const/4 v3, 0x6
if-ne v0, v3, :cond_385
.line 1485
:cond_210
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->zooming:Z
if-eqz v0, :cond_28f
.line 1486
iput-boolean v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->invalidCoords:Z
.line 1487
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
cmpg-float v3, v0, v9
if-gez v3, :cond_223
.line 1488
invoke-direct {p0, v9}, Lim/tpelyyftgw/ui/SecretMediaViewer;->updateMinMax(F)V
.line 1489
invoke-direct {p0, v9, v7, v7, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateTo(FFFZ)V
goto :goto_28b
.line 1490
:cond_223
cmpl-float v0, v0, v8
if-lez v0, :cond_288
.line 1491
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchCenterX:F
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewWidth()I
move-result v3
div-int/2addr v3, v6
int-to-float v3, v3
sub-float/2addr v0, v3
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchCenterX:F
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewWidth()I
move-result v4
div-int/2addr v4, v6
int-to-float v4, v4
sub-float/2addr v3, v4
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartX:F
sub-float/2addr v3, v4
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartScale:F
div-float v4, v8, v4
mul-float v3, v3, v4
sub-float/2addr v0, v3
.line 1492
.local v0, "atx":F
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchCenterY:F
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewHeight()I
move-result v4
div-int/2addr v4, v6
int-to-float v4, v4
sub-float/2addr v3, v4
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchCenterY:F
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewHeight()I
move-result v5
div-int/2addr v5, v6
int-to-float v5, v5
sub-float/2addr v4, v5
iget v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartY:F
sub-float/2addr v4, v5
iget v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartScale:F
div-float v5, v8, v5
mul-float v4, v4, v5
sub-float/2addr v3, v4
.line 1493
.local v3, "aty":F
invoke-direct {p0, v8}, Lim/tpelyyftgw/ui/SecretMediaViewer;->updateMinMax(F)V
.line 1494
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
cmpg-float v4, v0, v4
if-gez v4, :cond_26b
.line 1495
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
goto :goto_273
.line 1496
:cond_26b
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
cmpl-float v4, v0, v4
if-lez v4, :cond_273
.line 1497
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
.line 1499
:cond_273
:goto_273
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
cmpg-float v4, v3, v4
if-gez v4, :cond_27c
.line 1500
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
goto :goto_284
.line 1501
:cond_27c
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
cmpl-float v4, v3, v4
if-lez v4, :cond_284
.line 1502
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
.line 1504
:cond_284
:goto_284
invoke-direct {p0, v8, v0, v3, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateTo(FFFZ)V
.line 1505
.end local v0 # "atx":F
.end local v3 # "aty":F
goto :goto_28b
.line 1506
:cond_288
invoke-direct {p0, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer;->checkMinMax(Z)V
.line 1508
:goto_28b
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->zooming:Z
goto/16 :goto_385
.line 1509
:cond_28f
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->draggingDown:Z
if-eqz v0, :cond_2b5
.line 1510
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->dragY:F
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v3
sub-float/2addr v0, v3
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
move-result v0
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewHeight()I
move-result v3
int-to-float v3, v3
const/high16 v4, 0x40c00000 # 6.0f
div-float/2addr v3, v4
cmpl-float v0, v0, v3
if-lez v0, :cond_2ae
.line 1511
invoke-virtual {p0, v2, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->closePhoto(ZZ)V
goto :goto_2b1
.line 1513
:cond_2ae
invoke-direct {p0, v9, v7, v7, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateTo(FFFZ)V
.line 1515
:goto_2b1
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->draggingDown:Z
goto/16 :goto_385
.line 1516
:cond_2b5
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moving:Z
if-eqz v0, :cond_385
.line 1517
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
.line 1518
.local v0, "moveToX":F
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
.line 1519
.local v3, "moveToY":F
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
invoke-direct {p0, v4}, Lim/tpelyyftgw/ui/SecretMediaViewer;->updateMinMax(F)V
.line 1520
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moving:Z
.line 1521
iput-boolean v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->canDragDown:Z
.line 1522
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->velocityTracker:Landroid/view/VelocityTracker;
if-eqz v2, :cond_2d5
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
cmpl-float v4, v4, v9
if-nez v4, :cond_2d5
.line 1523
const/16 v4, 0x3e8
invoke-virtual {v2, v4}, Landroid/view/VelocityTracker;->computeCurrentVelocity(I)V
.line 1525
:cond_2d5
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
cmpg-float v4, v2, v4
if-gez v4, :cond_2e0
.line 1526
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
goto :goto_2e8
.line 1527
:cond_2e0
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
cmpl-float v2, v2, v4
if-lez v2, :cond_2e8
.line 1528
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
.line 1530
:cond_2e8
:goto_2e8
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
cmpg-float v4, v2, v4
if-gez v4, :cond_2f3
.line 1531
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
goto :goto_2fb
.line 1532
:cond_2f3
iget v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
cmpl-float v2, v2, v4
if-lez v2, :cond_2fb
.line 1533
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
.line 1535
:cond_2fb
:goto_2fb
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
invoke-direct {p0, v2, v0, v3, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateTo(FFFZ)V
goto/16 :goto_385
.line 1386
.end local v0 # "moveToX":F
.end local v3 # "moveToY":F
:cond_302
:goto_302
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->discardTap:Z
.line 1387
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/Scroller;->isFinished()Z
move-result v0
if-nez v0, :cond_311
.line 1388
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/Scroller;->abortAnimation()V
.line 1390
:cond_311
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->draggingDown:Z
if-nez v0, :cond_385
.line 1391
invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I
move-result v0
if-ne v0, v6, :cond_366
.line 1392
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getX(I)F
move-result v0
invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getX(I)F
move-result v4
sub-float/2addr v0, v4
float-to-double v4, v0
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getY(I)F
move-result v0
invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getY(I)F
move-result v6
sub-float/2addr v0, v6
float-to-double v6, v0
invoke-static {v4, v5, v6, v7}, Ljava/lang/Math;->hypot(DD)D
move-result-wide v4
double-to-float v0, v4
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartDistance:F
.line 1393
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartScale:F
.line 1394
invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getX(I)F
move-result v0
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getX(I)F
move-result v4
add-float/2addr v0, v4
div-float/2addr v0, v3
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchCenterX:F
.line 1395
invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getY(I)F
move-result v0
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getY(I)F
move-result v4
add-float/2addr v0, v4
div-float/2addr v0, v3
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchCenterY:F
.line 1396
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartX:F
.line 1397
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartY:F
.line 1398
iput-boolean v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->zooming:Z
.line 1399
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moving:Z
.line 1400
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->velocityTracker:Landroid/view/VelocityTracker;
if-eqz v0, :cond_385
.line 1401
invoke-virtual {v0}, Landroid/view/VelocityTracker;->clear()V
goto :goto_385
.line 1403
:cond_366
invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I
move-result v0
if-ne v0, v2, :cond_385
.line 1404
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v0
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moveStartX:F
.line 1405
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v0
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->moveStartY:F
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->dragY:F
.line 1406
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->draggingDown:Z
.line 1407
iput-boolean v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->canDragDown:Z
.line 1408
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->velocityTracker:Landroid/view/VelocityTracker;
if-eqz v0, :cond_385
.line 1409
invoke-virtual {v0}, Landroid/view/VelocityTracker;->clear()V
.line 1538
:cond_385
:goto_385
return v1
.line 1374
:cond_386
:goto_386
return v1
.end method
.method private releasePlayer()V
.registers 5
.line 570
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;
const/4 v1, 0x0
const/4 v2, 0x0
if-eqz v0, :cond_e
.line 571
iput v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->playerRetryPlayCount:I
.line 572
const/4 v3, 0x1
invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/components/VideoPlayer;->releasePlayer(Z)V
.line 573
iput-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;
.line 576
:cond_e
:try_start_e
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
if-eqz v0, :cond_1d
.line 577
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v0
const/16 v3, 0x80
invoke-virtual {v0, v3}, Landroid/view/Window;->clearFlags(I)V
:try_end_1d
.catch Ljava/lang/Exception; {:try_start_e .. :try_end_1d} :catch_1e
.line 581
:cond_1d
goto :goto_22
.line 579
:catch_1e
move-exception v0
.line 580
.local v0, "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 582
.end local v0 # "e":Ljava/lang/Exception;
:goto_22
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
if-eqz v0, :cond_2d
.line 583
iget-object v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v3, v0}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->removeView(Landroid/view/View;)V
.line 584
iput-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
.line 586
:cond_2d
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoTextureView:Landroid/view/TextureView;
if-eqz v0, :cond_33
.line 587
iput-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoTextureView:Landroid/view/TextureView;
.line 589
:cond_33
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isPlaying:Z
.line 590
return-void
.end method
.method private scaleToFill()Z
.registers 2
.line 1678
const/4 v0, 0x0
return v0
.end method
.method private toggleActionBar(ZZ)V
.registers 9
.param p1, "show" # Z
.param p2, "animated" # Z
.line 917
const/4 v0, 0x0
if-eqz p1, :cond_8
.line 918
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setVisibility(I)V
.line 920
:cond_8
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-virtual {v1, p1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setEnabled(Z)V
.line 921
iput-boolean p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isActionBarVisible:Z
.line 923
const/high16 v1, 0x3f800000 # 1.0f
const/4 v2, 0x0
if-eqz p2, :cond_50
.line 924
new-instance v3, Ljava/util/ArrayList;
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
.line 925
.local v3, "arrayList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/animation/Animator;>;"
iget-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
const/4 v5, 0x1
new-array v5, v5, [F
if-eqz p1, :cond_21
goto :goto_22
:cond_21
const/4 v1, 0x0
:goto_22
aput v1, v5, v0
const-string v0, "alpha"
invoke-static {v4, v0, v5}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v0
invoke-virtual {v3, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 926
new-instance v0, Landroid/animation/AnimatorSet;
invoke-direct {v0}, Landroid/animation/AnimatorSet;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentActionBarAnimation:Landroid/animation/AnimatorSet;
.line 927
invoke-virtual {v0, v3}, Landroid/animation/AnimatorSet;->playTogether(Ljava/util/Collection;)V
.line 928
if-nez p1, :cond_43
.line 929
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentActionBarAnimation:Landroid/animation/AnimatorSet;
new-instance v1, Lim/tpelyyftgw/ui/SecretMediaViewer$6;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/SecretMediaViewer$6;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;)V
invoke-virtual {v0, v1}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 940
:cond_43
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentActionBarAnimation:Landroid/animation/AnimatorSet;
const-wide/16 v1, 0xc8
invoke-virtual {v0, v1, v2}, Landroid/animation/AnimatorSet;->setDuration(J)Landroid/animation/AnimatorSet;
.line 941
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentActionBarAnimation:Landroid/animation/AnimatorSet;
invoke-virtual {v0}, Landroid/animation/AnimatorSet;->start()V
.line 942
.end local v3 # "arrayList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/animation/Animator;>;"
goto :goto_62
.line 943
:cond_50
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
if-eqz p1, :cond_55
goto :goto_56
:cond_55
const/4 v1, 0x0
:goto_56
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setAlpha(F)V
.line 944
if-nez p1, :cond_62
.line 945
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setVisibility(I)V
.line 948
:cond_62
:goto_62
return-void
.end method
.method private updateMinMax(F)V
.registers 6
.param p1, "scale" # F
.line 1348
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/ImageReceiver;->getImageWidth()I
move-result v0
int-to-float v0, v0
mul-float v0, v0, p1
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewWidth()I
move-result v1
int-to-float v1, v1
sub-float/2addr v0, v1
float-to-int v0, v0
div-int/lit8 v0, v0, 0x2
.line 1349
.local v0, "maxW":I
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->getImageHeight()I
move-result v1
int-to-float v1, v1
mul-float v1, v1, p1
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewHeight()I
move-result v2
int-to-float v2, v2
sub-float/2addr v1, v2
float-to-int v1, v1
div-int/lit8 v1, v1, 0x2
.line 1350
.local v1, "maxH":I
const/4 v2, 0x0
if-lez v0, :cond_2f
.line 1351
neg-int v3, v0
int-to-float v3, v3
iput v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
.line 1352
int-to-float v3, v0
iput v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
goto :goto_33
.line 1354
:cond_2f
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
.line 1356
:goto_33
if-lez v1, :cond_3d
.line 1357
neg-int v2, v1
int-to-float v2, v2
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
.line 1358
int-to-float v2, v1
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
goto :goto_41
.line 1360
:cond_3d
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
.line 1362
:goto_41
return-void
.end method
# virtual methods
.method public closePhoto(ZZ)V
.registers 20
.param p1, "animated" # Z
.param p2, "byDelete" # Z
.line 1168
move-object/from16 v0, p0
iget-object v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
if-eqz v1, :cond_2e0
iget-boolean v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isPhotoVisible:Z
if-eqz v1, :cond_2e0
invoke-direct/range {p0 .. p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->checkPhotoAnimation()Z
move-result v1
if-eqz v1, :cond_12
goto/16 :goto_2e0
.line 1172
:cond_12
iget v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentAccount:I
invoke-static {v1}, Lim/tpelyyftgw/messenger/NotificationCenter;->getInstance(I)Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v1
sget v2, Lim/tpelyyftgw/messenger/NotificationCenter;->messagesDeleted:I
invoke-virtual {v1, v0, v2}, Lim/tpelyyftgw/messenger/NotificationCenter;->removeObserver(Ljava/lang/Object;I)V
.line 1173
iget v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentAccount:I
invoke-static {v1}, Lim/tpelyyftgw/messenger/NotificationCenter;->getInstance(I)Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v1
sget v2, Lim/tpelyyftgw/messenger/NotificationCenter;->updateMessageMedia:I
invoke-virtual {v1, v0, v2}, Lim/tpelyyftgw/messenger/NotificationCenter;->removeObserver(Ljava/lang/Object;I)V
.line 1174
iget v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentAccount:I
invoke-static {v1}, Lim/tpelyyftgw/messenger/NotificationCenter;->getInstance(I)Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v1
sget v2, Lim/tpelyyftgw/messenger/NotificationCenter;->didCreatedNewDeleteTask:I
invoke-virtual {v1, v0, v2}, Lim/tpelyyftgw/messenger/NotificationCenter;->removeObserver(Ljava/lang/Object;I)V
.line 1176
const/4 v1, 0x0
iput-boolean v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isActionBarVisible:Z
.line 1178
iget-object v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->velocityTracker:Landroid/view/VelocityTracker;
const/4 v3, 0x0
if-eqz v2, :cond_40
.line 1179
invoke-virtual {v2}, Landroid/view/VelocityTracker;->recycle()V
.line 1180
iput-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->velocityTracker:Landroid/view/VelocityTracker;
.line 1182
:cond_40
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
iput-wide v4, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->closeTime:J
.line 1184
iget-object v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentProvider:Lim/tpelyyftgw/ui/PhotoViewer$PhotoViewerProvider;
const/4 v4, 0x1
if-eqz v2, :cond_6d
iget-object v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
iget-object v2, v2, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget-object v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$Message;->media:Lim/tpelyyftgw/tgnet/TLRPC$MessageMedia;
iget-object v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$MessageMedia;->photo:Lim/tpelyyftgw/tgnet/TLRPC$Photo;
instance-of v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$TL_photoEmpty;
if-nez v2, :cond_6d
iget-object v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
iget-object v2, v2, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget-object v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$Message;->media:Lim/tpelyyftgw/tgnet/TLRPC$MessageMedia;
iget-object v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$MessageMedia;->document:Lim/tpelyyftgw/tgnet/TLRPC$Document;
instance-of v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$TL_documentEmpty;
if-eqz v2, :cond_64
goto :goto_6d
.line 1187
:cond_64
iget-object v2, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentProvider:Lim/tpelyyftgw/ui/PhotoViewer$PhotoViewerProvider;
iget-object v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
invoke-interface {v2, v5, v3, v1, v4}, Lim/tpelyyftgw/ui/PhotoViewer$PhotoViewerProvider;->getPlaceForPhoto(Lim/tpelyyftgw/messenger/MessageObject;Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;IZ)Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
move-result-object v2
.local v2, "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
goto :goto_6e
.line 1185
.end local v2 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
:cond_6d
:goto_6d
const/4 v2, 0x0
.line 1189
.restart local v2 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
:goto_6e
iget-object v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoPlayer:Lim/tpelyyftgw/ui/components/VideoPlayer;
if-eqz v5, :cond_75
.line 1190
invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/VideoPlayer;->pause()V
.line 1192
:cond_75
const/4 v7, 0x3
const-string v8, "alpha"
const/4 v9, 0x2
const/4 v10, 0x0
if-eqz p1, :cond_26b
.line 1193
iput v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationInProgress:I
.line 1194
iget-object v11, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v11}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->invalidate()V
.line 1196
new-instance v11, Landroid/animation/AnimatorSet;
invoke-direct {v11}, Landroid/animation/AnimatorSet;-><init>()V
iput-object v11, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
.line 1198
const/16 v11, 0x15
if-eqz v2, :cond_174
iget-object v12, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v12}, Lim/tpelyyftgw/messenger/ImageReceiver;->getThumbBitmap()Landroid/graphics/Bitmap;
move-result-object v12
if-eqz v12, :cond_174
if-nez p2, :cond_174
.line 1199
iget-object v12, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v12, v1, v4}, Lim/tpelyyftgw/messenger/ImageReceiver;->setVisible(ZZ)V
.line 1201
iget-object v12, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v12}, Lim/tpelyyftgw/messenger/ImageReceiver;->getDrawRegion()Landroid/graphics/RectF;
move-result-object v12
.line 1203
.local v12, "drawRegion":Landroid/graphics/RectF;
iget v13, v12, Landroid/graphics/RectF;->right:F
iget v14, v12, Landroid/graphics/RectF;->left:F
sub-float/2addr v13, v14
.line 1204
.local v13, "width":F
iget v14, v12, Landroid/graphics/RectF;->bottom:F
iget v15, v12, Landroid/graphics/RectF;->top:F
sub-float/2addr v14, v15
.line 1205
.local v14, "height":F
sget-object v15, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v15, v15, Landroid/graphics/Point;->x:I
.line 1206
.local v15, "viewWidth":I
sget-object v3, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v3, v3, Landroid/graphics/Point;->y:I
sget v5, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v5, v11, :cond_bc
sget v5, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
goto :goto_bd
:cond_bc
const/4 v5, 0x0
:goto_bd
add-int/2addr v3, v5
.line 1207
.local v3, "viewHeight":I
int-to-float v5, v15
div-float v5, v13, v5
int-to-float v6, v3
div-float v6, v14, v6
invoke-static {v5, v6}, Ljava/lang/Math;->max(FF)F
move-result v5
iput v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToScale:F
.line 1208
iget v5, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->viewX:I
int-to-float v5, v5
iget v6, v12, Landroid/graphics/RectF;->left:F
add-float/2addr v5, v6
const/high16 v6, 0x40000000 # 2.0f
div-float v16, v13, v6
add-float v5, v5, v16
div-int/lit8 v7, v15, 0x2
int-to-float v7, v7
sub-float/2addr v5, v7
iput v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToX:F
.line 1209
iget v5, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->viewY:I
int-to-float v5, v5
iget v7, v12, Landroid/graphics/RectF;->top:F
add-float/2addr v5, v7
div-float v6, v14, v6
add-float/2addr v5, v6
div-int/lit8 v6, v3, 0x2
int-to-float v6, v6
sub-float/2addr v5, v6
iput v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToY:F
.line 1210
iget v5, v12, Landroid/graphics/RectF;->left:F
iget-object v6, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v6}, Lim/tpelyyftgw/messenger/ImageReceiver;->getImageX()I
move-result v6
int-to-float v6, v6
sub-float/2addr v5, v6
invoke-static {v5}, Ljava/lang/Math;->abs(F)F
move-result v5
iput v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipHorizontal:F
.line 1211
iget v5, v12, Landroid/graphics/RectF;->top:F
iget-object v6, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v6}, Lim/tpelyyftgw/messenger/ImageReceiver;->getImageY()I
move-result v6
int-to-float v6, v6
sub-float/2addr v5, v6
invoke-static {v5}, Ljava/lang/Math;->abs(F)F
move-result v5
float-to-int v5, v5
.line 1212
.local v5, "clipVertical":I
new-array v6, v9, [I
.line 1213
.local v6, "coords2":[I
iget-object v7, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->parentView:Landroid/view/View;
invoke-virtual {v7, v6}, Landroid/view/View;->getLocationInWindow([I)V
.line 1214
aget v7, v6, v4
sget v9, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v9, v11, :cond_119
const/4 v9, 0x0
goto :goto_11b
:cond_119
sget v9, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
:goto_11b
sub-int/2addr v7, v9
int-to-float v7, v7
iget v9, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->viewY:I
int-to-float v9, v9
iget v1, v12, Landroid/graphics/RectF;->top:F
add-float/2addr v9, v1
sub-float/2addr v7, v9
iget v1, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->clipTopAddition:I
int-to-float v1, v1
add-float/2addr v7, v1
iput v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipTop:F
.line 1215
cmpg-float v1, v7, v10
if-gez v1, :cond_130
.line 1216
iput v10, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipTop:F
.line 1218
:cond_130
iget v1, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->viewY:I
int-to-float v1, v1
iget v7, v12, Landroid/graphics/RectF;->top:F
add-float/2addr v1, v7
float-to-int v7, v14
int-to-float v7, v7
add-float/2addr v1, v7
aget v7, v6, v4
iget-object v9, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->parentView:Landroid/view/View;
invoke-virtual {v9}, Landroid/view/View;->getHeight()I
move-result v9
add-int/2addr v7, v9
sget v9, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v9, v11, :cond_148
const/4 v9, 0x0
goto :goto_14a
:cond_148
sget v9, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
:goto_14a
sub-int/2addr v7, v9
int-to-float v7, v7
sub-float/2addr v1, v7
iget v7, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->clipBottomAddition:I
int-to-float v7, v7
add-float/2addr v1, v7
iput v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipBottom:F
.line 1219
cmpg-float v1, v1, v10
if-gez v1, :cond_159
.line 1220
iput v10, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipBottom:F
.line 1222
:cond_159
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v10
iput-wide v10, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animationStartTime:J
.line 1223
iget v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipBottom:F
int-to-float v9, v5
invoke-static {v7, v9}, Ljava/lang/Math;->max(FF)F
move-result v7
iput v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipBottom:F
.line 1224
iget v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipTop:F
int-to-float v9, v5
invoke-static {v7, v9}, Ljava/lang/Math;->max(FF)F
move-result v7
iput v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipTop:F
.line 1225
iput-boolean v4, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->zoomAnimation:Z
.line 1226
.end local v3 # "viewHeight":I
.end local v5 # "clipVertical":I
.end local v6 # "coords2":[I
.end local v12 # "drawRegion":Landroid/graphics/RectF;
.end local v13 # "width":F
.end local v14 # "height":F
.end local v15 # "viewWidth":I
goto :goto_18e
.line 1227
:cond_174
sget-object v3, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v3, v3, Landroid/graphics/Point;->y:I
sget v5, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v5, v11, :cond_17f
sget v5, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
goto :goto_180
:cond_17f
const/4 v5, 0x0
:goto_180
add-int/2addr v3, v5
.line 1228
.local v3, "h":I
iget v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
const/4 v1, 0x0
cmpl-float v5, v5, v1
if-ltz v5, :cond_18a
int-to-float v5, v3
goto :goto_18c
:cond_18a
neg-int v5, v3
int-to-float v5, v5
:goto_18c
iput v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToY:F
.line 1230
.end local v3 # "h":I
:goto_18e
iget-boolean v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isVideo:Z
const-string v5, "animationValue"
const/4 v6, 0x5
if-eqz v3, :cond_1e2
.line 1231
const/4 v3, 0x0
iput-boolean v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeStarted:Z
.line 1232
iput-boolean v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->textureUploaded:Z
.line 1233
iget-object v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
new-array v6, v6, [Landroid/animation/Animator;
iget-object v9, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoBackgroundDrawable:Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
new-array v10, v4, [I
aput v3, v10, v3
.line 1234
invoke-static {v9, v8, v10}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;
move-result-object v9
aput-object v9, v6, v3
const/4 v9, 0x2
new-array v10, v9, [F
fill-array-data v10, :array_2e2
.line 1235
invoke-static {v0, v5, v10}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v5
aput-object v5, v6, v4
iget-object v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
new-array v10, v4, [F
const/4 v1, 0x0
aput v1, v10, v3
.line 1236
invoke-static {v5, v8, v10}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v5
aput-object v5, v6, v9
iget-object v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
new-array v9, v4, [F
aput v1, v9, v3
.line 1237
invoke-static {v5, v8, v9}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v5
const/4 v8, 0x3
aput-object v5, v6, v8
new-array v4, v4, [F
aput v1, v4, v3
.line 1238
const-string/jumbo v1, "videoCrossfadeAlpha"
invoke-static {v0, v1, v4}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v1
const/4 v3, 0x4
aput-object v1, v6, v3
.line 1233
invoke-virtual {v7, v6}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
goto :goto_230
.line 1241
:cond_1e2
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v3, v4}, Lim/tpelyyftgw/messenger/ImageReceiver;->setManualAlphaAnimator(Z)V
.line 1242
iget-object v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
new-array v6, v6, [Landroid/animation/Animator;
iget-object v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoBackgroundDrawable:Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
new-array v9, v4, [I
const/4 v10, 0x0
aput v10, v9, v10
.line 1243
invoke-static {v7, v8, v9}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;
move-result-object v7
aput-object v7, v6, v10
const/4 v7, 0x2
new-array v9, v7, [F
fill-array-data v9, :array_2ea
.line 1244
invoke-static {v0, v5, v9}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v5
aput-object v5, v6, v4
iget-object v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
new-array v9, v4, [F
const/4 v1, 0x0
aput v1, v9, v10
.line 1245
invoke-static {v5, v8, v9}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v5
aput-object v5, v6, v7
iget-object v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
new-array v7, v4, [F
aput v1, v7, v10
.line 1246
invoke-static {v5, v8, v7}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v5
const/4 v7, 0x3
aput-object v5, v6, v7
iget-object v5, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
new-array v4, v4, [F
aput v1, v4, v10
.line 1247
const-string v1, "currentAlpha"
invoke-static {v5, v1, v4}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v1
const/4 v4, 0x4
aput-object v1, v6, v4
.line 1242
invoke-virtual {v3, v6}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
.line 1251
:goto_230
new-instance v1, Lim/tpelyyftgw/ui/-$$Lambda$SecretMediaViewer$peAFGQDs7I5B5_ifKv8C5I-jPng;
invoke-direct {v1, v0, v2}, Lim/tpelyyftgw/ui/-$$Lambda$SecretMediaViewer$peAFGQDs7I5B5_ifKv8C5I-jPng;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;)V
iput-object v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationEndRunnable:Ljava/lang/Runnable;
.line 1261
iget-object v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
new-instance v3, Landroid/view/animation/DecelerateInterpolator;
invoke-direct {v3}, Landroid/view/animation/DecelerateInterpolator;-><init>()V
invoke-virtual {v1, v3}, Landroid/animation/AnimatorSet;->setInterpolator(Landroid/animation/TimeInterpolator;)V
.line 1262
iget-object v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
const-wide/16 v3, 0xfa
invoke-virtual {v1, v3, v4}, Landroid/animation/AnimatorSet;->setDuration(J)Landroid/animation/AnimatorSet;
.line 1263
iget-object v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
new-instance v3, Lim/tpelyyftgw/ui/SecretMediaViewer$7;
invoke-direct {v3, v0, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer$7;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;)V
invoke-virtual {v1, v3}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 1278
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v3
iput-wide v3, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoTransitionAnimationStartTime:J
.line 1279
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v3, 0x12
if-lt v1, v3, :cond_265
.line 1280
iget-object v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
const/4 v3, 0x0
const/4 v4, 0x2
invoke-virtual {v1, v4, v3}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setLayerType(ILandroid/graphics/Paint;)V
.line 1282
:cond_265
iget-object v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
invoke-virtual {v1}, Landroid/animation/AnimatorSet;->start()V
goto :goto_2df
.line 1284
:cond_26b
new-instance v3, Landroid/animation/AnimatorSet;
invoke-direct {v3}, Landroid/animation/AnimatorSet;-><init>()V
.line 1285
.local v3, "animatorSet":Landroid/animation/AnimatorSet;
const/4 v5, 0x4
new-array v5, v5, [Landroid/animation/Animator;
iget-object v6, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
new-array v7, v4, [F
const v9, 0x3f666666 # 0.9f
const/4 v10, 0x0
aput v9, v7, v10
.line 1286
const-string/jumbo v11, "scaleX"
invoke-static {v6, v11, v7}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v6
aput-object v6, v5, v10
iget-object v6, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
new-array v7, v4, [F
aput v9, v7, v10
.line 1287
const-string/jumbo v9, "scaleY"
invoke-static {v6, v9, v7}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v6
aput-object v6, v5, v4
iget-object v6, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoBackgroundDrawable:Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
new-array v7, v4, [I
aput v10, v7, v10
.line 1288
invoke-static {v6, v8, v7}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;
move-result-object v6
const/4 v7, 0x2
aput-object v6, v5, v7
iget-object v6, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
new-array v4, v4, [F
const/4 v1, 0x0
aput v1, v4, v10
.line 1289
invoke-static {v6, v8, v4}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v1
const/4 v4, 0x3
aput-object v1, v5, v4
.line 1285
invoke-virtual {v3, v5}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
.line 1291
iput v7, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationInProgress:I
.line 1292
new-instance v1, Lim/tpelyyftgw/ui/-$$Lambda$SecretMediaViewer$f_5UnpNtfHFcfC4tVInhw8bhLGQ;
invoke-direct {v1, v0, v2}, Lim/tpelyyftgw/ui/-$$Lambda$SecretMediaViewer$f_5UnpNtfHFcfC4tVInhw8bhLGQ;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;)V
iput-object v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationEndRunnable:Ljava/lang/Runnable;
.line 1305
const-wide/16 v4, 0xc8
invoke-virtual {v3, v4, v5}, Landroid/animation/AnimatorSet;->setDuration(J)Landroid/animation/AnimatorSet;
.line 1306
new-instance v1, Lim/tpelyyftgw/ui/SecretMediaViewer$8;
invoke-direct {v1, v0}, Lim/tpelyyftgw/ui/SecretMediaViewer$8;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;)V
invoke-virtual {v3, v1}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 1315
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
iput-wide v4, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoTransitionAnimationStartTime:J
.line 1316
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v4, 0x12
if-lt v1, v4, :cond_2dc
.line 1317
iget-object v1, v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
const/4 v4, 0x0
const/4 v5, 0x2
invoke-virtual {v1, v5, v4}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setLayerType(ILandroid/graphics/Paint;)V
.line 1319
:cond_2dc
invoke-virtual {v3}, Landroid/animation/AnimatorSet;->start()V
.line 1321
.end local v3 # "animatorSet":Landroid/animation/AnimatorSet;
:goto_2df
return-void
.line 1169
.end local v2 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
:cond_2e0
:goto_2e0
return-void
nop
:array_2e2
.array-data 4
0x0
0x3f800000 # 1.0f
.end array-data
:array_2ea
.array-data 4
0x0
0x3f800000 # 1.0f
.end array-data
.end method
.method public destroyPhotoViewer()V
.registers 4
.line 955
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentAccount:I
invoke-static {v0}, Lim/tpelyyftgw/messenger/NotificationCenter;->getInstance(I)Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v0
sget v1, Lim/tpelyyftgw/messenger/NotificationCenter;->messagesDeleted:I
invoke-virtual {v0, p0, v1}, Lim/tpelyyftgw/messenger/NotificationCenter;->removeObserver(Ljava/lang/Object;I)V
.line 956
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentAccount:I
invoke-static {v0}, Lim/tpelyyftgw/messenger/NotificationCenter;->getInstance(I)Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v0
sget v1, Lim/tpelyyftgw/messenger/NotificationCenter;->updateMessageMedia:I
invoke-virtual {v0, p0, v1}, Lim/tpelyyftgw/messenger/NotificationCenter;->removeObserver(Ljava/lang/Object;I)V
.line 957
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentAccount:I
invoke-static {v0}, Lim/tpelyyftgw/messenger/NotificationCenter;->getInstance(I)Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v0
sget v1, Lim/tpelyyftgw/messenger/NotificationCenter;->didCreatedNewDeleteTask:I
invoke-virtual {v0, p0, v1}, Lim/tpelyyftgw/messenger/NotificationCenter;->removeObserver(Ljava/lang/Object;I)V
.line 958
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isVisible:Z
.line 959
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentProvider:Lim/tpelyyftgw/ui/PhotoViewer$PhotoViewerProvider;
.line 960
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
if-eqz v1, :cond_30
.line 961
invoke-virtual {v1}, Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;->release()V
.line 962
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
.line 964
:cond_30
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->releasePlayer()V
.line 965
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
if-eqz v1, :cond_58
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
if-eqz v1, :cond_58
.line 967
:try_start_3b
invoke-virtual {v1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;
move-result-object v1
if-eqz v1, :cond_51
.line 968
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
const-string/jumbo v2, "window"
invoke-virtual {v1, v2}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/view/WindowManager;
.line 969
.local v1, "wm":Landroid/view/WindowManager;
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
invoke-interface {v1, v2}, Landroid/view/WindowManager;->removeViewImmediate(Landroid/view/View;)V
.line 971
.end local v1 # "wm":Landroid/view/WindowManager;
:cond_51
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
:try_end_53
.catch Ljava/lang/Exception; {:try_start_3b .. :try_end_53} :catch_54
.line 974
goto :goto_58
.line 972
:catch_54
move-exception v1
.line 973
.local v1, "e":Ljava/lang/Exception;
invoke-static {v1}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 976
.end local v1 # "e":Ljava/lang/Exception;
:cond_58
:goto_58
sput-object v0, Lim/tpelyyftgw/ui/SecretMediaViewer;->Instance:Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 978
return-void
.end method
.method public varargs didReceivedNotification(II[Ljava/lang/Object;)V
.registers 14
.param p1, "id" # I
.param p2, "account" # I
.param p3, "args" # [Ljava/lang/Object;
.line 406
sget v0, Lim/tpelyyftgw/messenger/NotificationCenter;->messagesDeleted:I
const/4 v1, 0x0
const/4 v2, 0x1
if-ne p1, v0, :cond_46
.line 407
const/4 v0, 0x2
aget-object v0, p3, v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
.line 408
.local v0, "scheduled":Z
if-eqz v0, :cond_12
.line 409
return-void
.line 411
:cond_12
iget-object v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
if-nez v3, :cond_17
.line 412
return-void
.line 414
:cond_17
aget-object v3, p3, v2
check-cast v3, Ljava/lang/Integer;
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
move-result v3
.line 415
.local v3, "channelId":I
if-eqz v3, :cond_22
.line 416
return-void
.line 418
:cond_22
aget-object v1, p3, v1
check-cast v1, Ljava/util/ArrayList;
.line 419
.local v1, "markAsDeletedMessages":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/lang/Integer;>;"
iget-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
invoke-virtual {v4}, Lim/tpelyyftgw/messenger/MessageObject;->getId()I
move-result v4
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
invoke-virtual {v1, v4}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_44
.line 420
iget-boolean v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isVideo:Z
if-eqz v4, :cond_41
iget-boolean v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoWatchedOneTime:Z
if-nez v4, :cond_41
.line 421
iput-boolean v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->closeVideoAfterWatch:Z
goto :goto_44
.line 423
:cond_41
invoke-virtual {p0, v2, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer;->closePhoto(ZZ)V
.line 426
.end local v0 # "scheduled":Z
.end local v1 # "markAsDeletedMessages":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/lang/Integer;>;"
.end local v3 # "channelId":I
:cond_44
:goto_44
goto/16 :goto_c9
:cond_46
sget v0, Lim/tpelyyftgw/messenger/NotificationCenter;->didCreatedNewDeleteTask:I
if-ne p1, v0, :cond_a7
.line 427
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
if-eqz v0, :cond_a6
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
if-nez v0, :cond_53
goto :goto_a6
.line 430
:cond_53
aget-object v0, p3, v1
check-cast v0, Landroid/util/SparseArray;
.line 431
.local v0, "mids":Landroid/util/SparseArray;, "Landroid/util/SparseArray<Ljava/util/ArrayList<Ljava/lang/Long;>;>;"
const/4 v1, 0x0
.local v1, "i":I
:goto_58
invoke-virtual {v0}, Landroid/util/SparseArray;->size()I
move-result v2
if-ge v1, v2, :cond_a5
.line 432
invoke-virtual {v0, v1}, Landroid/util/SparseArray;->keyAt(I)I
move-result v2
.line 433
.local v2, "key":I
invoke-virtual {v0, v2}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/util/ArrayList;
.line 434
.local v3, "arr":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/lang/Long;>;"
const/4 v4, 0x0
.local v4, "a":I
:goto_69
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
move-result v5
if-ge v4, v5, :cond_a2
.line 435
invoke-virtual {v3, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/Long;
invoke-virtual {v5}, Ljava/lang/Long;->longValue()J
move-result-wide v5
.line 436
.local v5, "mid":J
if-nez v4, :cond_88
.line 437
const/16 v7, 0x20
shr-long v7, v5, v7
long-to-int v8, v7
.line 438
.local v8, "channelId":I
if-gez v8, :cond_83
.line 439
const/4 v8, 0x0
.line 441
:cond_83
iget v7, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentChannelId:I
if-eq v8, v7, :cond_88
.line 442
return-void
.line 445
.end local v8 # "channelId":I
:cond_88
iget-object v7, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
invoke-virtual {v7}, Lim/tpelyyftgw/messenger/MessageObject;->getId()I
move-result v7
int-to-long v7, v7
cmp-long v9, v7, v5
if-nez v9, :cond_9f
.line 446
iget-object v7, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
iget-object v7, v7, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iput v2, v7, Lim/tpelyyftgw/tgnet/TLRPC$Message;->destroyTime:I
.line 447
iget-object v7, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
invoke-virtual {v7}, Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;->invalidate()V
.line 448
return-void
.line 434
.end local v5 # "mid":J
:cond_9f
add-int/lit8 v4, v4, 0x1
goto :goto_69
.line 431
.end local v2 # "key":I
.end local v3 # "arr":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/lang/Long;>;"
.end local v4 # "a":I
:cond_a2
add-int/lit8 v1, v1, 0x1
goto :goto_58
.end local v0 # "mids":Landroid/util/SparseArray;, "Landroid/util/SparseArray<Ljava/util/ArrayList<Ljava/lang/Long;>;>;"
.end local v1 # "i":I
:cond_a5
goto :goto_c8
.line 428
:cond_a6
:goto_a6
return-void
.line 452
:cond_a7
sget v0, Lim/tpelyyftgw/messenger/NotificationCenter;->updateMessageMedia:I
if-ne p1, v0, :cond_c8
.line 453
aget-object v0, p3, v1
check-cast v0, Lim/tpelyyftgw/tgnet/TLRPC$Message;
.line 454
.local v0, "message":Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
invoke-virtual {v1}, Lim/tpelyyftgw/messenger/MessageObject;->getId()I
move-result v1
iget v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$Message;->id:I
if-ne v1, v3, :cond_c9
.line 455
iget-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isVideo:Z
if-eqz v1, :cond_c4
iget-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoWatchedOneTime:Z
if-nez v1, :cond_c4
.line 456
iput-boolean v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->closeVideoAfterWatch:Z
goto :goto_c9
.line 458
:cond_c4
invoke-virtual {p0, v2, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer;->closePhoto(ZZ)V
goto :goto_c9
.line 452
.end local v0 # "message":Lim/tpelyyftgw/tgnet/TLRPC$Message;
:cond_c8
:goto_c8
nop
.line 462
:cond_c9
:goto_c9
return-void
.end method
.method public getAnimationValue()F
.registers 2
.line 1595
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animationValue:F
return v0
.end method
.method public getCloseTime()J
.registers 3
.line 1160
iget-wide v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->closeTime:J
return-wide v0
.end method
.method public getCurrentMessageObject()Lim/tpelyyftgw/messenger/MessageObject;
.registers 2
.line 1164
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
return-object v0
.end method
.method public getOpenTime()J
.registers 3
.line 1156
iget-wide v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->openTime:J
return-wide v0
.end method
.method public getVideoCrossfadeAlpha()F
.registers 2
.line 1133
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlpha:F
return v0
.end method
.method public isShowingImage(Lim/tpelyyftgw/messenger/MessageObject;)Z
.registers 4
.param p1, "object" # Lim/tpelyyftgw/messenger/MessageObject;
.line 913
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isVisible:Z
if-eqz v0, :cond_1a
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->disableShowCheck:Z
if-nez v0, :cond_1a
if-eqz p1, :cond_1a
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
if-eqz v0, :cond_1a
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/MessageObject;->getId()I
move-result v0
invoke-virtual {p1}, Lim/tpelyyftgw/messenger/MessageObject;->getId()I
move-result v1
if-ne v0, v1, :cond_1a
const/4 v0, 0x1
goto :goto_1b
:cond_1a
const/4 v0, 0x0
:goto_1b
return v0
.end method
.method public isVisible()Z
.registers 2
.line 951
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isVisible:Z
return v0
.end method
.method public synthetic lambda$closePhoto$3$SecretMediaViewer(Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;)V
.registers 6
.param p1, "object" # Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
.line 1252
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
.line 1253
const/4 v1, 0x0
iput v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationInProgress:I
.line 1254
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v3, 0x12
if-lt v2, v3, :cond_11
.line 1255
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v2, v1, v0}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setLayerType(ILandroid/graphics/Paint;)V
.line 1257
:cond_11
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
const/4 v1, 0x4
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setVisibility(I)V
.line 1258
invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->onPhotoClosed(Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;)V
.line 1259
return-void
.end method
.method public synthetic lambda$closePhoto$4$SecretMediaViewer(Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;)V
.registers 5
.param p1, "object" # Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
.line 1293
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
if-nez v0, :cond_5
.line 1294
return-void
.line 1296
:cond_5
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x12
const/4 v2, 0x0
if-lt v0, v1, :cond_12
.line 1297
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
const/4 v1, 0x0
invoke-virtual {v0, v2, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setLayerType(ILandroid/graphics/Paint;)V
.line 1299
:cond_12
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
const/4 v1, 0x4
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setVisibility(I)V
.line 1300
iput v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationInProgress:I
.line 1301
invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->onPhotoClosed(Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;)V
.line 1302
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
const/high16 v1, 0x3f800000 # 1.0f
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setScaleX(F)V
.line 1303
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setScaleY(F)V
.line 1304
return-void
.end method
.method public synthetic lambda$onPhotoClosed$5$SecretMediaViewer()V
.registers 3
.line 1330
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
const/4 v1, 0x0
if-eqz v0, :cond_a
.line 1331
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;->release()V
.line 1332
iput-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
.line 1334
:cond_a
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
check-cast v1, Landroid/graphics/Bitmap;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImageBitmap(Landroid/graphics/Bitmap;)V
.line 1336
:try_start_11
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;
move-result-object v0
if-eqz v0, :cond_29
.line 1337
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
const-string/jumbo v1, "window"
invoke-virtual {v0, v1}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/WindowManager;
.line 1338
.local v0, "wm":Landroid/view/WindowManager;
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
invoke-interface {v0, v1}, Landroid/view/WindowManager;->removeView(Landroid/view/View;)V
:try_end_29
.catch Ljava/lang/Exception; {:try_start_11 .. :try_end_29} :catch_2a
.line 1342
.end local v0 # "wm":Landroid/view/WindowManager;
:cond_29
goto :goto_2e
.line 1340
:catch_2a
move-exception v0
.line 1341
.local v0, "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 1343
.end local v0 # "e":Ljava/lang/Exception;
:goto_2e
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isPhotoVisible:Z
.line 1344
return-void
.end method
.method public synthetic lambda$openMedia$1$SecretMediaViewer()V
.registers 5
.line 879
const/4 v0, 0x0
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationInProgress:I
.line 880
const/4 v1, 0x0
iput-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
.line 881
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
if-nez v2, :cond_b
.line 882
return-void
.line 884
:cond_b
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v3, 0x12
if-lt v2, v3, :cond_16
.line 885
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v2, v0, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setLayerType(ILandroid/graphics/Paint;)V
.line 887
:cond_16
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->invalidate()V
.line 888
return-void
.end method
.method public synthetic lambda$openMedia$2$SecretMediaViewer(Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;)V
.registers 5
.param p1, "object" # Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
.line 906
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->disableShowCheck:Z
.line 907
iget-object v1, p1, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;
const/4 v2, 0x1
invoke-virtual {v1, v0, v2}, Lim/tpelyyftgw/messenger/ImageReceiver;->setVisible(ZZ)V
.line 908
return-void
.end method
.method public synthetic lambda$setParentActivity$0$SecretMediaViewer(Landroid/view/View;Landroid/view/WindowInsets;)Landroid/view/WindowInsets;
.registers 6
.param p1, "v" # Landroid/view/View;
.param p2, "insets" # Landroid/view/WindowInsets;
.line 671
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->lastInsets:Ljava/lang/Object;
check-cast v0, Landroid/view/WindowInsets;
.line 672
.local v0, "oldInsets":Landroid/view/WindowInsets;
iput-object p2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->lastInsets:Ljava/lang/Object;
.line 673
if-eqz v0, :cond_16
invoke-virtual {v0}, Landroid/view/WindowInsets;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {p2}, Landroid/view/WindowInsets;->toString()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_1b
.line 674
:cond_16
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
invoke-virtual {v1}, Landroid/widget/FrameLayout;->requestLayout()V
.line 676
:cond_1b
invoke-virtual {p2}, Landroid/view/WindowInsets;->consumeSystemWindowInsets()Landroid/view/WindowInsets;
move-result-object v1
return-object v1
.end method
.method public onDoubleTap(Landroid/view/MotionEvent;)Z
.registers 10
.param p1, "e" # Landroid/view/MotionEvent;
.line 1644
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
const/4 v1, 0x0
const/high16 v2, 0x3f800000 # 1.0f
const/4 v3, 0x0
cmpl-float v0, v0, v2
if-nez v0, :cond_17
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
cmpl-float v0, v0, v3
if-nez v0, :cond_16
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
cmpl-float v0, v0, v3
if-eqz v0, :cond_17
.line 1645
:cond_16
return v1
.line 1647
:cond_17
iget-wide v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animationStartTime:J
const-wide/16 v6, 0x0
cmp-long v0, v4, v6
if-nez v0, :cond_a1
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationInProgress:I
if-eqz v0, :cond_25
goto/16 :goto_a1
.line 1650
:cond_25
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
const/4 v1, 0x1
cmpl-float v0, v0, v2
if-nez v0, :cond_9b
.line 1651
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v0
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewWidth()I
move-result v2
div-int/lit8 v2, v2, 0x2
int-to-float v2, v2
sub-float/2addr v0, v2
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
move-result v2
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewWidth()I
move-result v3
div-int/lit8 v3, v3, 0x2
int-to-float v3, v3
sub-float/2addr v2, v3
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
sub-float/2addr v2, v3
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
const/high16 v4, 0x40400000 # 3.0f
div-float v3, v4, v3
mul-float v2, v2, v3
sub-float/2addr v0, v2
.line 1652
.local v0, "atx":F
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v2
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewHeight()I
move-result v3
div-int/lit8 v3, v3, 0x2
int-to-float v3, v3
sub-float/2addr v2, v3
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v3
invoke-direct {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->getContainerViewHeight()I
move-result v5
div-int/lit8 v5, v5, 0x2
int-to-float v5, v5
sub-float/2addr v3, v5
iget v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
sub-float/2addr v3, v5
iget v5, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
div-float v5, v4, v5
mul-float v3, v3, v5
sub-float/2addr v2, v3
.line 1653
.local v2, "aty":F
invoke-direct {p0, v4}, Lim/tpelyyftgw/ui/SecretMediaViewer;->updateMinMax(F)V
.line 1654
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
cmpg-float v3, v0, v3
if-gez v3, :cond_7e
.line 1655
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
goto :goto_86
.line 1656
:cond_7e
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
cmpl-float v3, v0, v3
if-lez v3, :cond_86
.line 1657
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
.line 1659
:cond_86
:goto_86
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
cmpg-float v3, v2, v3
if-gez v3, :cond_8f
.line 1660
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
goto :goto_97
.line 1661
:cond_8f
iget v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
cmpl-float v3, v2, v3
if-lez v3, :cond_97
.line 1662
iget v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
.line 1664
:cond_97
:goto_97
invoke-direct {p0, v4, v0, v2, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateTo(FFFZ)V
.line 1665
.end local v0 # "atx":F
.end local v2 # "aty":F
goto :goto_9e
.line 1666
:cond_9b
invoke-direct {p0, v2, v3, v3, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateTo(FFFZ)V
.line 1668
:goto_9e
iput-boolean v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->doubleTap:Z
.line 1669
return v1
.line 1648
:cond_a1
:goto_a1
return v1
.end method
.method public onDoubleTapEvent(Landroid/view/MotionEvent;)Z
.registers 3
.param p1, "e" # Landroid/view/MotionEvent;
.line 1674
const/4 v0, 0x0
return v0
.end method
.method public onDown(Landroid/view/MotionEvent;)Z
.registers 3
.param p1, "e" # Landroid/view/MotionEvent;
.line 1600
const/4 v0, 0x0
return v0
.end method
.method public onFling(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
.registers 15
.param p1, "e1" # Landroid/view/MotionEvent;
.param p2, "e2" # Landroid/view/MotionEvent;
.param p3, "velocityX" # F
.param p4, "velocityY" # F
.line 1625
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
const/high16 v1, 0x3f800000 # 1.0f
cmpl-float v0, v0, v1
if-eqz v0, :cond_37
.line 1626
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/Scroller;->abortAnimation()V
.line 1627
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
invoke-static {v0}, Ljava/lang/Math;->round(F)I
move-result v2
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
invoke-static {v0}, Ljava/lang/Math;->round(F)I
move-result v3
invoke-static {p3}, Ljava/lang/Math;->round(F)I
move-result v4
invoke-static {p4}, Ljava/lang/Math;->round(F)I
move-result v5
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minX:F
float-to-int v6, v0
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxX:F
float-to-int v7, v0
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->minY:F
float-to-int v8, v0
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->maxY:F
float-to-int v9, v0
invoke-virtual/range {v1 .. v9}, Lim/tpelyyftgw/ui/components/Scroller;->fling(IIIIIIII)V
.line 1628
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->postInvalidate()V
.line 1630
:cond_37
const/4 v0, 0x0
return v0
.end method
.method public onLongPress(Landroid/view/MotionEvent;)V
.registers 2
.param p1, "e" # Landroid/view/MotionEvent;
.line 1621
return-void
.end method
.method public onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
.registers 6
.param p1, "e1" # Landroid/view/MotionEvent;
.param p2, "e2" # Landroid/view/MotionEvent;
.param p3, "distanceX" # F
.param p4, "distanceY" # F
.line 1615
const/4 v0, 0x0
return v0
.end method
.method public onShowPress(Landroid/view/MotionEvent;)V
.registers 2
.param p1, "e" # Landroid/view/MotionEvent;
.line 1606
return-void
.end method
.method public onSingleTapConfirmed(Landroid/view/MotionEvent;)Z
.registers 4
.param p1, "e" # Landroid/view/MotionEvent;
.line 1635
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->discardTap:Z
if-eqz v0, :cond_6
.line 1636
const/4 v0, 0x0
return v0
.line 1638
:cond_6
iget-boolean v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->isActionBarVisible:Z
const/4 v1, 0x1
xor-int/2addr v0, v1
invoke-direct {p0, v0, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->toggleActionBar(ZZ)V
.line 1639
return v1
.end method
.method public onSingleTapUp(Landroid/view/MotionEvent;)Z
.registers 3
.param p1, "e" # Landroid/view/MotionEvent;
.line 1610
const/4 v0, 0x0
return v0
.end method
.method public openMedia(Lim/tpelyyftgw/messenger/MessageObject;Lim/tpelyyftgw/ui/PhotoViewer$PhotoViewerProvider;)V
.registers 42
.param p1, "messageObject" # Lim/tpelyyftgw/messenger/MessageObject;
.param p2, "provider" # Lim/tpelyyftgw/ui/PhotoViewer$PhotoViewerProvider;
.line 725
move-object/from16 v1, p0
move-object/from16 v10, p1
move-object/from16 v11, p2
const-string/jumbo v12, "window"
iget-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
if-eqz v0, :cond_415
if-eqz v10, :cond_415
invoke-virtual/range {p1 .. p1}, Lim/tpelyyftgw/messenger/MessageObject;->needDrawBluredPreview()Z
move-result v0
if-eqz v0, :cond_415
if-nez v11, :cond_19
goto/16 :goto_415
.line 728
:cond_19
const/4 v13, 0x0
const/4 v14, 0x1
const/4 v15, 0x0
invoke-interface {v11, v10, v13, v15, v14}, Lim/tpelyyftgw/ui/PhotoViewer$PhotoViewerProvider;->getPlaceForPhoto(Lim/tpelyyftgw/messenger/MessageObject;Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;IZ)Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
move-result-object v9
.line 729
.local v9, "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
if-nez v9, :cond_23
.line 730
return-void
.line 735
:cond_23
iput-object v11, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentProvider:Lim/tpelyyftgw/ui/PhotoViewer$PhotoViewerProvider;
.line 736
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
iput-wide v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->openTime:J
.line 737
const-wide/16 v2, 0x0
iput-wide v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->closeTime:J
.line 738
iput-boolean v14, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->isActionBarVisible:Z
.line 739
iput-boolean v14, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->isPhotoVisible:Z
.line 740
iput-boolean v15, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->draggingDown:Z
.line 741
iget-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->aspectRatioFrameLayout:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
const/4 v8, 0x4
if-eqz v0, :cond_3d
.line 742
invoke-virtual {v0, v8}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->setVisibility(I)V
.line 744
:cond_3d
invoke-direct/range {p0 .. p0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->releasePlayer()V
.line 746
const/4 v0, 0x0
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartDistance:F
.line 747
const/high16 v2, 0x3f800000 # 1.0f
iput v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartScale:F
.line 748
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchCenterX:F
.line 749
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchCenterY:F
.line 750
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartX:F
.line 751
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->pinchStartY:F
.line 752
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->moveStartX:F
.line 753
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->moveStartY:F
.line 754
iput-boolean v15, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->zooming:Z
.line 755
iput-boolean v15, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->moving:Z
.line 756
iput-boolean v15, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->doubleTap:Z
.line 757
iput-boolean v15, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->invalidCoords:Z
.line 758
iput-boolean v14, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->canDragDown:Z
.line 759
iget v3, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
invoke-direct {v1, v3}, Lim/tpelyyftgw/ui/SecretMediaViewer;->updateMinMax(F)V
.line 760
iget-object v3, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoBackgroundDrawable:Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
invoke-virtual {v3, v15}, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->setAlpha(I)V
.line 761
iget-object v3, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v3, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setAlpha(F)V
.line 762
iget-object v3, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v3, v15}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setVisibility(I)V
.line 763
iget-object v3, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
invoke-virtual {v3, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;->setAlpha(F)V
.line 764
iput-boolean v15, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->isVideo:Z
.line 765
iput-boolean v15, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoWatchedOneTime:Z
.line 766
iput-boolean v15, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->closeVideoAfterWatch:Z
.line 767
iput-boolean v14, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->disableShowCheck:Z
.line 768
iget-object v3, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v3, v15}, Lim/tpelyyftgw/messenger/ImageReceiver;->setManualAlphaAnimator(Z)V
.line 770
iget-object v3, v9, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v3}, Lim/tpelyyftgw/messenger/ImageReceiver;->getDrawRegion()Landroid/graphics/RectF;
move-result-object v7
.line 772
.local v7, "drawRegion":Landroid/graphics/RectF;
invoke-virtual {v7}, Landroid/graphics/RectF;->width()F
move-result v16
.line 773
.local v16, "width":F
invoke-virtual {v7}, Landroid/graphics/RectF;->height()F
move-result v6
.line 774
.local v6, "height":F
sget-object v3, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v5, v3, Landroid/graphics/Point;->x:I
.line 775
.local v5, "viewWidth":I
sget-object v3, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v3, v3, Landroid/graphics/Point;->y:I
sget v4, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v8, 0x15
if-lt v4, v8, :cond_a2
sget v4, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
goto :goto_a3
:cond_a2
const/4 v4, 0x0
:goto_a3
add-int/2addr v4, v3
.line 776
.local v4, "viewHeight":I
int-to-float v3, v5
div-float v3, v16, v3
int-to-float v13, v4
div-float v13, v6, v13
invoke-static {v3, v13}, Ljava/lang/Math;->max(FF)F
move-result v3
iput v3, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->scale:F
.line 778
iget v3, v9, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->viewX:I
int-to-float v3, v3
iget v13, v7, Landroid/graphics/RectF;->left:F
add-float/2addr v3, v13
const/high16 v13, 0x40000000 # 2.0f
div-float v18, v16, v13
add-float v3, v3, v18
div-int/lit8 v15, v5, 0x2
int-to-float v15, v15
sub-float/2addr v3, v15
iput v3, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationX:F
.line 779
iget v3, v9, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->viewY:I
int-to-float v3, v3
iget v15, v7, Landroid/graphics/RectF;->top:F
add-float/2addr v3, v15
div-float v13, v6, v13
add-float/2addr v3, v13
div-int/lit8 v13, v4, 0x2
int-to-float v13, v13
sub-float/2addr v3, v13
iput v3, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->translationY:F
.line 780
iget v3, v7, Landroid/graphics/RectF;->left:F
iget-object v13, v9, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v13}, Lim/tpelyyftgw/messenger/ImageReceiver;->getImageX()I
move-result v13
int-to-float v13, v13
sub-float/2addr v3, v13
invoke-static {v3}, Ljava/lang/Math;->abs(F)F
move-result v3
iput v3, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipHorizontal:F
.line 781
iget v3, v7, Landroid/graphics/RectF;->top:F
iget-object v13, v9, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v13}, Lim/tpelyyftgw/messenger/ImageReceiver;->getImageY()I
move-result v13
int-to-float v13, v13
sub-float/2addr v3, v13
invoke-static {v3}, Ljava/lang/Math;->abs(F)F
move-result v3
float-to-int v13, v3
.line 782
.local v13, "clipVertical":I
const/4 v15, 0x2
new-array v3, v15, [I
.line 783
.local v3, "coords2":[I
iget-object v15, v9, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->parentView:Landroid/view/View;
invoke-virtual {v15, v3}, Landroid/view/View;->getLocationInWindow([I)V
.line 784
aget v15, v3, v14
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v2, v8, :cond_100
const/4 v2, 0x0
goto :goto_102
:cond_100
sget v2, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
:goto_102
sub-int/2addr v15, v2
int-to-float v2, v15
iget v15, v9, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->viewY:I
int-to-float v15, v15
iget v8, v7, Landroid/graphics/RectF;->top:F
add-float/2addr v15, v8
sub-float/2addr v2, v15
iget v8, v9, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->clipTopAddition:I
int-to-float v8, v8
add-float/2addr v2, v8
iput v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipTop:F
.line 785
cmpg-float v2, v2, v0
if-gez v2, :cond_117
.line 786
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipTop:F
.line 788
:cond_117
iget v2, v9, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->viewY:I
int-to-float v2, v2
iget v8, v7, Landroid/graphics/RectF;->top:F
add-float/2addr v2, v8
float-to-int v8, v6
int-to-float v8, v8
add-float/2addr v2, v8
aget v8, v3, v14
iget-object v15, v9, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->parentView:Landroid/view/View;
invoke-virtual {v15}, Landroid/view/View;->getHeight()I
move-result v15
add-int/2addr v8, v15
sget v15, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v14, 0x15
if-lt v15, v14, :cond_131
const/4 v14, 0x0
goto :goto_133
:cond_131
sget v14, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
:goto_133
sub-int/2addr v8, v14
int-to-float v8, v8
sub-float/2addr v2, v8
iget v8, v9, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->clipBottomAddition:I
int-to-float v8, v8
add-float/2addr v2, v8
iput v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipBottom:F
.line 789
cmpg-float v2, v2, v0
if-gez v2, :cond_142
.line 790
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipBottom:F
.line 792
:cond_142
iget v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipTop:F
int-to-float v8, v13
invoke-static {v2, v8}, Ljava/lang/Math;->max(FF)F
move-result v2
iput v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipTop:F
.line 793
iget v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipBottom:F
int-to-float v8, v13
invoke-static {v2, v8}, Ljava/lang/Math;->max(FF)F
move-result v2
iput v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->clipBottom:F
.line 796
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v14
iput-wide v14, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->animationStartTime:J
.line 797
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToX:F
.line 798
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToY:F
.line 799
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipBottom:F
.line 800
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipHorizontal:F
.line 801
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToClipTop:F
.line 802
const/high16 v0, 0x3f800000 # 1.0f
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->animateToScale:F
.line 803
const/4 v2, 0x1
iput-boolean v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->zoomAnimation:Z
.line 805
iget v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentAccount:I
invoke-static {v0}, Lim/tpelyyftgw/messenger/NotificationCenter;->getInstance(I)Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v0
sget v2, Lim/tpelyyftgw/messenger/NotificationCenter;->messagesDeleted:I
invoke-virtual {v0, v1, v2}, Lim/tpelyyftgw/messenger/NotificationCenter;->addObserver(Ljava/lang/Object;I)V
.line 806
iget v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentAccount:I
invoke-static {v0}, Lim/tpelyyftgw/messenger/NotificationCenter;->getInstance(I)Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v0
sget v2, Lim/tpelyyftgw/messenger/NotificationCenter;->updateMessageMedia:I
invoke-virtual {v0, v1, v2}, Lim/tpelyyftgw/messenger/NotificationCenter;->addObserver(Ljava/lang/Object;I)V
.line 807
iget v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentAccount:I
invoke-static {v0}, Lim/tpelyyftgw/messenger/NotificationCenter;->getInstance(I)Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v0
sget v2, Lim/tpelyyftgw/messenger/NotificationCenter;->didCreatedNewDeleteTask:I
invoke-virtual {v0, v1, v2}, Lim/tpelyyftgw/messenger/NotificationCenter;->addObserver(Ljava/lang/Object;I)V
.line 808
iget-object v0, v10, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget-object v0, v0, Lim/tpelyyftgw/tgnet/TLRPC$Message;->to_id:Lim/tpelyyftgw/tgnet/TLRPC$Peer;
if-eqz v0, :cond_199
iget-object v0, v10, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget-object v0, v0, Lim/tpelyyftgw/tgnet/TLRPC$Message;->to_id:Lim/tpelyyftgw/tgnet/TLRPC$Peer;
iget v0, v0, Lim/tpelyyftgw/tgnet/TLRPC$Peer;->channel_id:I
goto :goto_19a
:cond_199
const/4 v0, 0x0
:goto_19a
iput v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentChannelId:I
.line 809
const/4 v2, 0x1
const/4 v8, 0x0
invoke-direct {v1, v2, v8}, Lim/tpelyyftgw/ui/SecretMediaViewer;->toggleActionBar(ZZ)V
.line 811
iput-object v10, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentMessageObject:Lim/tpelyyftgw/messenger/MessageObject;
.line 812
invoke-virtual/range {p1 .. p1}, Lim/tpelyyftgw/messenger/MessageObject;->getDocument()Lim/tpelyyftgw/tgnet/TLRPC$Document;
move-result-object v14
.line 813
.local v14, "document":Lim/tpelyyftgw/tgnet/TLRPC$Document;
iget-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
if-eqz v0, :cond_1b1
.line 814
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;->release()V
.line 815
const/4 v2, 0x0
iput-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
.line 817
:cond_1b1
iget-object v0, v9, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/ImageReceiver;->getThumbBitmapSafe()Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
move-result-object v0
iput-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
.line 818
const-wide/16 v19, 0x3e8
if-eqz v14, :cond_2e8
.line 819
invoke-static {v14}, Lim/tpelyyftgw/messenger/MessageObject;->isGifDocument(Lim/tpelyyftgw/tgnet/TLRPC$Document;)Z
move-result v0
if-eqz v0, :cond_21e
.line 820
iget-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
const v2, 0x7f0f052a
const-string v8, "DisappearingGif"
invoke-static {v8, v2}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setTitle(Ljava/lang/CharSequence;)V
.line 821
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-static {v14}, Lim/tpelyyftgw/messenger/ImageLocation;->getForDocument(Lim/tpelyyftgw/tgnet/TLRPC$Document;)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v0
iget-object v15, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
if-eqz v15, :cond_1e5
new-instance v15, Landroid/graphics/drawable/BitmapDrawable;
iget-object v8, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
iget-object v8, v8, Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;->bitmap:Landroid/graphics/Bitmap;
invoke-direct {v15, v8}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V
goto :goto_1e6
:cond_1e5
const/4 v15, 0x0
:goto_1e6
const/4 v8, -0x1
const/16 v22, 0x0
const/16 v23, 0x1
move-object/from16 v24, v3
.end local v3 # "coords2":[I
.local v24, "coords2":[I
move-object v3, v0
move/from16 v21, v4
const/4 v0, 0x0
.end local v4 # "viewHeight":I
.local v21, "viewHeight":I
move-object v4, v0
move/from16 v25, v5
.end local v5 # "viewWidth":I
.local v25, "viewWidth":I
move-object v5, v15
move v15, v6
.end local v6 # "height":F
.local v15, "height":F
move v6, v8
move-object/from16 v26, v7
.end local v7 # "drawRegion":Landroid/graphics/RectF;
.local v26, "drawRegion":Landroid/graphics/RectF;
move-object/from16 v7, v22
const/16 v17, 0x4
move-object/from16 v8, p1
move-object v11, v9
.end local v9 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
.local v11, "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
move/from16 v9, v23
invoke-virtual/range {v2 .. v9}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;ILjava/lang/String;Ljava/lang/Object;I)V
.line 822
iget-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
iget-object v2, v10, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$Message;->destroyTime:I
int-to-long v2, v2
mul-long v28, v2, v19
iget-object v2, v10, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$Message;->ttl:I
int-to-long v2, v2
const/16 v32, 0x0
move-object/from16 v27, v0
move-wide/from16 v30, v2
invoke-static/range {v27 .. v32}, Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;->access$2300(Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;JJZ)V
goto/16 :goto_343
.line 824
.end local v11 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
.end local v15 # "height":F
.end local v21 # "viewHeight":I
.end local v24 # "coords2":[I
.end local v25 # "viewWidth":I
.end local v26 # "drawRegion":Landroid/graphics/RectF;
.restart local v3 # "coords2":[I
.restart local v4 # "viewHeight":I
.restart local v5 # "viewWidth":I
.restart local v6 # "height":F
.restart local v7 # "drawRegion":Landroid/graphics/RectF;
.restart local v9 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
:cond_21e
move-object/from16 v24, v3
move/from16 v21, v4
move/from16 v25, v5
move v15, v6
move-object/from16 v26, v7
move-object v11, v9
const/16 v17, 0x4
.end local v3 # "coords2":[I
.end local v4 # "viewHeight":I
.end local v5 # "viewWidth":I
.end local v6 # "height":F
.end local v7 # "drawRegion":Landroid/graphics/RectF;
.end local v9 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
.restart local v11 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
.restart local v15 # "height":F
.restart local v21 # "viewHeight":I
.restart local v24 # "coords2":[I
.restart local v25 # "viewWidth":I
.restart local v26 # "drawRegion":Landroid/graphics/RectF;
const/4 v2, 0x1
iput v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->playerRetryPlayCount:I
.line 825
iget-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
const v2, 0x7f0f052c
const-string v3, "DisappearingVideo"
invoke-static {v3, v2}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setTitle(Ljava/lang/CharSequence;)V
.line 826
new-instance v0, Ljava/io/File;
iget-object v2, v10, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget-object v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$Message;->attachPath:Ljava/lang/String;
invoke-direct {v0, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 827
.local v0, "f":Ljava/io/File;
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v2
if-eqz v2, :cond_24e
.line 828
invoke-direct {v1, v0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->preparePlayer(Ljava/io/File;)V
goto :goto_278
.line 830
:cond_24e
iget-object v2, v10, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
invoke-static {v2}, Lim/tpelyyftgw/messenger/FileLoader;->getPathToMessage(Lim/tpelyyftgw/tgnet/TLRPC$Message;)Ljava/io/File;
move-result-object v2
.line 831
.local v2, "file":Ljava/io/File;
new-instance v3, Ljava/io/File;
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v5
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v5, ".enc"
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-direct {v3, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 832
.local v3, "encryptedFile":Ljava/io/File;
invoke-virtual {v3}, Ljava/io/File;->exists()Z
move-result v4
if-eqz v4, :cond_275
.line 833
move-object v2, v3
.line 835
:cond_275
invoke-direct {v1, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer;->preparePlayer(Ljava/io/File;)V
.line 837
.end local v2 # "file":Ljava/io/File;
.end local v3 # "encryptedFile":Ljava/io/File;
:goto_278
const/4 v2, 0x1
iput-boolean v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->isVideo:Z
.line 838
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
const/4 v3, 0x0
const/4 v4, 0x0
iget-object v5, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
if-eqz v5, :cond_28d
new-instance v5, Landroid/graphics/drawable/BitmapDrawable;
iget-object v6, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
iget-object v6, v6, Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;->bitmap:Landroid/graphics/Bitmap;
invoke-direct {v5, v6}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V
goto :goto_28e
:cond_28d
const/4 v5, 0x0
:goto_28e
const/4 v6, -0x1
const/4 v7, 0x0
const/4 v9, 0x2
move-object/from16 v8, p1
invoke-virtual/range {v2 .. v9}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;ILjava/lang/String;Ljava/lang/Object;I)V
.line 839
iget-object v2, v10, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$Message;->destroyTime:I
int-to-long v2, v2
mul-long v2, v2, v19
.line 840
.local v2, "destroyTime":J
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
iget v6, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentAccount:I
invoke-static {v6}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getInstance(I)Lim/tpelyyftgw/tgnet/ConnectionsManager;
move-result-object v6
invoke-virtual {v6}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getTimeDifference()I
move-result v6
mul-int/lit16 v6, v6, 0x3e8
int-to-long v6, v6
add-long/2addr v4, v6
.line 841
.local v4, "currentTime":J
sub-long v6, v2, v4
.line 842
.local v6, "timeToDestroy":J
invoke-virtual/range {p1 .. p1}, Lim/tpelyyftgw/messenger/MessageObject;->getDuration()I
move-result v8
mul-int/lit16 v8, v8, 0x3e8
int-to-long v8, v8
.line 843
.local v8, "duration":J
cmp-long v22, v8, v6
if-lez v22, :cond_2cc
.line 844
move-object/from16 v22, v0
.end local v0 # "f":Ljava/io/File;
.local v22, "f":Ljava/io/File;
iget-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
const-wide/16 v28, -0x1
const-wide/16 v30, -0x1
const/16 v32, 0x1
move-object/from16 v27, v0
invoke-static/range {v27 .. v32}, Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;->access$2300(Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;JJZ)V
goto :goto_2e7
.line 846
.end local v22 # "f":Ljava/io/File;
.restart local v0 # "f":Ljava/io/File;
:cond_2cc
move-object/from16 v22, v0
.end local v0 # "f":Ljava/io/File;
.restart local v22 # "f":Ljava/io/File;
iget-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
move-wide/from16 v27, v2
.end local v2 # "destroyTime":J
.local v27, "destroyTime":J
iget-object v2, v10, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$Message;->destroyTime:I
int-to-long v2, v2
mul-long v34, v2, v19
iget-object v2, v10, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget v2, v2, Lim/tpelyyftgw/tgnet/TLRPC$Message;->ttl:I
int-to-long v2, v2
const/16 v38, 0x0
move-object/from16 v33, v0
move-wide/from16 v36, v2
invoke-static/range {v33 .. v38}, Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;->access$2300(Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;JJZ)V
.line 848
.end local v4 # "currentTime":J
.end local v6 # "timeToDestroy":J
.end local v8 # "duration":J
.end local v22 # "f":Ljava/io/File;
.end local v27 # "destroyTime":J
:goto_2e7
goto :goto_343
.line 850
.end local v11 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
.end local v15 # "height":F
.end local v21 # "viewHeight":I
.end local v24 # "coords2":[I
.end local v25 # "viewWidth":I
.end local v26 # "drawRegion":Landroid/graphics/RectF;
.local v3, "coords2":[I
.local v4, "viewHeight":I
.restart local v5 # "viewWidth":I
.local v6, "height":F
.restart local v7 # "drawRegion":Landroid/graphics/RectF;
.restart local v9 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
:cond_2e8
move-object/from16 v24, v3
move/from16 v21, v4
move/from16 v25, v5
move v15, v6
move-object/from16 v26, v7
move-object v11, v9
const/16 v17, 0x4
.end local v3 # "coords2":[I
.end local v4 # "viewHeight":I
.end local v5 # "viewWidth":I
.end local v6 # "height":F
.end local v7 # "drawRegion":Landroid/graphics/RectF;
.end local v9 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
.restart local v11 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
.restart local v15 # "height":F
.restart local v21 # "viewHeight":I
.restart local v24 # "coords2":[I
.restart local v25 # "viewWidth":I
.restart local v26 # "drawRegion":Landroid/graphics/RectF;
iget-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
const v2, 0x7f0f052b
const-string v3, "DisappearingPhoto"
invoke-static {v3, v2}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setTitle(Ljava/lang/CharSequence;)V
.line 851
iget-object v0, v10, Lim/tpelyyftgw/messenger/MessageObject;->photoThumbs:Ljava/util/ArrayList;
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getPhotoSize()I
move-result v2
invoke-static {v0, v2}, Lim/tpelyyftgw/messenger/FileLoader;->getClosestPhotoSizeWithSize(Ljava/util/ArrayList;I)Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
move-result-object v0
.line 852
.local v0, "sizeFull":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
iget-object v3, v10, Lim/tpelyyftgw/messenger/MessageObject;->photoThumbsObject:Lim/tpelyyftgw/tgnet/TLObject;
invoke-static {v0, v3}, Lim/tpelyyftgw/messenger/ImageLocation;->getForObject(Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;Lim/tpelyyftgw/tgnet/TLObject;)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v3
const/4 v4, 0x0
iget-object v5, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
if-eqz v5, :cond_323
new-instance v5, Landroid/graphics/drawable/BitmapDrawable;
iget-object v6, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentThumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;
iget-object v6, v6, Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;->bitmap:Landroid/graphics/Bitmap;
invoke-direct {v5, v6}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V
goto :goto_324
:cond_323
const/4 v5, 0x0
:goto_324
const/4 v6, -0x1
const/4 v7, 0x0
const/4 v9, 0x2
move-object/from16 v8, p1
invoke-virtual/range {v2 .. v9}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;ILjava/lang/String;Ljava/lang/Object;I)V
.line 853
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
iget-object v3, v10, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$Message;->destroyTime:I
int-to-long v3, v3
mul-long v28, v3, v19
iget-object v3, v10, Lim/tpelyyftgw/messenger/MessageObject;->messageOwner:Lim/tpelyyftgw/tgnet/TLRPC$Message;
iget v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$Message;->ttl:I
int-to-long v3, v3
const/16 v32, 0x0
move-object/from16 v27, v2
move-wide/from16 v30, v3
invoke-static/range {v27 .. v32}, Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;->access$2300(Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;JJZ)V
.line 856
.end local v0 # "sizeFull":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
:goto_343
:try_start_343
iget-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;
move-result-object v0
if-eqz v0, :cond_358
.line 857
iget-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
invoke-virtual {v0, v12}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/WindowManager;
.line 858
.local v0, "wm":Landroid/view/WindowManager;
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
invoke-interface {v0, v2}, Landroid/view/WindowManager;->removeView(Landroid/view/View;)V
:try_end_358
.catch Ljava/lang/Exception; {:try_start_343 .. :try_end_358} :catch_359
.line 862
.end local v0 # "wm":Landroid/view/WindowManager;
:cond_358
goto :goto_35d
.line 860
:catch_359
move-exception v0
.line 861
.local v0, "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 864
.end local v0 # "e":Ljava/lang/Exception;
:goto_35d
iget-object v0, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
invoke-virtual {v0, v12}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/WindowManager;
.line 865
.local v0, "wm":Landroid/view/WindowManager;
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
iget-object v3, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-interface {v0, v2, v3}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 866
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;->invalidate()V
.line 867
const/4 v2, 0x1
iput-boolean v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->isVisible:Z
.line 869
new-instance v2, Landroid/animation/AnimatorSet;
invoke-direct {v2}, Landroid/animation/AnimatorSet;-><init>()V
iput-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
.line 870
const/4 v3, 0x5
new-array v3, v3, [Landroid/animation/Animator;
iget-object v4, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
const/4 v5, 0x2
new-array v6, v5, [F
fill-array-data v6, :array_416
.line 871
const-string v7, "alpha"
invoke-static {v4, v7, v6}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v4
const/4 v6, 0x0
aput-object v4, v3, v6
iget-object v4, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
new-array v6, v5, [F
fill-array-data v6, :array_41e
.line 872
invoke-static {v4, v7, v6}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v4
const/4 v6, 0x1
aput-object v4, v3, v6
iget-object v4, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoBackgroundDrawable:Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
new-array v6, v5, [I
fill-array-data v6, :array_426
.line 873
invoke-static {v4, v7, v6}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;
move-result-object v4
aput-object v4, v3, v5
iget-object v4, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
new-array v6, v5, [F
fill-array-data v6, :array_42e
.line 874
invoke-static {v4, v7, v6}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v4
const/4 v6, 0x3
aput-object v4, v3, v6
new-array v4, v5, [F
fill-array-data v4, :array_436
.line 875
const-string v5, "animationValue"
invoke-static {v1, v5, v4}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v4
aput-object v4, v3, v17
.line 870
invoke-virtual {v2, v3}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
.line 877
iput v6, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationInProgress:I
.line 878
new-instance v2, Lim/tpelyyftgw/ui/-$$Lambda$SecretMediaViewer$wDLF_GymtiFAS8i5Bcwp6MJRrIQ;
invoke-direct {v2, v1}, Lim/tpelyyftgw/ui/-$$Lambda$SecretMediaViewer$wDLF_GymtiFAS8i5Bcwp6MJRrIQ;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;)V
iput-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoAnimationEndRunnable:Ljava/lang/Runnable;
.line 889
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
const-wide/16 v3, 0xfa
invoke-virtual {v2, v3, v4}, Landroid/animation/AnimatorSet;->setDuration(J)Landroid/animation/AnimatorSet;
.line 890
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
new-instance v3, Lim/tpelyyftgw/ui/SecretMediaViewer$5;
invoke-direct {v3, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer$5;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;)V
invoke-virtual {v2, v3}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 899
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
iput-wide v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoTransitionAnimationStartTime:J
.line 900
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v3, 0x12
if-lt v2, v3, :cond_3f5
.line 901
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
const/4 v3, 0x0
const/4 v4, 0x2
invoke-virtual {v2, v4, v3}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setLayerType(ILandroid/graphics/Paint;)V
.line 903
:cond_3f5
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
new-instance v3, Landroid/view/animation/DecelerateInterpolator;
invoke-direct {v3}, Landroid/view/animation/DecelerateInterpolator;-><init>()V
invoke-virtual {v2, v3}, Landroid/animation/AnimatorSet;->setInterpolator(Landroid/animation/TimeInterpolator;)V
.line 904
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoBackgroundDrawable:Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
const/4 v3, 0x0
invoke-static {v2, v3}, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->access$2502(Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;I)I
.line 905
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoBackgroundDrawable:Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
new-instance v3, Lim/tpelyyftgw/ui/-$$Lambda$SecretMediaViewer$znJ8kbt8eRWs42SlaZ7GF026v_s;
invoke-direct {v3, v1, v11}, Lim/tpelyyftgw/ui/-$$Lambda$SecretMediaViewer$znJ8kbt8eRWs42SlaZ7GF026v_s;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;)V
invoke-static {v2, v3}, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->access$2602(Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;Ljava/lang/Runnable;)Ljava/lang/Runnable;
.line 909
iget-object v2, v1, Lim/tpelyyftgw/ui/SecretMediaViewer;->imageMoveAnimation:Landroid/animation/AnimatorSet;
invoke-virtual {v2}, Landroid/animation/AnimatorSet;->start()V
.line 910
return-void
.line 726
.end local v0 # "wm":Landroid/view/WindowManager;
.end local v11 # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
.end local v13 # "clipVertical":I
.end local v14 # "document":Lim/tpelyyftgw/tgnet/TLRPC$Document;
.end local v15 # "height":F
.end local v16 # "width":F
.end local v21 # "viewHeight":I
.end local v24 # "coords2":[I
.end local v25 # "viewWidth":I
.end local v26 # "drawRegion":Landroid/graphics/RectF;
:cond_415
:goto_415
return-void
:array_416
.array-data 4
0x0
0x3f800000 # 1.0f
.end array-data
:array_41e
.array-data 4
0x0
0x3f800000 # 1.0f
.end array-data
:array_426
.array-data 4
0x0
0xff
.end array-data
:array_42e
.array-data 4
0x0
0x3f800000 # 1.0f
.end array-data
:array_436
.array-data 4
0x0
0x3f800000 # 1.0f
.end array-data
.end method
.method public setAnimationValue(F)V
.registers 3
.param p1, "value" # F
.line 1589
iput p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->animationValue:F
.line 1590
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->invalidate()V
.line 1591
return-void
.end method
.method public setParentActivity(Landroid/app/Activity;)V
.registers 15
.param p1, "activity" # Landroid/app/Activity;
.line 593
sget v0, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->currentAccount:I
.line 594
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v1, v0}, Lim/tpelyyftgw/messenger/ImageReceiver;->setCurrentAccount(I)V
.line 595
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
if-ne v0, p1, :cond_e
.line 596
return-void
.line 598
:cond_e
iput-object p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->parentActivity:Landroid/app/Activity;
.line 600
new-instance v0, Lim/tpelyyftgw/ui/components/Scroller;
invoke-direct {v0, p1}, Lim/tpelyyftgw/ui/components/Scroller;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->scroller:Lim/tpelyyftgw/ui/components/Scroller;
.line 602
new-instance v0, Lim/tpelyyftgw/ui/SecretMediaViewer$2;
invoke-direct {v0, p0, p1}, Lim/tpelyyftgw/ui/SecretMediaViewer$2;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;Landroid/content/Context;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
.line 647
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->photoBackgroundDrawable:Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 648
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setFocusable(Z)V
.line 649
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setFocusableInTouchMode(Z)V
.line 651
new-instance v0, Lim/tpelyyftgw/ui/SecretMediaViewer$3;
invoke-direct {v0, p0, p1}, Lim/tpelyyftgw/ui/SecretMediaViewer$3;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;Landroid/content/Context;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
.line 661
const/4 v2, 0x0
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setFocusable(Z)V
.line 662
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowView:Landroid/widget/FrameLayout;
iget-object v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v0, v3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
.line 663
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
.line 664
.local v0, "layoutParams":Landroid/widget/FrameLayout$LayoutParams;
const/4 v3, -0x1
iput v3, v0, Landroid/widget/FrameLayout$LayoutParams;->width:I
.line 665
iput v3, v0, Landroid/widget/FrameLayout$LayoutParams;->height:I
.line 666
const/16 v4, 0x33
iput v4, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 667
iget-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v4, v0}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 668
sget v4, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v5, 0x15
if-lt v4, v5, :cond_72
.line 669
iget-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v4, v1}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setFitsSystemWindows(Z)V
.line 670
iget-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
new-instance v6, Lim/tpelyyftgw/ui/-$$Lambda$SecretMediaViewer$ICW_fPyfG3bq8_yU8NWmQl1Ojno;
invoke-direct {v6, p0}, Lim/tpelyyftgw/ui/-$$Lambda$SecretMediaViewer$ICW_fPyfG3bq8_yU8NWmQl1Ojno;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;)V
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setOnApplyWindowInsetsListener(Landroid/view/View$OnApplyWindowInsetsListener;)V
.line 678
iget-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
const/16 v6, 0x500
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->setSystemUiVisibility(I)V
.line 681
:cond_72
new-instance v4, Landroid/view/GestureDetector;
iget-object v6, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v6}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->getContext()Landroid/content/Context;
move-result-object v6
invoke-direct {v4, v6, p0}, Landroid/view/GestureDetector;-><init>(Landroid/content/Context;Landroid/view/GestureDetector$OnGestureListener;)V
iput-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->gestureDetector:Landroid/view/GestureDetector;
.line 682
invoke-virtual {v4, p0}, Landroid/view/GestureDetector;->setOnDoubleTapListener(Landroid/view/GestureDetector$OnDoubleTapListener;)V
.line 684
new-instance v4, Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-direct {v4, p1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;-><init>(Landroid/content/Context;)V
iput-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
.line 685
invoke-virtual {v4, v3}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setTitleColor(I)V
.line 686
iget-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-virtual {v4, v3}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setSubtitleColor(I)V
.line 687
iget-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
const/high16 v6, 0x7f000000
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setBackgroundColor(I)V
.line 688
iget-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
sget v6, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v6, v5, :cond_a0
const/4 v6, 0x1
goto :goto_a1
:cond_a0
const/4 v6, 0x0
:goto_a1
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setOccupyStatusBar(Z)V
.line 689
iget-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
const v6, 0x40ffffff # 7.9999995f
invoke-virtual {v4, v6, v2}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setItemsBackgroundColor(IZ)V
.line 690
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
const v4, 0x7f0d0073
invoke-virtual {v2, v4}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setBackButtonImage(I)V
.line 691
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
const/high16 v4, 0x428c0000 # 70.0f
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
invoke-virtual {v2, v4}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setTitleRightMargin(I)V
.line 692
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
iget-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
const/high16 v6, -0x40000000 # -2.0f
invoke-static {v3, v6}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(IF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v6
invoke-virtual {v2, v4, v6}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 693
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
new-instance v4, Lim/tpelyyftgw/ui/SecretMediaViewer$4;
invoke-direct {v4, p0}, Lim/tpelyyftgw/ui/SecretMediaViewer$4;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;)V
invoke-virtual {v2, v4}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setActionBarMenuOnItemClick(Lim/tpelyyftgw/ui/actionbar/ActionBar$ActionBarMenuOnItemClick;)V
.line 702
new-instance v2, Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
invoke-direct {v2, p0, p1}, Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;-><init>(Lim/tpelyyftgw/ui/SecretMediaViewer;Landroid/content/Context;)V
iput-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->secretDeleteTimer:Lim/tpelyyftgw/ui/SecretMediaViewer$SecretDeleteTimer;
.line 703
iget-object v4, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
const/high16 v6, 0x42ee0000 # 119.0f
const/high16 v7, 0x42400000 # 48.0f
const/16 v8, 0x35
const/4 v9, 0x0
const/4 v10, 0x0
const/4 v11, 0x0
const/4 v12, 0x0
invoke-static/range {v6 .. v12}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v6
invoke-virtual {v4, v2, v6}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 705
new-instance v2, Landroid/view/WindowManager$LayoutParams;
invoke-direct {v2}, Landroid/view/WindowManager$LayoutParams;-><init>()V
iput-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
.line 706
iput v3, v2, Landroid/view/WindowManager$LayoutParams;->height:I
.line 707
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
const/4 v4, -0x3
iput v4, v2, Landroid/view/WindowManager$LayoutParams;->format:I
.line 708
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
iput v3, v2, Landroid/view/WindowManager$LayoutParams;->width:I
.line 709
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
const/16 v3, 0x30
iput v3, v2, Landroid/view/WindowManager$LayoutParams;->gravity:I
.line 710
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
const/16 v3, 0x63
iput v3, v2, Landroid/view/WindowManager$LayoutParams;->type:I
.line 711
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v2, v5, :cond_11a
.line 712
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
const v3, -0x7ffefef8
iput v3, v2, Landroid/view/WindowManager$LayoutParams;->flags:I
goto :goto_120
.line 717
:cond_11a
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
const/16 v3, 0x8
iput v3, v2, Landroid/view/WindowManager$LayoutParams;->flags:I
.line 719
:goto_120
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
iget v3, v2, Landroid/view/WindowManager$LayoutParams;->flags:I
or-int/lit16 v3, v3, 0x2000
iput v3, v2, Landroid/view/WindowManager$LayoutParams;->flags:I
.line 720
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
iget-object v3, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v2, v3}, Lim/tpelyyftgw/messenger/ImageReceiver;->setParentView(Landroid/view/View;)V
.line 721
iget-object v2, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->centerImage:Lim/tpelyyftgw/messenger/ImageReceiver;
invoke-virtual {v2, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setForceCrossfade(Z)V
.line 722
return-void
.end method
.method public setVideoCrossfadeAlpha(F)V
.registers 3
.param p1, "value" # F
.line 1138
iput p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->videoCrossfadeAlpha:F
.line 1139
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer;->containerView:Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/SecretMediaViewer$FrameLayoutDrawer;->invalidate()V
.line 1140
return-void
.end method