SubSkillFragment$3.smali

.class Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment$3;
.super Landroid/support/v7/widget/GridLayoutManager$SpanSizeLookup;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment;->resetGridLayoutManager()V
.end annotation

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


# instance fields
.field final synthetic this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment;


# direct methods
.method constructor <init>(Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment;)V
    .registers 2

    iput-object p1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment$3;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment;

    invoke-direct {p0}, Landroid/support/v7/widget/GridLayoutManager$SpanSizeLookup;-><init>()V

    return-void
.end method


# virtual methods
.method public getSpanSize(I)I
    .registers 5

    const/4 v0, 0x2

    if-nez p1, :cond_4

    :cond_3
    :goto_3
    return v0

    :cond_4
    iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment$3;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment;

    # getter for: Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment;->mSkillAdapter:Lcom/cmcm/xiaobao/phone/smarthome/adapter/NewSkillAdapter;
    invoke-static {v1}, Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment;->access$000(Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment;)Lcom/cmcm/xiaobao/phone/smarthome/adapter/NewSkillAdapter;

    move-result-object v1

    add-int/lit8 v2, p1, -0x1

    invoke-virtual {v1, v2}, Lcom/cmcm/xiaobao/phone/smarthome/adapter/NewSkillAdapter;->getItemViewType(I)I

    move-result v1

    rem-int/lit8 v1, v1, 0x2

    if-nez v1, :cond_3

    const/4 v0, 0x1

    goto :goto_3
.end method