.class public abstract Lcom/moji/fancycoverflow/FancyCoverFlowAdapter;
.super Landroid/widget/BaseAdapter;
.source "FancyCoverFlowAdapter.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 25
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    return-void
.end method


# virtual methods
.method public abstract a(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end method

.method public final getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 1

    if-eqz p2, :cond_0

    .line 37
    instance-of v0, p2, Lcom/moji/fancycoverflow/FancyCoverFlowItemWrapper;

    if-eqz v0, :cond_0

    .line 38
    check-cast p2, Lcom/moji/fancycoverflow/FancyCoverFlowItemWrapper;

    const/4 v0, 0x0

    .line 39
    invoke-virtual {p2, v0}, Lcom/moji/fancycoverflow/FancyCoverFlowItemWrapper;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    .line 40
    invoke-virtual {p2}, Lcom/moji/fancycoverflow/FancyCoverFlowItemWrapper;->removeAllViews()V

    goto :goto_0

    .line 42
    :cond_0
    new-instance p2, Lcom/moji/fancycoverflow/FancyCoverFlowItemWrapper;

    invoke-virtual {p3}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p2, v0}, Lcom/moji/fancycoverflow/FancyCoverFlowItemWrapper;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    .line 45
    :goto_0
    invoke-virtual {p0, p1, v0, p3}, Lcom/moji/fancycoverflow/FancyCoverFlowAdapter;->a(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 51
    invoke-virtual {p2, p1}, Lcom/moji/fancycoverflow/FancyCoverFlowItemWrapper;->addView(Landroid/view/View;)V

    .line 52
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    invoke-virtual {p2, p1}, Lcom/moji/fancycoverflow/FancyCoverFlowItemWrapper;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    return-object p2

    .line 48
    :cond_1
    new-instance p1, Ljava/lang/NullPointerException;

    const-string p2, "getCoverFlowItem() was expected to return a view, but null was returned."

    invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw p1
.end method
