b.smali

.class public final Lcom/reactnativecommunity/picker/b;
.super Landroidx/appcompat/widget/AppCompatSpinner;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/reactnativecommunity/picker/b$c;
    }
.end annotation


# instance fields
.field public a:I

.field public b:Ljava/lang/Integer;

.field public c:Lcom/reactnativecommunity/picker/b$c;

.field public d:Ljava/lang/Integer;

.field public final e:Lcom/reactnativecommunity/picker/b$a;

.field public final f:Lcom/reactnativecommunity/picker/b$b;


# direct methods
.method public constructor <init>(Landroid/content/Context;I)V
    .registers 3

    .line 1
    invoke-direct {p0, p1, p2}, Landroidx/appcompat/widget/AppCompatSpinner;-><init>(Landroid/content/Context;I)V

    .line 2
    new-instance p1, Lcom/reactnativecommunity/picker/b$a;

    invoke-direct {p1, p0}, Lcom/reactnativecommunity/picker/b$a;-><init>(Lcom/reactnativecommunity/picker/b;)V

    iput-object p1, p0, Lcom/reactnativecommunity/picker/b;->e:Lcom/reactnativecommunity/picker/b$a;

    .line 3
    new-instance p1, Lcom/reactnativecommunity/picker/b$b;

    invoke-direct {p1, p0}, Lcom/reactnativecommunity/picker/b$b;-><init>(Lcom/reactnativecommunity/picker/b;)V

    iput-object p1, p0, Lcom/reactnativecommunity/picker/b;->f:Lcom/reactnativecommunity/picker/b$b;

    .line 4
    iput p2, p0, Lcom/reactnativecommunity/picker/b;->a:I

    return-void
.end method

.method private setSelectionWithSuppressEvent(I)V
    .registers 3

    .line 1
    invoke-virtual {p0}, Landroid/widget/AdapterView;->getSelectedItemPosition()I

    move-result v0

    if-eq p1, v0, :cond_13

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, v0}, Landroid/widget/AdapterView;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    const/4 v0, 0x0

    .line 3
    invoke-virtual {p0, p1, v0}, Landroid/widget/AbsSpinner;->setSelection(IZ)V

    .line 4
    iget-object p1, p0, Lcom/reactnativecommunity/picker/b;->e:Lcom/reactnativecommunity/picker/b$a;

    invoke-virtual {p0, p1}, Landroid/widget/AdapterView;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    :cond_13
    return-void
.end method


# virtual methods
.method public final a()V
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/reactnativecommunity/picker/b;->d:Ljava/lang/Integer;

    if-eqz v0, :cond_e

    .line 2
    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/reactnativecommunity/picker/b;->setSelectionWithSuppressEvent(I)V

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Lcom/reactnativecommunity/picker/b;->d:Ljava/lang/Integer;

    :cond_e
    return-void
.end method

.method public getMode()I
    .registers 2
    .annotation build Lcom/facebook/react/common/annotations/VisibleForTesting;
    .end annotation

    iget v0, p0, Lcom/reactnativecommunity/picker/b;->a:I

    return v0
.end method

.method public getOnSelectListener()Lcom/reactnativecommunity/picker/b$c;
    .registers 2

    iget-object v0, p0, Lcom/reactnativecommunity/picker/b;->c:Lcom/reactnativecommunity/picker/b$c;

    return-object v0
.end method

.method public getPrimaryColor()Ljava/lang/Integer;
    .registers 2

    iget-object v0, p0, Lcom/reactnativecommunity/picker/b;->b:Ljava/lang/Integer;

    return-object v0
.end method

.method public final onLayout(ZIIII)V
    .registers 6

    .line 1
    invoke-super/range {p0 .. p5}, Landroid/widget/Spinner;->onLayout(ZIIII)V

    .line 2
    invoke-virtual {p0}, Landroid/widget/AdapterView;->getOnItemSelectedListener()Landroid/widget/AdapterView$OnItemSelectedListener;

    move-result-object p1

    if-nez p1, :cond_e

    .line 3
    iget-object p1, p0, Lcom/reactnativecommunity/picker/b;->e:Lcom/reactnativecommunity/picker/b$a;

    invoke-virtual {p0, p1}, Landroid/widget/AdapterView;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    :cond_e
    return-void
.end method

.method public final requestLayout()V
    .registers 2

    .line 1
    invoke-super {p0}, Landroid/widget/AbsSpinner;->requestLayout()V

    .line 2
    iget-object v0, p0, Lcom/reactnativecommunity/picker/b;->f:Lcom/reactnativecommunity/picker/b$b;

    invoke-virtual {p0, v0}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public setOnSelectListener(Lcom/reactnativecommunity/picker/b$c;)V
    .registers 2

    iput-object p1, p0, Lcom/reactnativecommunity/picker/b;->c:Lcom/reactnativecommunity/picker/b$c;

    return-void
.end method

.method public setPrimaryColor(Ljava/lang/Integer;)V
    .registers 2

    iput-object p1, p0, Lcom/reactnativecommunity/picker/b;->b:Ljava/lang/Integer;

    return-void
.end method

.method public setStagedSelection(I)V
    .registers 2

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    iput-object p1, p0, Lcom/reactnativecommunity/picker/b;->d:Ljava/lang/Integer;

    return-void
.end method