EmojiViewV2$10.smali

.class Lim/tpelyyftgw/ui/components/EmojiViewV2$10;
.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 private 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 1155
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$10;->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 1161
    invoke-static {}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->getInstance()Lim/tpelyyftgw/ui/ContentPreviewViewer;

    move-result-object v0

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

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

    move-result-object v1

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

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

    move-result-object v2

    const/4 v3, 0x0

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

    move-result v0

    .line 1162
    .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_1d

    if-eqz v0, :cond_1e

    :cond_1d
    const/4 v3, 0x1

    :cond_1e
    return v3
.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 1167
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$10;->this$0:Lim/tpelyyftgw/ui/components/EmojiViewV2;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$5200(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$10;->this$0:Lim/tpelyyftgw/ui/components/EmojiViewV2;

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

    move-result-object v0

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

    move-result v0

    if-le v0, v1, :cond_28

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

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

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

    move-result-object v0

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lim/tpelyyftgw/ui/components/ExtendedGridLayoutManager;->scrollToPositionWithOffset(II)V

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

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

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

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

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

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

    .line 1175
    return-void
.end method

.method public requestLayout()V
    .registers 2

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

    if-eqz v0, :cond_5

    .line 1180
    return-void

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

    .line 1183
    return-void
.end method