BaseCell.smali

.class public abstract Lim/tpelyyftgw/ui/cells/BaseCell;
.super Landroid/view/ViewGroup;
.source "BaseCell.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lim/tpelyyftgw/ui/cells/BaseCell$CheckForLongPress;,
        Lim/tpelyyftgw/ui/cells/BaseCell$CheckForTap;
    }
.end annotation


# instance fields
.field private checkingForLongPress:Z

.field private pendingCheckForLongPress:Lim/tpelyyftgw/ui/cells/BaseCell$CheckForLongPress;

.field private pendingCheckForTap:Lim/tpelyyftgw/ui/cells/BaseCell$CheckForTap;

.field private pressCount:I


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

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;

    .line 43
    invoke-direct {p0, p1}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;)V

    .line 37
    const/4 v0, 0x0

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->checkingForLongPress:Z

    .line 38
    const/4 v1, 0x0

    iput-object v1, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pendingCheckForLongPress:Lim/tpelyyftgw/ui/cells/BaseCell$CheckForLongPress;

    .line 39
    iput v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pressCount:I

    .line 40
    iput-object v1, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pendingCheckForTap:Lim/tpelyyftgw/ui/cells/BaseCell$CheckForTap;

    .line 44
    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/cells/BaseCell;->setWillNotDraw(Z)V

    .line 45
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/cells/BaseCell;->setFocusable(Z)V

    .line 46
    return-void
.end method

.method static synthetic access$000(Lim/tpelyyftgw/ui/cells/BaseCell;)Lim/tpelyyftgw/ui/cells/BaseCell$CheckForLongPress;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/cells/BaseCell;

    .line 10
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pendingCheckForLongPress:Lim/tpelyyftgw/ui/cells/BaseCell$CheckForLongPress;

    return-object v0
.end method

.method static synthetic access$002(Lim/tpelyyftgw/ui/cells/BaseCell;Lim/tpelyyftgw/ui/cells/BaseCell$CheckForLongPress;)Lim/tpelyyftgw/ui/cells/BaseCell$CheckForLongPress;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/cells/BaseCell;
    .param p1, "x1"    # Lim/tpelyyftgw/ui/cells/BaseCell$CheckForLongPress;

    .line 10
    iput-object p1, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pendingCheckForLongPress:Lim/tpelyyftgw/ui/cells/BaseCell$CheckForLongPress;

    return-object p1
.end method

.method static synthetic access$100(Lim/tpelyyftgw/ui/cells/BaseCell;)I
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/cells/BaseCell;

    .line 10
    iget v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pressCount:I

    return v0
.end method

.method static synthetic access$104(Lim/tpelyyftgw/ui/cells/BaseCell;)I
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/cells/BaseCell;

    .line 10
    iget v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pressCount:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pressCount:I

    return v0
.end method

.method static synthetic access$200(Lim/tpelyyftgw/ui/cells/BaseCell;)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/cells/BaseCell;

    .line 10
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->checkingForLongPress:Z

    return v0
.end method

.method static synthetic access$202(Lim/tpelyyftgw/ui/cells/BaseCell;Z)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/cells/BaseCell;
    .param p1, "x1"    # Z

    .line 10
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->checkingForLongPress:Z

    return p1
.end method

.method public static setDrawableBounds(Landroid/graphics/drawable/Drawable;FF)V
    .registers 7
    .param p0, "drawable"    # Landroid/graphics/drawable/Drawable;
    .param p1, "x"    # F
    .param p2, "y"    # F

    .line 53
    float-to-int v0, p1

    float-to-int v1, p2

    invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v2

    invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v3

    invoke-static {p0, v0, v1, v2, v3}, Lim/tpelyyftgw/ui/cells/BaseCell;->setDrawableBounds(Landroid/graphics/drawable/Drawable;IIII)V

    .line 54
    return-void
.end method

.method public static setDrawableBounds(Landroid/graphics/drawable/Drawable;II)V
    .registers 5
    .param p0, "drawable"    # Landroid/graphics/drawable/Drawable;
    .param p1, "x"    # I
    .param p2, "y"    # I

    .line 49
    invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v0

    invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v1

    invoke-static {p0, p1, p2, v0, v1}, Lim/tpelyyftgw/ui/cells/BaseCell;->setDrawableBounds(Landroid/graphics/drawable/Drawable;IIII)V

    .line 50
    return-void
.end method

.method public static setDrawableBounds(Landroid/graphics/drawable/Drawable;IIII)V
    .registers 7
    .param p0, "drawable"    # Landroid/graphics/drawable/Drawable;
    .param p1, "x"    # I
    .param p2, "y"    # I
    .param p3, "w"    # I
    .param p4, "h"    # I

    .line 57
    if-eqz p0, :cond_9

    .line 58
    add-int v0, p1, p3

    add-int v1, p2, p4

    invoke-virtual {p0, p1, p2, v0, v1}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 60
    :cond_9
    return-void
.end method


# virtual methods
.method protected cancelCheckLongPress()V
    .registers 2

    .line 74
    const/4 v0, 0x0

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->checkingForLongPress:Z

    .line 75
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pendingCheckForLongPress:Lim/tpelyyftgw/ui/cells/BaseCell$CheckForLongPress;

    if-eqz v0, :cond_a

    .line 76
    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/cells/BaseCell;->removeCallbacks(Ljava/lang/Runnable;)Z

    .line 78
    :cond_a
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pendingCheckForTap:Lim/tpelyyftgw/ui/cells/BaseCell$CheckForTap;

    if-eqz v0, :cond_11

    .line 79
    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/cells/BaseCell;->removeCallbacks(Ljava/lang/Runnable;)Z

    .line 81
    :cond_11
    return-void
.end method

.method public hasOverlappingRendering()Z
    .registers 2

    .line 85
    const/4 v0, 0x0

    return v0
.end method

.method protected onLongPress()V
    .registers 1

    .line 90
    return-void
.end method

.method protected startCheckLongPress()V
    .registers 4

    .line 63
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->checkingForLongPress:Z

    if-eqz v0, :cond_5

    .line 64
    return-void

    .line 66
    :cond_5
    const/4 v0, 0x1

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->checkingForLongPress:Z

    .line 67
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pendingCheckForTap:Lim/tpelyyftgw/ui/cells/BaseCell$CheckForTap;

    if-nez v0, :cond_14

    .line 68
    new-instance v0, Lim/tpelyyftgw/ui/cells/BaseCell$CheckForTap;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lim/tpelyyftgw/ui/cells/BaseCell$CheckForTap;-><init>(Lim/tpelyyftgw/ui/cells/BaseCell;Lim/tpelyyftgw/ui/cells/BaseCell$1;)V

    iput-object v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pendingCheckForTap:Lim/tpelyyftgw/ui/cells/BaseCell$CheckForTap;

    .line 70
    :cond_14
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/BaseCell;->pendingCheckForTap:Lim/tpelyyftgw/ui/cells/BaseCell$CheckForTap;

    invoke-static {}, Landroid/view/ViewConfiguration;->getTapTimeout()I

    move-result v1

    int-to-long v1, v1

    invoke-virtual {p0, v0, v1, v2}, Lim/tpelyyftgw/ui/cells/BaseCell;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 71
    return-void
.end method