EmojiView$10.smali

.class Lim/tpelyyftgw/ui/components/EmojiView$10;
.super Lim/tpelyyftgw/ui/components/RecyclerListView;
.source "EmojiView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/EmojiView;-><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/EmojiView;


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

    return-void
.end method

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

    .line 1142
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/EmojiView$10;->this$0:Lim/tpelyyftgw/ui/components/EmojiView;

    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 1148
    invoke-static {}, Lim/tpelyyftgw/ui/ContentPreviewViewer;->getInstance()Lim/tpelyyftgw/ui/ContentPreviewViewer;

    move-result-object v0

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

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

    move-result-object v1

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

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/EmojiView;->access$5100(Lim/tpelyyftgw/ui/components/EmojiView;)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 1149
    .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 1154
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiView$10;->this$0:Lim/tpelyyftgw/ui/components/EmojiView;

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

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_28

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

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

    move-result-object v0

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

    move-result v0

    if-le v0, v1, :cond_28

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

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

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiView;->access$5300(Lim/tpelyyftgw/ui/components/EmojiView;)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 1157
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiView$10;->this$0:Lim/tpelyyftgw/ui/components/EmojiView;

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

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

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

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

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

    .line 1162
    return-void
.end method

.method public requestLayout()V
    .registers 2

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

    if-eqz v0, :cond_5

    .line 1167
    return-void

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

    .line 1170
    return-void
.end method