SegmentTabLayout$1.smali

.class Lcom/tablayout/SegmentTabLayout$1;
.super Ljava/lang/Object;
.source "SegmentTabLayout.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/tablayout/SegmentTabLayout;->addTab(ILandroid/view/View;)V
.end annotation

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


# instance fields
.field final synthetic this$0:Lcom/tablayout/SegmentTabLayout;


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

    return-void
.end method

.method constructor <init>(Lcom/tablayout/SegmentTabLayout;)V
    .registers 2
    .param p1, "this$0"    # Lcom/tablayout/SegmentTabLayout;

    .line 202
    iput-object p1, p0, Lcom/tablayout/SegmentTabLayout$1;->this$0:Lcom/tablayout/SegmentTabLayout;

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

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 4
    .param p1, "v"    # Landroid/view/View;

    .line 205
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    .line 206
    .local v0, "position":I
    iget-object v1, p0, Lcom/tablayout/SegmentTabLayout$1;->this$0:Lcom/tablayout/SegmentTabLayout;

    # getter for: Lcom/tablayout/SegmentTabLayout;->mCurrentTab:I
    invoke-static {v1}, Lcom/tablayout/SegmentTabLayout;->access$000(Lcom/tablayout/SegmentTabLayout;)I

    move-result v1

    if-eq v1, v0, :cond_29

    .line 207
    iget-object v1, p0, Lcom/tablayout/SegmentTabLayout$1;->this$0:Lcom/tablayout/SegmentTabLayout;

    invoke-virtual {v1, v0}, Lcom/tablayout/SegmentTabLayout;->setCurrentTab(I)V

    .line 208
    iget-object v1, p0, Lcom/tablayout/SegmentTabLayout$1;->this$0:Lcom/tablayout/SegmentTabLayout;

    # getter for: Lcom/tablayout/SegmentTabLayout;->mListener:Lcom/tablayout/listener/OnTabSelectListener;
    invoke-static {v1}, Lcom/tablayout/SegmentTabLayout;->access$100(Lcom/tablayout/SegmentTabLayout;)Lcom/tablayout/listener/OnTabSelectListener;

    move-result-object v1

    if-eqz v1, :cond_3a

    .line 209
    iget-object v1, p0, Lcom/tablayout/SegmentTabLayout$1;->this$0:Lcom/tablayout/SegmentTabLayout;

    # getter for: Lcom/tablayout/SegmentTabLayout;->mListener:Lcom/tablayout/listener/OnTabSelectListener;
    invoke-static {v1}, Lcom/tablayout/SegmentTabLayout;->access$100(Lcom/tablayout/SegmentTabLayout;)Lcom/tablayout/listener/OnTabSelectListener;

    move-result-object v1

    invoke-interface {v1, v0}, Lcom/tablayout/listener/OnTabSelectListener;->onTabSelect(I)V

    goto :goto_3a

    .line 212
    :cond_29
    iget-object v1, p0, Lcom/tablayout/SegmentTabLayout$1;->this$0:Lcom/tablayout/SegmentTabLayout;

    # getter for: Lcom/tablayout/SegmentTabLayout;->mListener:Lcom/tablayout/listener/OnTabSelectListener;
    invoke-static {v1}, Lcom/tablayout/SegmentTabLayout;->access$100(Lcom/tablayout/SegmentTabLayout;)Lcom/tablayout/listener/OnTabSelectListener;

    move-result-object v1

    if-eqz v1, :cond_3a

    .line 213
    iget-object v1, p0, Lcom/tablayout/SegmentTabLayout$1;->this$0:Lcom/tablayout/SegmentTabLayout;

    # getter for: Lcom/tablayout/SegmentTabLayout;->mListener:Lcom/tablayout/listener/OnTabSelectListener;
    invoke-static {v1}, Lcom/tablayout/SegmentTabLayout;->access$100(Lcom/tablayout/SegmentTabLayout;)Lcom/tablayout/listener/OnTabSelectListener;

    move-result-object v1

    invoke-interface {v1, v0}, Lcom/tablayout/listener/OnTabSelectListener;->onTabReselect(I)V

    .line 216
    :cond_3a
    :goto_3a
    return-void
.end method