KPSwitchFSPanelFrameLayout.smali

.class public Lcn/dreamtobe/kpswitch/widget/KPSwitchFSPanelFrameLayout;
.super Landroid/widget/FrameLayout;
.source "KPSwitchFSPanelFrameLayout.java"

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


# instance fields
.field private panelHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchFSPanelLayoutHandler;


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

    return-void
.end method

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

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

    .line 51
    invoke-direct {p0}, Lcn/dreamtobe/kpswitch/widget/KPSwitchFSPanelFrameLayout;->init()V

    .line 52
    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 55
    invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 56
    invoke-direct {p0}, Lcn/dreamtobe/kpswitch/widget/KPSwitchFSPanelFrameLayout;->init()V

    .line 57
    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/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 61
    invoke-direct {p0}, Lcn/dreamtobe/kpswitch/widget/KPSwitchFSPanelFrameLayout;->init()V

    .line 62
    return-void
.end method

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

    .line 67
    invoke-direct {p0, p1, p2, p3, p4}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V

    .line 68
    return-void
.end method

.method private init()V
    .registers 2

    .line 71
    new-instance v0, Lcn/dreamtobe/kpswitch/handler/KPSwitchFSPanelLayoutHandler;

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

    iput-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchFSPanelFrameLayout;->panelHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchFSPanelLayoutHandler;

    .line 72
    return-void
.end method


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

    .line 81
    iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchFSPanelFrameLayout;->panelHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchFSPanelLayoutHandler;

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

    .line 82
    return-void
.end method

.method public recordKeyboardStatus(Landroid/view/Window;)V
    .registers 3
    .param p1, "window"    # Landroid/view/Window;

    .line 87
    iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchFSPanelFrameLayout;->panelHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchFSPanelLayoutHandler;

    invoke-virtual {v0, p1}, Lcn/dreamtobe/kpswitch/handler/KPSwitchFSPanelLayoutHandler;->recordKeyboardStatus(Landroid/view/Window;)V

    .line 88
    return-void
.end method

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

    .line 76
    invoke-static {p0, p1}, Lcn/dreamtobe/kpswitch/util/ViewUtil;->refreshHeight(Landroid/view/View;I)Z

    .line 77
    return-void
.end method