.class Landroidx/appcompat/widget/AppCompatSpinner$2; .super Ljava/lang/Object; .source "AppCompatSpinner.java" # interfaces .implements Landroid/view/ViewTreeObserver$OnGlobalLayoutListener; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Landroidx/appcompat/widget/AppCompatSpinner;->onRestoreInstanceState(Landroid/os/Parcelable;)V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = null .end annotation # instance fields .field final synthetic this$0:Landroidx/appcompat/widget/AppCompatSpinner; # direct methods .method constructor (Landroidx/appcompat/widget/AppCompatSpinner;)V .locals 0 iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$2;->this$0:Landroidx/appcompat/widget/AppCompatSpinner; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public onGlobalLayout()V .locals 3 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$2;->this$0:Landroidx/appcompat/widget/AppCompatSpinner; invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatSpinner;->getInternalPopup()Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup; move-result-object v0 invoke-interface {v0}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->isShowing()Z move-result v0 if-nez v0, :cond_0 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$2;->this$0:Landroidx/appcompat/widget/AppCompatSpinner; invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatSpinner;->showPopup()V :cond_0 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$2;->this$0:Landroidx/appcompat/widget/AppCompatSpinner; invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatSpinner;->getViewTreeObserver()Landroid/view/ViewTreeObserver; move-result-object v0 if-eqz v0, :cond_2 sget v1, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v2, 0x10 if-lt v1, v2, :cond_1 invoke-virtual {v0, p0}, Landroid/view/ViewTreeObserver;->removeOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V return-void :cond_1 invoke-virtual {v0, p0}, Landroid/view/ViewTreeObserver;->removeGlobalOnLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V :cond_2 return-void .end method