.class public Landroidx/legacy/app/FragmentTabHost; .super Landroid/widget/TabHost; .source "FragmentTabHost.java" # interfaces .implements Landroid/widget/TabHost$OnTabChangeListener; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/legacy/app/FragmentTabHost$SavedState;, Landroidx/legacy/app/FragmentTabHost$DummyTabFactory;, Landroidx/legacy/app/FragmentTabHost$TabInfo; } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation # instance fields .field private mAttached:Z .field private mContainerId:I .field private mContext:Landroid/content/Context; .field private mFragmentManager:Landroid/app/FragmentManager; .field private mLastTab:Landroidx/legacy/app/FragmentTabHost$TabInfo; .field private mOnTabChangeListener:Landroid/widget/TabHost$OnTabChangeListener; .field private mRealTabContent:Landroid/widget/FrameLayout; .field private final mTabs:Ljava/util/ArrayList; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/ArrayList<", "Landroidx/legacy/app/FragmentTabHost$TabInfo;", ">;" } .end annotation .end field # direct methods .method public constructor (Landroid/content/Context;)V .locals 2 .annotation runtime Ljava/lang/Deprecated; .end annotation const/4 v0, 0x0 invoke-direct {p0, p1, v0}, Landroid/widget/TabHost;->(Landroid/content/Context;Landroid/util/AttributeSet;)V new-instance v1, Ljava/util/ArrayList; invoke-direct {v1}, Ljava/util/ArrayList;->()V iput-object v1, p0, Landroidx/legacy/app/FragmentTabHost;->mTabs:Ljava/util/ArrayList; invoke-direct {p0, p1, v0}, Landroidx/legacy/app/FragmentTabHost;->initFragmentTabHost(Landroid/content/Context;Landroid/util/AttributeSet;)V return-void .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;)V .locals 1 .annotation runtime Ljava/lang/Deprecated; .end annotation invoke-direct {p0, p1, p2}, Landroid/widget/TabHost;->(Landroid/content/Context;Landroid/util/AttributeSet;)V new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V iput-object v0, p0, Landroidx/legacy/app/FragmentTabHost;->mTabs:Ljava/util/ArrayList; invoke-direct {p0, p1, p2}, Landroidx/legacy/app/FragmentTabHost;->initFragmentTabHost(Landroid/content/Context;Landroid/util/AttributeSet;)V return-void .end method .method private doTabChanged(Ljava/lang/String;Landroid/app/FragmentTransaction;)Landroid/app/FragmentTransaction; .locals 4 const/4 v0, 0x0 const/4 v1, 0x0 :goto_0 iget-object v2, p0, Landroidx/legacy/app/FragmentTabHost;->mTabs:Ljava/util/ArrayList; invoke-virtual {v2}, Ljava/util/ArrayList;->size()I move-result v2 if-ge v1, v2, :cond_1 iget-object v2, p0, Landroidx/legacy/app/FragmentTabHost;->mTabs:Ljava/util/ArrayList; invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v2 check-cast v2, Landroidx/legacy/app/FragmentTabHost$TabInfo; iget-object v3, v2, Landroidx/legacy/app/FragmentTabHost$TabInfo;->tag:Ljava/lang/String; invoke-virtual {v3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v3 if-eqz v3, :cond_0 move-object v0, v2 :cond_0 add-int/lit8 v1, v1, 0x1 goto :goto_0 :cond_1 if-eqz v0, :cond_7 iget-object p1, p0, Landroidx/legacy/app/FragmentTabHost;->mLastTab:Landroidx/legacy/app/FragmentTabHost$TabInfo; if-eq p1, v0, :cond_6 if-nez p2, :cond_2 iget-object p1, p0, Landroidx/legacy/app/FragmentTabHost;->mFragmentManager:Landroid/app/FragmentManager; invoke-virtual {p1}, Landroid/app/FragmentManager;->beginTransaction()Landroid/app/FragmentTransaction; move-result-object p1 move-object p2, p1 :cond_2 iget-object p1, p0, Landroidx/legacy/app/FragmentTabHost;->mLastTab:Landroidx/legacy/app/FragmentTabHost$TabInfo; if-eqz p1, :cond_3 iget-object p1, p1, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; if-eqz p1, :cond_3 iget-object p1, p0, Landroidx/legacy/app/FragmentTabHost;->mLastTab:Landroidx/legacy/app/FragmentTabHost$TabInfo; iget-object p1, p1, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; invoke-virtual {p2, p1}, Landroid/app/FragmentTransaction;->detach(Landroid/app/Fragment;)Landroid/app/FragmentTransaction; :cond_3 if-eqz v0, :cond_5 iget-object p1, v0, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; if-nez p1, :cond_4 iget-object p1, p0, Landroidx/legacy/app/FragmentTabHost;->mContext:Landroid/content/Context; iget-object v1, v0, Landroidx/legacy/app/FragmentTabHost$TabInfo;->clss:Ljava/lang/Class; invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v1 iget-object v2, v0, Landroidx/legacy/app/FragmentTabHost$TabInfo;->args:Landroid/os/Bundle; invoke-static {p1, v1, v2}, Landroid/app/Fragment;->instantiate(Landroid/content/Context;Ljava/lang/String;Landroid/os/Bundle;)Landroid/app/Fragment; move-result-object p1 iput-object p1, v0, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; iget p1, p0, Landroidx/legacy/app/FragmentTabHost;->mContainerId:I iget-object v1, v0, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; iget-object v2, v0, Landroidx/legacy/app/FragmentTabHost$TabInfo;->tag:Ljava/lang/String; invoke-virtual {p2, p1, v1, v2}, Landroid/app/FragmentTransaction;->add(ILandroid/app/Fragment;Ljava/lang/String;)Landroid/app/FragmentTransaction; goto :goto_1 :cond_4 iget-object p1, v0, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; invoke-virtual {p2, p1}, Landroid/app/FragmentTransaction;->attach(Landroid/app/Fragment;)Landroid/app/FragmentTransaction; :cond_5 :goto_1 iput-object v0, p0, Landroidx/legacy/app/FragmentTabHost;->mLastTab:Landroidx/legacy/app/FragmentTabHost$TabInfo; :cond_6 return-object p2 :cond_7 new-instance p2, Ljava/lang/IllegalStateException; invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p1 const-string v0, "No tab known for tag " invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V goto :goto_3 :goto_2 throw p2 :goto_3 goto :goto_2 .end method .method private ensureContent()V .locals 3 iget-object v0, p0, Landroidx/legacy/app/FragmentTabHost;->mRealTabContent:Landroid/widget/FrameLayout; if-nez v0, :cond_1 iget v0, p0, Landroidx/legacy/app/FragmentTabHost;->mContainerId:I invoke-virtual {p0, v0}, Landroidx/legacy/app/FragmentTabHost;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/FrameLayout; iput-object v0, p0, Landroidx/legacy/app/FragmentTabHost;->mRealTabContent:Landroid/widget/FrameLayout; iget-object v0, p0, Landroidx/legacy/app/FragmentTabHost;->mRealTabContent:Landroid/widget/FrameLayout; if-eqz v0, :cond_0 goto :goto_0 :cond_0 new-instance v0, Ljava/lang/IllegalStateException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "No tab content FrameLayout found for id " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget v2, p0, Landroidx/legacy/app/FragmentTabHost;->mContainerId:I invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 :cond_1 :goto_0 return-void .end method .method private ensureHierarchy(Landroid/content/Context;)V .locals 7 const v0, 0x1020013 invoke-virtual {p0, v0}, Landroidx/legacy/app/FragmentTabHost;->findViewById(I)Landroid/view/View; move-result-object v1 if-nez v1, :cond_0 new-instance v1, Landroid/widget/LinearLayout; invoke-direct {v1, p1}, Landroid/widget/LinearLayout;->(Landroid/content/Context;)V const/4 v2, 0x1 invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setOrientation(I)V new-instance v2, Landroid/widget/FrameLayout$LayoutParams; const/4 v3, -0x1 invoke-direct {v2, v3, v3}, Landroid/widget/FrameLayout$LayoutParams;->(II)V invoke-virtual {p0, v1, v2}, Landroidx/legacy/app/FragmentTabHost;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V new-instance v2, Landroid/widget/TabWidget; invoke-direct {v2, p1}, Landroid/widget/TabWidget;->(Landroid/content/Context;)V invoke-virtual {v2, v0}, Landroid/widget/TabWidget;->setId(I)V const/4 v0, 0x0 invoke-virtual {v2, v0}, Landroid/widget/TabWidget;->setOrientation(I)V new-instance v4, Landroid/widget/LinearLayout$LayoutParams; const/4 v5, -0x2 const/4 v6, 0x0 invoke-direct {v4, v3, v5, v6}, Landroid/widget/LinearLayout$LayoutParams;->(IIF)V invoke-virtual {v1, v2, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V new-instance v2, Landroid/widget/FrameLayout; invoke-direct {v2, p1}, Landroid/widget/FrameLayout;->(Landroid/content/Context;)V const v4, 0x1020011 invoke-virtual {v2, v4}, Landroid/widget/FrameLayout;->setId(I)V new-instance v4, Landroid/widget/LinearLayout$LayoutParams; invoke-direct {v4, v0, v0, v6}, Landroid/widget/LinearLayout$LayoutParams;->(IIF)V invoke-virtual {v1, v2, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V new-instance v2, Landroid/widget/FrameLayout; invoke-direct {v2, p1}, Landroid/widget/FrameLayout;->(Landroid/content/Context;)V iput-object v2, p0, Landroidx/legacy/app/FragmentTabHost;->mRealTabContent:Landroid/widget/FrameLayout; iget-object p1, p0, Landroidx/legacy/app/FragmentTabHost;->mRealTabContent:Landroid/widget/FrameLayout; iget v4, p0, Landroidx/legacy/app/FragmentTabHost;->mContainerId:I invoke-virtual {p1, v4}, Landroid/widget/FrameLayout;->setId(I)V new-instance p1, Landroid/widget/LinearLayout$LayoutParams; const/high16 v4, 0x3f800000 # 1.0f invoke-direct {p1, v3, v0, v4}, Landroid/widget/LinearLayout$LayoutParams;->(IIF)V invoke-virtual {v1, v2, p1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V :cond_0 return-void .end method .method private initFragmentTabHost(Landroid/content/Context;Landroid/util/AttributeSet;)V .locals 3 const/4 v0, 0x1 new-array v0, v0, [I const/4 v1, 0x0 const v2, 0x10100f3 aput v2, v0, v1 invoke-virtual {p1, p2, v0, v1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray; move-result-object p1 invoke-virtual {p1, v1, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I move-result p2 iput p2, p0, Landroidx/legacy/app/FragmentTabHost;->mContainerId:I invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V invoke-super {p0, p0}, Landroid/widget/TabHost;->setOnTabChangedListener(Landroid/widget/TabHost$OnTabChangeListener;)V return-void .end method # virtual methods .method public addTab(Landroid/widget/TabHost$TabSpec;Ljava/lang/Class;Landroid/os/Bundle;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/widget/TabHost$TabSpec;", "Ljava/lang/Class<", "*>;", "Landroid/os/Bundle;", ")V" } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation new-instance v0, Landroidx/legacy/app/FragmentTabHost$DummyTabFactory; iget-object v1, p0, Landroidx/legacy/app/FragmentTabHost;->mContext:Landroid/content/Context; invoke-direct {v0, v1}, Landroidx/legacy/app/FragmentTabHost$DummyTabFactory;->(Landroid/content/Context;)V invoke-virtual {p1, v0}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/widget/TabHost$TabContentFactory;)Landroid/widget/TabHost$TabSpec; invoke-virtual {p1}, Landroid/widget/TabHost$TabSpec;->getTag()Ljava/lang/String; move-result-object v0 new-instance v1, Landroidx/legacy/app/FragmentTabHost$TabInfo; invoke-direct {v1, v0, p2, p3}, Landroidx/legacy/app/FragmentTabHost$TabInfo;->(Ljava/lang/String;Ljava/lang/Class;Landroid/os/Bundle;)V iget-boolean p2, p0, Landroidx/legacy/app/FragmentTabHost;->mAttached:Z if-eqz p2, :cond_0 iget-object p2, p0, Landroidx/legacy/app/FragmentTabHost;->mFragmentManager:Landroid/app/FragmentManager; invoke-virtual {p2, v0}, Landroid/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/app/Fragment; move-result-object p2 iput-object p2, v1, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; iget-object p2, v1, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; if-eqz p2, :cond_0 iget-object p2, v1, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; invoke-virtual {p2}, Landroid/app/Fragment;->isDetached()Z move-result p2 if-nez p2, :cond_0 iget-object p2, p0, Landroidx/legacy/app/FragmentTabHost;->mFragmentManager:Landroid/app/FragmentManager; invoke-virtual {p2}, Landroid/app/FragmentManager;->beginTransaction()Landroid/app/FragmentTransaction; move-result-object p2 iget-object p3, v1, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; invoke-virtual {p2, p3}, Landroid/app/FragmentTransaction;->detach(Landroid/app/Fragment;)Landroid/app/FragmentTransaction; invoke-virtual {p2}, Landroid/app/FragmentTransaction;->commit()I :cond_0 iget-object p2, p0, Landroidx/legacy/app/FragmentTabHost;->mTabs:Ljava/util/ArrayList; invoke-virtual {p2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z invoke-virtual {p0, p1}, Landroidx/legacy/app/FragmentTabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V return-void .end method .method protected onAttachedToWindow()V .locals 6 .annotation runtime Ljava/lang/Deprecated; .end annotation invoke-super {p0}, Landroid/widget/TabHost;->onAttachedToWindow()V invoke-virtual {p0}, Landroidx/legacy/app/FragmentTabHost;->getCurrentTabTag()Ljava/lang/String; move-result-object v0 const/4 v1, 0x0 const/4 v2, 0x0 :goto_0 iget-object v3, p0, Landroidx/legacy/app/FragmentTabHost;->mTabs:Ljava/util/ArrayList; invoke-virtual {v3}, Ljava/util/ArrayList;->size()I move-result v3 if-ge v2, v3, :cond_3 iget-object v3, p0, Landroidx/legacy/app/FragmentTabHost;->mTabs:Ljava/util/ArrayList; invoke-virtual {v3, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v3 check-cast v3, Landroidx/legacy/app/FragmentTabHost$TabInfo; iget-object v4, p0, Landroidx/legacy/app/FragmentTabHost;->mFragmentManager:Landroid/app/FragmentManager; iget-object v5, v3, Landroidx/legacy/app/FragmentTabHost$TabInfo;->tag:Ljava/lang/String; invoke-virtual {v4, v5}, Landroid/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/app/Fragment; move-result-object v4 iput-object v4, v3, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; iget-object v4, v3, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; if-eqz v4, :cond_2 iget-object v4, v3, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; invoke-virtual {v4}, Landroid/app/Fragment;->isDetached()Z move-result v4 if-nez v4, :cond_2 iget-object v4, v3, Landroidx/legacy/app/FragmentTabHost$TabInfo;->tag:Ljava/lang/String; invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v4 if-eqz v4, :cond_0 iput-object v3, p0, Landroidx/legacy/app/FragmentTabHost;->mLastTab:Landroidx/legacy/app/FragmentTabHost$TabInfo; goto :goto_1 :cond_0 if-nez v1, :cond_1 iget-object v1, p0, Landroidx/legacy/app/FragmentTabHost;->mFragmentManager:Landroid/app/FragmentManager; invoke-virtual {v1}, Landroid/app/FragmentManager;->beginTransaction()Landroid/app/FragmentTransaction; move-result-object v1 :cond_1 iget-object v3, v3, Landroidx/legacy/app/FragmentTabHost$TabInfo;->fragment:Landroid/app/Fragment; invoke-virtual {v1, v3}, Landroid/app/FragmentTransaction;->detach(Landroid/app/Fragment;)Landroid/app/FragmentTransaction; :cond_2 :goto_1 add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_3 const/4 v2, 0x1 iput-boolean v2, p0, Landroidx/legacy/app/FragmentTabHost;->mAttached:Z invoke-direct {p0, v0, v1}, Landroidx/legacy/app/FragmentTabHost;->doTabChanged(Ljava/lang/String;Landroid/app/FragmentTransaction;)Landroid/app/FragmentTransaction; move-result-object v0 if-eqz v0, :cond_4 invoke-virtual {v0}, Landroid/app/FragmentTransaction;->commit()I iget-object v0, p0, Landroidx/legacy/app/FragmentTabHost;->mFragmentManager:Landroid/app/FragmentManager; invoke-virtual {v0}, Landroid/app/FragmentManager;->executePendingTransactions()Z :cond_4 return-void .end method .method protected onDetachedFromWindow()V .locals 1 .annotation runtime Ljava/lang/Deprecated; .end annotation invoke-super {p0}, Landroid/widget/TabHost;->onDetachedFromWindow()V const/4 v0, 0x0 iput-boolean v0, p0, Landroidx/legacy/app/FragmentTabHost;->mAttached:Z return-void .end method .method protected onRestoreInstanceState(Landroid/os/Parcelable;)V .locals 1 .annotation runtime Ljava/lang/Deprecated; .end annotation instance-of v0, p1, Landroidx/legacy/app/FragmentTabHost$SavedState; if-nez v0, :cond_0 invoke-super {p0, p1}, Landroid/widget/TabHost;->onRestoreInstanceState(Landroid/os/Parcelable;)V return-void :cond_0 check-cast p1, Landroidx/legacy/app/FragmentTabHost$SavedState; invoke-virtual {p1}, Landroidx/legacy/app/FragmentTabHost$SavedState;->getSuperState()Landroid/os/Parcelable; move-result-object v0 invoke-super {p0, v0}, Landroid/widget/TabHost;->onRestoreInstanceState(Landroid/os/Parcelable;)V iget-object p1, p1, Landroidx/legacy/app/FragmentTabHost$SavedState;->curTab:Ljava/lang/String; invoke-virtual {p0, p1}, Landroidx/legacy/app/FragmentTabHost;->setCurrentTabByTag(Ljava/lang/String;)V return-void .end method .method protected onSaveInstanceState()Landroid/os/Parcelable; .locals 2 .annotation runtime Ljava/lang/Deprecated; .end annotation invoke-super {p0}, Landroid/widget/TabHost;->onSaveInstanceState()Landroid/os/Parcelable; move-result-object v0 new-instance v1, Landroidx/legacy/app/FragmentTabHost$SavedState; invoke-direct {v1, v0}, Landroidx/legacy/app/FragmentTabHost$SavedState;->(Landroid/os/Parcelable;)V invoke-virtual {p0}, Landroidx/legacy/app/FragmentTabHost;->getCurrentTabTag()Ljava/lang/String; move-result-object v0 iput-object v0, v1, Landroidx/legacy/app/FragmentTabHost$SavedState;->curTab:Ljava/lang/String; return-object v1 .end method .method public onTabChanged(Ljava/lang/String;)V .locals 1 .annotation runtime Ljava/lang/Deprecated; .end annotation iget-boolean v0, p0, Landroidx/legacy/app/FragmentTabHost;->mAttached:Z if-eqz v0, :cond_0 const/4 v0, 0x0 invoke-direct {p0, p1, v0}, Landroidx/legacy/app/FragmentTabHost;->doTabChanged(Ljava/lang/String;Landroid/app/FragmentTransaction;)Landroid/app/FragmentTransaction; move-result-object v0 if-eqz v0, :cond_0 invoke-virtual {v0}, Landroid/app/FragmentTransaction;->commit()I :cond_0 iget-object v0, p0, Landroidx/legacy/app/FragmentTabHost;->mOnTabChangeListener:Landroid/widget/TabHost$OnTabChangeListener; if-eqz v0, :cond_1 invoke-interface {v0, p1}, Landroid/widget/TabHost$OnTabChangeListener;->onTabChanged(Ljava/lang/String;)V :cond_1 return-void .end method .method public setOnTabChangedListener(Landroid/widget/TabHost$OnTabChangeListener;)V .locals 0 .annotation runtime Ljava/lang/Deprecated; .end annotation iput-object p1, p0, Landroidx/legacy/app/FragmentTabHost;->mOnTabChangeListener:Landroid/widget/TabHost$OnTabChangeListener; return-void .end method .method public setup()V .locals 2 .annotation runtime Ljava/lang/Deprecated; .end annotation new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "Must call setup() that takes a Context and FragmentManager" invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 .end method .method public setup(Landroid/content/Context;Landroid/app/FragmentManager;)V .locals 0 .annotation runtime Ljava/lang/Deprecated; .end annotation invoke-direct {p0, p1}, Landroidx/legacy/app/FragmentTabHost;->ensureHierarchy(Landroid/content/Context;)V invoke-super {p0}, Landroid/widget/TabHost;->setup()V iput-object p1, p0, Landroidx/legacy/app/FragmentTabHost;->mContext:Landroid/content/Context; iput-object p2, p0, Landroidx/legacy/app/FragmentTabHost;->mFragmentManager:Landroid/app/FragmentManager; invoke-direct {p0}, Landroidx/legacy/app/FragmentTabHost;->ensureContent()V return-void .end method .method public setup(Landroid/content/Context;Landroid/app/FragmentManager;I)V .locals 0 .annotation runtime Ljava/lang/Deprecated; .end annotation invoke-direct {p0, p1}, Landroidx/legacy/app/FragmentTabHost;->ensureHierarchy(Landroid/content/Context;)V invoke-super {p0}, Landroid/widget/TabHost;->setup()V iput-object p1, p0, Landroidx/legacy/app/FragmentTabHost;->mContext:Landroid/content/Context; iput-object p2, p0, Landroidx/legacy/app/FragmentTabHost;->mFragmentManager:Landroid/app/FragmentManager; iput p3, p0, Landroidx/legacy/app/FragmentTabHost;->mContainerId:I invoke-direct {p0}, Landroidx/legacy/app/FragmentTabHost;->ensureContent()V iget-object p1, p0, Landroidx/legacy/app/FragmentTabHost;->mRealTabContent:Landroid/widget/FrameLayout; invoke-virtual {p1, p3}, Landroid/widget/FrameLayout;->setId(I)V invoke-virtual {p0}, Landroidx/legacy/app/FragmentTabHost;->getId()I move-result p1 const/4 p2, -0x1 if-ne p1, p2, :cond_0 const p1, 0x1020012 invoke-virtual {p0, p1}, Landroidx/legacy/app/FragmentTabHost;->setId(I)V :cond_0 return-void .end method