ChatAttachAlert$7.smali

.class Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;
.super Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;
.source "ChatAttachAlert.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/ChatAttachAlert;-><init>(Landroid/content/Context;Lim/tpelyyftgw/ui/actionbar/BaseFragment;)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/ChatAttachAlert;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method constructor <init>(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)V
    .registers 2
    .param p1, "this$0"    # Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    .line 1073
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onScrollStateChanged(Landroidx/recyclerview/widget/RecyclerView;I)V
    .registers 11
    .param p1, "recyclerView"    # Landroidx/recyclerview/widget/RecyclerView;
    .param p2, "newState"    # I

    .line 1085
    if-nez p2, :cond_7b

    .line 1086
    const/high16 v0, 0x41500000    # 13.0f

    invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v0

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->selectedMenuItem:Lim/tpelyyftgw/ui/actionbar/ActionBarMenuItem;
    invoke-static {v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$2500(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/ActionBarMenuItem;

    move-result-object v1

    const/4 v2, 0x0

    if-eqz v1, :cond_24

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->selectedMenuItem:Lim/tpelyyftgw/ui/actionbar/ActionBarMenuItem;
    invoke-static {v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$2500(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/ActionBarMenuItem;

    move-result-object v1

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/ActionBarMenuItem;->getAlpha()F

    move-result v1

    const/high16 v3, 0x41d00000    # 26.0f

    mul-float v1, v1, v3

    invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v1

    goto :goto_25

    :cond_24
    const/4 v1, 0x0

    :goto_25
    add-int/2addr v0, v1

    .line 1087
    .local v0, "offset":I
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->scrollOffsetY:I
    invoke-static {v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$1800(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)I

    move-result v1

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->backgroundPaddingTop:I
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$6600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)I

    move-result v3

    sub-int/2addr v1, v3

    sub-int/2addr v1, v0

    .line 1088
    .local v1, "top":I
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->backgroundPaddingTop:I
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$6700(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)I

    move-result v3

    add-int/2addr v3, v1

    invoke-static {}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->getCurrentActionBarHeight()I

    move-result v4

    if-ge v3, v4, :cond_7b

    .line 1089
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->gridView:Lim/tpelyyftgw/ui/components/RecyclerListView;
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$500(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)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 1090
    .local v3, "child":Landroid/view/View;
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->gridView:Lim/tpelyyftgw/ui/components/RecyclerListView;
    invoke-static {v4}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$500(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v4

    invoke-virtual {v4, v2}, Lim/tpelyyftgw/ui/components/RecyclerListView;->findViewHolderForAdapterPosition(I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;

    move-result-object v4

    check-cast v4, Lim/tpelyyftgw/ui/components/RecyclerListView$Holder;

    .line 1091
    .local v4, "holder":Lim/tpelyyftgw/ui/components/RecyclerListView$Holder;
    if-eqz v4, :cond_7b

    iget-object v5, v4, Lim/tpelyyftgw/ui/components/RecyclerListView$Holder;->itemView:Landroid/view/View;

    invoke-virtual {v5}, Landroid/view/View;->getTop()I

    move-result v5

    const/high16 v6, 0x40e00000    # 7.0f

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v7

    if-le v5, v7, :cond_7b

    .line 1092
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->gridView:Lim/tpelyyftgw/ui/components/RecyclerListView;
    invoke-static {v5}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$500(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v5

    iget-object v7, v4, Lim/tpelyyftgw/ui/components/RecyclerListView$Holder;->itemView:Landroid/view/View;

    invoke-virtual {v7}, Landroid/view/View;->getTop()I

    move-result v7

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    sub-int/2addr v7, v6

    invoke-virtual {v5, v2, v7}, Lim/tpelyyftgw/ui/components/RecyclerListView;->smoothScrollBy(II)V

    .line 1096
    .end local v0    # "offset":I
    .end local v1    # "top":I
    .end local v3    # "child":Landroid/view/View;
    .end local v4    # "holder":Lim/tpelyyftgw/ui/components/RecyclerListView$Holder;
    :cond_7b
    return-void
.end method

.method public onScrolled(Landroidx/recyclerview/widget/RecyclerView;II)V
    .registers 6
    .param p1, "recyclerView"    # Landroidx/recyclerview/widget/RecyclerView;
    .param p2, "dx"    # I
    .param p3, "dy"    # I

    .line 1076
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->gridView:Lim/tpelyyftgw/ui/components/RecyclerListView;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$500(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getChildCount()I

    move-result v0

    if-gtz v0, :cond_d

    .line 1077
    return-void

    .line 1079
    :cond_d
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    const/4 v1, 0x1

    # invokes: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->updateLayout(Z)V
    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$3700(Lim/tpelyyftgw/ui/components/ChatAttachAlert;Z)V

    .line 1080
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$7;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # invokes: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->checkCameraViewPosition()V
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$3800(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)V

    .line 1081
    return-void
.end method