AudioPlayerAlert$7.smali
.class Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;
.super Lim/tpelyyftgw/ui/components/RecyclerListView;
.source "AudioPlayerAlert.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/components/AudioPlayerAlert;-><init>(Landroid/content/Context;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field ignoreLayout:Z
.field final synthetic this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;Landroid/content/Context;)V
.registers 3
.param p1, "this$0" # Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
.param p2, "context" # Landroid/content/Context;
.line 578
iput-object p1, p0, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-direct {p0, p2}, Lim/tpelyyftgw/ui/components/RecyclerListView;-><init>(Landroid/content/Context;)V
return-void
.end method
# virtual methods
.method protected allowSelectChildAtPosition(FF)Z
.registers 5
.param p1, "x" # F
.param p2, "y" # F
.line 636
iget-object v0, p0, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$1000(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Landroid/widget/FrameLayout;
move-result-object v0
if-eqz v0, :cond_25
iget-object v0, p0, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$1000(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Landroid/widget/FrameLayout;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getY()F
move-result v0
iget-object v1, p0, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$1000(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Landroid/widget/FrameLayout;
move-result-object v1
invoke-virtual {v1}, Landroid/widget/FrameLayout;->getMeasuredHeight()I
move-result v1
int-to-float v1, v1
add-float/2addr v0, v1
cmpl-float v0, p2, v0
if-lez v0, :cond_23
goto :goto_25
:cond_23
const/4 v0, 0x0
goto :goto_26
:cond_25
:goto_25
const/4 v0, 0x1
:goto_26
return v0
.end method
.method public drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
.registers 9
.param p1, "canvas" # Landroid/graphics/Canvas;
.param p2, "child" # Landroid/view/View;
.param p3, "drawingTime" # J
.line 641
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
.line 642
iget-object v0, p0, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$1300(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Lim/tpelyyftgw/ui/actionbar/ActionBar;
move-result-object v0
const/4 v1, 0x0
if-eqz v0, :cond_17
iget-object v0, p0, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$1300(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Lim/tpelyyftgw/ui/actionbar/ActionBar;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->getMeasuredHeight()I
move-result v0
goto :goto_18
:cond_17
const/4 v0, 0x0
:goto_18
const/high16 v2, 0x42480000 # 50.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
add-int/2addr v0, v2
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->getMeasuredWidth()I
move-result v2
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->getMeasuredHeight()I
move-result v3
invoke-virtual {p1, v1, v0, v2, v3}, Landroid/graphics/Canvas;->clipRect(IIII)Z
.line 643
invoke-super {p0, p1, p2, p3, p4}, Lim/tpelyyftgw/ui/components/RecyclerListView;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
move-result v0
.line 644
.local v0, "result":Z
invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V
.line 645
return v0
.end method
.method protected onLayout(ZIIII)V
.registers 18
.param p1, "changed" # Z
.param p2, "l" # I
.param p3, "t" # I
.param p4, "r" # I
.param p5, "b" # I
.line 584
move-object v6, p0
invoke-super/range {p0 .. p5}, Lim/tpelyyftgw/ui/components/RecyclerListView;->onLayout(ZIIII)V
.line 586
iget-object v0, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$2400(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)I
move-result v0
const/4 v7, -0x1
const/4 v1, 0x1
const/4 v8, 0x0
if-eq v0, v7, :cond_46
iget-object v0, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$1300(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Lim/tpelyyftgw/ui/actionbar/ActionBar;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->isSearchFieldVisible()Z
move-result v0
if-nez v0, :cond_46
.line 587
iput-boolean v1, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->ignoreLayout:Z
.line 588
iget-object v0, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$2500(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Landroidx/recyclerview/widget/LinearLayoutManager;
move-result-object v0
iget-object v1, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$2400(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)I
move-result v1
iget-object v2, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$2600(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)I
move-result v2
invoke-virtual {v0, v1, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollToPositionWithOffset(II)V
.line 589
const/4 v1, 0x0
move-object v0, p0
move v2, p2
move v3, p3
move/from16 v4, p4
move/from16 v5, p5
invoke-super/range {v0 .. v5}, Lim/tpelyyftgw/ui/components/RecyclerListView;->onLayout(ZIIII)V
.line 590
iput-boolean v8, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->ignoreLayout:Z
.line 591
iget-object v0, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0, v7}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$2402(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;I)I
goto/16 :goto_d2
.line 592
:cond_46
iget-object v0, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$3200(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Z
move-result v0
if-eqz v0, :cond_d2
.line 593
iget-object v0, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0, v8}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$3202(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;Z)Z
.line 594
const/4 v0, 0x0
.line 595
.local v0, "found":Z
invoke-static {}, Lim/tpelyyftgw/messenger/MediaController;->getInstance()Lim/tpelyyftgw/messenger/MediaController;
move-result-object v2
invoke-virtual {v2}, Lim/tpelyyftgw/messenger/MediaController;->getPlayingMessageObject()Lim/tpelyyftgw/messenger/MessageObject;
move-result-object v7
.line 596
.local v7, "playingMessageObject":Lim/tpelyyftgw/messenger/MessageObject;
if-eqz v7, :cond_d2
.line 597
iget-object v2, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$500(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v2
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getChildCount()I
move-result v9
.line 598
.local v9, "count":I
const/4 v2, 0x0
.local v2, "a":I
:goto_69
if-ge v2, v9, :cond_92
.line 599
iget-object v3, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v3}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$500(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v3
invoke-virtual {v3, v2}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getChildAt(I)Landroid/view/View;
move-result-object v3
.line 600
.local v3, "child":Landroid/view/View;
instance-of v4, v3, Lim/tpelyyftgw/ui/cells/AudioPlayerCell;
if-eqz v4, :cond_8f
.line 601
move-object v4, v3
check-cast v4, Lim/tpelyyftgw/ui/cells/AudioPlayerCell;
invoke-virtual {v4}, Lim/tpelyyftgw/ui/cells/AudioPlayerCell;->getMessageObject()Lim/tpelyyftgw/messenger/MessageObject;
move-result-object v4
if-ne v4, v7, :cond_8f
.line 602
invoke-virtual {v3}, Landroid/view/View;->getBottom()I
move-result v4
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->getMeasuredHeight()I
move-result v5
if-gt v4, v5, :cond_92
.line 603
const/4 v0, 0x1
move v10, v0
goto :goto_93
.line 598
.end local v3 # "child":Landroid/view/View;
:cond_8f
add-int/lit8 v2, v2, 0x1
goto :goto_69
.line 609
.end local v2 # "a":I
:cond_92
move v10, v0
.end local v0 # "found":Z
.local v10, "found":Z
:goto_93
if-nez v10, :cond_d2
.line 610
iget-object v0, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$200(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Ljava/util/ArrayList;
move-result-object v0
invoke-virtual {v0, v7}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I
move-result v11
.line 611
.local v11, "idx":I
if-ltz v11, :cond_d2
.line 612
iput-boolean v1, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->ignoreLayout:Z
.line 613
sget-boolean v0, Lim/tpelyyftgw/messenger/SharedConfig;->playOrderReversed:Z
if-eqz v0, :cond_b1
.line 614
iget-object v0, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$2500(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Landroidx/recyclerview/widget/LinearLayoutManager;
move-result-object v0
invoke-virtual {v0, v11}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollToPosition(I)V
goto :goto_c5
.line 616
:cond_b1
iget-object v0, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$2500(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Landroidx/recyclerview/widget/LinearLayoutManager;
move-result-object v0
iget-object v1, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->this$0:Lim/tpelyyftgw/ui/components/AudioPlayerAlert;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/AudioPlayerAlert;->access$200(Lim/tpelyyftgw/ui/components/AudioPlayerAlert;)Ljava/util/ArrayList;
move-result-object v1
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
sub-int/2addr v1, v11
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollToPosition(I)V
.line 618
:goto_c5
const/4 v1, 0x0
move-object v0, p0
move v2, p2
move v3, p3
move/from16 v4, p4
move/from16 v5, p5
invoke-super/range {v0 .. v5}, Lim/tpelyyftgw/ui/components/RecyclerListView;->onLayout(ZIIII)V
.line 619
iput-boolean v8, v6, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->ignoreLayout:Z
.line 624
.end local v7 # "playingMessageObject":Lim/tpelyyftgw/messenger/MessageObject;
.end local v9 # "count":I
.end local v10 # "found":Z
.end local v11 # "idx":I
:cond_d2
:goto_d2
return-void
.end method
.method public requestLayout()V
.registers 2
.line 628
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/AudioPlayerAlert$7;->ignoreLayout:Z
if-eqz v0, :cond_5
.line 629
return-void
.line 631
:cond_5
invoke-super {p0}, Lim/tpelyyftgw/ui/components/RecyclerListView;->requestLayout()V
.line 632
return-void
.end method