KPSwitchPanelLinearLayout.smali

.class public Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;
.super Landroid/widget/LinearLayout;
.source "KPSwitchPanelLinearLayout.java"

# interfaces
.implements Lcn/dreamtobe/kpswitch/IPanelHeightTarget;
.implements Lcn/dreamtobe/kpswitch/IPanelConflictLayout;


# instance fields
.field private panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;


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

    return-void
.end method

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

    .line 49
    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 50
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;->init(Landroid/util/AttributeSet;)V

    .line 51
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .line 54
    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 55
    invoke-direct {p0, p2}, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;->init(Landroid/util/AttributeSet;)V

    .line 56
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyleAttr"    # I

    .line 60
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 61
    invoke-direct {p0, p2}, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;->init(Landroid/util/AttributeSet;)V

    .line 62
    return-void
.end method

.method private init(Landroid/util/AttributeSet;)V
    .registers 3
    .param p1, "attrs"    # Landroid/util/AttributeSet;

    .line 65
    new-instance v0, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;

    invoke-direct {v0, p0, p1}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;-><init>(Landroid/view/View;Landroid/util/AttributeSet;)V

    iput-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;

    .line 66
    return-void
.end method


# virtual methods
.method public handleHide()V
    .registers 2

    .line 113
    iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;

    invoke-virtual {v0}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->handleHide()V

    .line 114
    return-void
.end method

.method public handleShow()V
    .registers 2

    .line 107
    const/4 v0, 0x0

    invoke-super {p0, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 108
    return-void
.end method

.method public isKeyboardShowing()Z
    .registers 2

    .line 80
    iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;

    invoke-virtual {v0}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->isKeyboardShowing()Z

    move-result v0

    return v0
.end method

.method public isVisible()Z
    .registers 2

    .line 101
    iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;

    invoke-virtual {v0}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->isVisible()Z

    move-result v0

    return v0
.end method

.method public onKeyboardShowing(Z)V
    .registers 3
    .param p1, "showing"    # Z

    .line 75
    iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;

    invoke-virtual {v0, p1}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->setIsKeyboardShowing(Z)V

    .line 76
    return-void
.end method

.method protected onMeasure(II)V
    .registers 6
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .line 93
    iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;

    invoke-virtual {v0, p1, p2}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->processOnMeasure(II)[I

    move-result-object v0

    .line 96
    .local v0, "processedMeasureWHSpec":[I
    const/4 v1, 0x0

    aget v1, v0, v1

    const/4 v2, 0x1

    aget v2, v0, v2

    invoke-super {p0, v1, v2}, Landroid/widget/LinearLayout;->onMeasure(II)V

    .line 97
    return-void
.end method

.method public refreshHeight(I)V
    .registers 3
    .param p1, "panelHeight"    # I

    .line 70
    iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;

    invoke-virtual {v0, p1}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->resetToRecommendPanelHeight(I)V

    .line 71
    return-void
.end method

.method public setIgnoreRecommendHeight(Z)V
    .registers 3
    .param p1, "isIgnoreRecommendHeight"    # Z

    .line 118
    iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;

    invoke-virtual {v0, p1}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->setIgnoreRecommendHeight(Z)V

    .line 119
    return-void
.end method

.method public setVisibility(I)V
    .registers 3
    .param p1, "visibility"    # I

    .line 85
    iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelLinearLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;

    invoke-virtual {v0, p1}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->filterSetVisibility(I)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 86
    return-void

    .line 88
    :cond_9
    invoke-super {p0, p1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 89
    return-void
.end method