EmojiViewV2$15.smali

.class Lim/tpelyyftgw/ui/components/EmojiViewV2$15;
.super Lim/tpelyyftgw/ui/components/RecyclerListView;
.source "EmojiViewV2.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/EmojiViewV2;-><init>(ZZLandroid/content/Context;ZLim/tpelyyftgw/tgnet/TLRPC$ChatFull;)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/EmojiViewV2;


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

    return-void
.end method

.method constructor <init>(Lim/tpelyyftgw/ui/components/EmojiViewV2;Landroid/content/Context;)V
    .registers 3
    .param p1, "this$0"    # Lim/tpelyyftgw/ui/components/EmojiViewV2;
    .param p2, "context"    # Landroid/content/Context;

    .line 1325
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$15;->this$0:Lim/tpelyyftgw/ui/components/EmojiViewV2;

    invoke-direct {p0, p2}, Lim/tpelyyftgw/ui/components/RecyclerListView;-><init>(Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 6
    .param p1, "event"    # Landroid/view/MotionEvent;

    .line 1331
    invoke-static {}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->getInstance()Lim/tpelyyftgw/ui/ContentPreviewViewer;

    move-result-object v0

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

    invoke-static {v1}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$5700(Lim/tpelyyftgw/ui/components/EmojiViewV2;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v1

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$15;->this$0:Lim/tpelyyftgw/ui/components/EmojiViewV2;

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->getMeasuredHeight()I

    move-result v2

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

    invoke-static {v3}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$5100(Lim/tpelyyftgw/ui/components/EmojiViewV2;)Lim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;

    move-result-object v3

    invoke-virtual {v0, p1, v1, v2, v3}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->onInterceptTouchEvent(Landroid/view/MotionEvent;Lim/tpelyyftgw/ui/components/RecyclerListView;ILim/tpelyyftgw/ui/ContentPreviewViewer$ContentPreviewViewerDelegate;)Z

    move-result v0

    .line 1332
    .local v0, "result":Z
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v1

    if-nez v1, :cond_25

    if-eqz v0, :cond_23

    goto :goto_25

    :cond_23
    const/4 v1, 0x0

    goto :goto_26

    :cond_25
    :goto_25
    const/4 v1, 0x1

    :goto_26
    return v1
.end method

.method protected onLayout(ZIIII)V
    .registers 9
    .param p1, "changed"    # Z
    .param p2, "l"    # I
    .param p3, "t"    # I
    .param p4, "r"    # I
    .param p5, "b"    # I

    .line 1346
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$15;->this$0:Lim/tpelyyftgw/ui/components/EmojiViewV2;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$5800(Lim/tpelyyftgw/ui/components/EmojiViewV2;)Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_28

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$15;->this$0:Lim/tpelyyftgw/ui/components/EmojiViewV2;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$5900(Lim/tpelyyftgw/ui/components/EmojiViewV2;)Lim/tpelyyftgw/ui/components/EmojiViewV2$StickersGridAdapter;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2$StickersGridAdapter;->getItemCount()I

    move-result v0

    if-lez v0, :cond_28

    .line 1347
    iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$15;->ignoreLayout:Z

    .line 1348
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$15;->this$0:Lim/tpelyyftgw/ui/components/EmojiViewV2;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$6000(Lim/tpelyyftgw/ui/components/EmojiViewV2;)Landroidx/recyclerview/widget/GridLayoutManager;

    move-result-object v0

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroidx/recyclerview/widget/GridLayoutManager;->scrollToPositionWithOffset(II)V

    .line 1349
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$15;->this$0:Lim/tpelyyftgw/ui/components/EmojiViewV2;

    invoke-static {v0, v2}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$5802(Lim/tpelyyftgw/ui/components/EmojiViewV2;Z)Z

    .line 1350
    iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$15;->ignoreLayout:Z

    .line 1352
    :cond_28
    invoke-super/range {p0 .. p5}, Lim/tpelyyftgw/ui/components/RecyclerListView;->onLayout(ZIIII)V

    .line 1353
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$15;->this$0:Lim/tpelyyftgw/ui/components/EmojiViewV2;

    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$6100(Lim/tpelyyftgw/ui/components/EmojiViewV2;Z)V

    .line 1354
    return-void
.end method

.method public requestLayout()V
    .registers 2

    .line 1358
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$15;->ignoreLayout:Z

    if-eqz v0, :cond_5

    .line 1359
    return-void

    .line 1361
    :cond_5
    invoke-super {p0}, Lim/tpelyyftgw/ui/components/RecyclerListView;->requestLayout()V

    .line 1362
    return-void
.end method

.method public setVisibility(I)V
    .registers 3
    .param p1, "visibility"    # I

    .line 1337
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$15;->this$0:Lim/tpelyyftgw/ui/components/EmojiViewV2;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$1000(Lim/tpelyyftgw/ui/components/EmojiViewV2;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v0

    if-eqz v0, :cond_1a

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$15;->this$0:Lim/tpelyyftgw/ui/components/EmojiViewV2;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$1000(Lim/tpelyyftgw/ui/components/EmojiViewV2;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v0

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

    move-result v0

    if-nez v0, :cond_1a

    .line 1338
    const/16 v0, 0x8

    invoke-super {p0, v0}, Lim/tpelyyftgw/ui/components/RecyclerListView;->setVisibility(I)V

    .line 1339
    return-void

    .line 1341
    :cond_1a
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->setVisibility(I)V

    .line 1342
    return-void
.end method