SubSkillFragment$1.smali
.class Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment$1;
.super Landroid/support/v7/widget/GridLayoutManager$SpanSizeLookup;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment;->initView()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$1;->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 3
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment$1;->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 {v0}, Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment;->access$000(Lcom/cmcm/xiaobao/phone/smarthome/SubSkillFragment;)Lcom/cmcm/xiaobao/phone/smarthome/adapter/NewSkillAdapter;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/adapter/NewSkillAdapter;->getItemViewType(I)I
move-result v0
rem-int/lit8 v0, v0, 0x2
if-nez v0, :cond_10
const/4 v0, 0x1
:goto_f
return v0
:cond_10
const/4 v0, 0x2
goto :goto_f
.end method