PipRoundVideoView$2.smali
.class Lim/tpelyyftgw/ui/components/PipRoundVideoView$2;
.super Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
.source "PipRoundVideoView.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/components/PipRoundVideoView;->show(Landroid/app/Activity;Ljava/lang/Runnable;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lim/tpelyyftgw/ui/components/PipRoundVideoView;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/components/PipRoundVideoView;Landroid/content/Context;)V
.registers 3
.param p1, "this$0" # Lim/tpelyyftgw/ui/components/PipRoundVideoView;
.param p2, "context" # Landroid/content/Context;
.line 182
iput-object p1, p0, Lim/tpelyyftgw/ui/components/PipRoundVideoView$2;->this$0:Lim/tpelyyftgw/ui/components/PipRoundVideoView;
invoke-direct {p0, p2}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;-><init>(Landroid/content/Context;)V
return-void
.end method
# virtual methods
.method protected drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
.registers 14
.param p1, "canvas" # Landroid/graphics/Canvas;
.param p2, "child" # Landroid/view/View;
.param p3, "drawingTime" # J
.line 185
invoke-super {p0, p1, p2, p3, p4}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
move-result v0
.line 186
.local v0, "result":Z
iget-object v1, p0, Lim/tpelyyftgw/ui/components/PipRoundVideoView$2;->this$0:Lim/tpelyyftgw/ui/components/PipRoundVideoView;
# getter for: Lim/tpelyyftgw/ui/components/PipRoundVideoView;->textureView:Landroid/view/TextureView;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/PipRoundVideoView;->access$500(Lim/tpelyyftgw/ui/components/PipRoundVideoView;)Landroid/view/TextureView;
move-result-object v1
if-ne p2, v1, :cond_52
.line 187
invoke-static {}, Lim/tpelyyftgw/messenger/MediaController;->getInstance()Lim/tpelyyftgw/messenger/MediaController;
move-result-object v1
invoke-virtual {v1}, Lim/tpelyyftgw/messenger/MediaController;->getPlayingMessageObject()Lim/tpelyyftgw/messenger/MessageObject;
move-result-object v1
.line 188
.local v1, "currentMessageObject":Lim/tpelyyftgw/messenger/MessageObject;
if-eqz v1, :cond_52
.line 189
iget-object v2, p0, Lim/tpelyyftgw/ui/components/PipRoundVideoView$2;->this$0:Lim/tpelyyftgw/ui/components/PipRoundVideoView;
# getter for: Lim/tpelyyftgw/ui/components/PipRoundVideoView;->rect:Landroid/graphics/RectF;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/PipRoundVideoView;->access$600(Lim/tpelyyftgw/ui/components/PipRoundVideoView;)Landroid/graphics/RectF;
move-result-object v2
const/high16 v3, 0x3fc00000 # 1.5f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dpf2(F)F
move-result v4
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dpf2(F)F
move-result v5
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PipRoundVideoView$2;->getMeasuredWidth()I
move-result v6
int-to-float v6, v6
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dpf2(F)F
move-result v7
sub-float/2addr v6, v7
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/PipRoundVideoView$2;->getMeasuredHeight()I
move-result v7
int-to-float v7, v7
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dpf2(F)F
move-result v3
sub-float/2addr v7, v3
invoke-virtual {v2, v4, v5, v6, v7}, Landroid/graphics/RectF;->set(FFFF)V
.line 190
iget-object v2, p0, Lim/tpelyyftgw/ui/components/PipRoundVideoView$2;->this$0:Lim/tpelyyftgw/ui/components/PipRoundVideoView;
# getter for: Lim/tpelyyftgw/ui/components/PipRoundVideoView;->rect:Landroid/graphics/RectF;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/PipRoundVideoView;->access$600(Lim/tpelyyftgw/ui/components/PipRoundVideoView;)Landroid/graphics/RectF;
move-result-object v4
const/high16 v5, -0x3d4c0000 # -90.0f
const/high16 v2, 0x43b40000 # 360.0f
iget v3, v1, Lim/tpelyyftgw/messenger/MessageObject;->audioProgress:F
mul-float v6, v3, v2
const/4 v7, 0x0
sget-object v8, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_radialProgressPaint:Landroid/graphics/Paint;
move-object v3, p1
invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V
.line 193
.end local v1 # "currentMessageObject":Lim/tpelyyftgw/messenger/MessageObject;
:cond_52
return v0
.end method