SharedLinkCell$CheckForLongPress.smali

.class Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;
.super Ljava/lang/Object;
.source "SharedLinkCell.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lim/tpelyyftgw/ui/cells/SharedLinkCell;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "CheckForLongPress"
.end annotation


# instance fields
.field public currentPressCount:I

.field final synthetic this$0:Lim/tpelyyftgw/ui/cells/SharedLinkCell;


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

    return-void
.end method

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

    .line 64
    iput-object p1, p0, Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;->this$0:Lim/tpelyyftgw/ui/cells/SharedLinkCell;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 11

    .line 68
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;->this$0:Lim/tpelyyftgw/ui/cells/SharedLinkCell;

    # getter for: Lim/tpelyyftgw/ui/cells/SharedLinkCell;->checkingForLongPress:Z
    invoke-static {v0}, Lim/tpelyyftgw/ui/cells/SharedLinkCell;->access$200(Lim/tpelyyftgw/ui/cells/SharedLinkCell;)Z

    move-result v0

    if-eqz v0, :cond_5a

    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;->this$0:Lim/tpelyyftgw/ui/cells/SharedLinkCell;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/SharedLinkCell;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eqz v0, :cond_5a

    iget v0, p0, Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;->currentPressCount:I

    iget-object v1, p0, Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;->this$0:Lim/tpelyyftgw/ui/cells/SharedLinkCell;

    # getter for: Lim/tpelyyftgw/ui/cells/SharedLinkCell;->pressCount:I
    invoke-static {v1}, Lim/tpelyyftgw/ui/cells/SharedLinkCell;->access$100(Lim/tpelyyftgw/ui/cells/SharedLinkCell;)I

    move-result v1

    if-ne v0, v1, :cond_5a

    .line 69
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;->this$0:Lim/tpelyyftgw/ui/cells/SharedLinkCell;

    const/4 v1, 0x0

    # setter for: Lim/tpelyyftgw/ui/cells/SharedLinkCell;->checkingForLongPress:Z
    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/cells/SharedLinkCell;->access$202(Lim/tpelyyftgw/ui/cells/SharedLinkCell;Z)Z

    .line 70
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;->this$0:Lim/tpelyyftgw/ui/cells/SharedLinkCell;

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/cells/SharedLinkCell;->performHapticFeedback(I)Z

    .line 71
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;->this$0:Lim/tpelyyftgw/ui/cells/SharedLinkCell;

    # getter for: Lim/tpelyyftgw/ui/cells/SharedLinkCell;->pressedLink:I
    invoke-static {v0}, Lim/tpelyyftgw/ui/cells/SharedLinkCell;->access$300(Lim/tpelyyftgw/ui/cells/SharedLinkCell;)I

    move-result v0

    if-ltz v0, :cond_46

    .line 72
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;->this$0:Lim/tpelyyftgw/ui/cells/SharedLinkCell;

    # getter for: Lim/tpelyyftgw/ui/cells/SharedLinkCell;->delegate:Lim/tpelyyftgw/ui/cells/SharedLinkCell$SharedLinkCellDelegate;
    invoke-static {v0}, Lim/tpelyyftgw/ui/cells/SharedLinkCell;->access$400(Lim/tpelyyftgw/ui/cells/SharedLinkCell;)Lim/tpelyyftgw/ui/cells/SharedLinkCell$SharedLinkCellDelegate;

    move-result-object v0

    iget-object v1, p0, Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;->this$0:Lim/tpelyyftgw/ui/cells/SharedLinkCell;

    iget-object v1, v1, Lim/tpelyyftgw/ui/cells/SharedLinkCell;->links:Ljava/util/ArrayList;

    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;->this$0:Lim/tpelyyftgw/ui/cells/SharedLinkCell;

    # getter for: Lim/tpelyyftgw/ui/cells/SharedLinkCell;->pressedLink:I
    invoke-static {v2}, Lim/tpelyyftgw/ui/cells/SharedLinkCell;->access$300(Lim/tpelyyftgw/ui/cells/SharedLinkCell;)I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-interface {v0, v1}, Lim/tpelyyftgw/ui/cells/SharedLinkCell$SharedLinkCellDelegate;->onLinkLongPress(Ljava/lang/String;)V

    .line 74
    :cond_46
    const-wide/16 v2, 0x0

    const-wide/16 v4, 0x0

    const/4 v6, 0x3

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    invoke-static/range {v2 .. v9}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;

    move-result-object v0

    .line 75
    .local v0, "event":Landroid/view/MotionEvent;
    iget-object v1, p0, Lim/tpelyyftgw/ui/cells/SharedLinkCell$CheckForLongPress;->this$0:Lim/tpelyyftgw/ui/cells/SharedLinkCell;

    invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/cells/SharedLinkCell;->onTouchEvent(Landroid/view/MotionEvent;)Z

    .line 76
    invoke-virtual {v0}, Landroid/view/MotionEvent;->recycle()V

    .line 78
    .end local v0    # "event":Landroid/view/MotionEvent;
    :cond_5a
    return-void
.end method