MyTestsFragment$MyTestPagerAdapter.smali

.class Lcom/yctpublication/mastes/mytests/MyTestsFragment$MyTestPagerAdapter;
.super Landroidx/fragment/app/FragmentStatePagerAdapter;
.source "MyTestsFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/yctpublication/mastes/mytests/MyTestsFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "MyTestPagerAdapter"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/yctpublication/mastes/mytests/MyTestsFragment;


# direct methods
.method public constructor <init>(Lcom/yctpublication/mastes/mytests/MyTestsFragment;Landroidx/fragment/app/FragmentManager;)V
    .registers 3
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x1010,
            0x0
        }
        names = {
            "this$0",
            "fm"
        }
    .end annotation

    .line 49
    iput-object p1, p0, Lcom/yctpublication/mastes/mytests/MyTestsFragment$MyTestPagerAdapter;->this$0:Lcom/yctpublication/mastes/mytests/MyTestsFragment;

    .line 50
    invoke-direct {p0, p2}, Landroidx/fragment/app/FragmentStatePagerAdapter;-><init>(Landroidx/fragment/app/FragmentManager;)V

    return-void
.end method


# virtual methods
.method public getCount()I
    .registers 2

    .line 70
    iget-object v0, p0, Lcom/yctpublication/mastes/mytests/MyTestsFragment$MyTestPagerAdapter;->this$0:Lcom/yctpublication/mastes/mytests/MyTestsFragment;

    iget-object v0, v0, Lcom/yctpublication/mastes/mytests/MyTestsFragment;->titleList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Landroidx/fragment/app/Fragment;
    .registers 3
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x0
        }
        names = {
            "position"
        }
    .end annotation

    if-nez p1, :cond_8

    .line 58
    new-instance p1, Lcom/yctpublication/mastes/mytests/FinishedTestFragment;

    invoke-direct {p1}, Lcom/yctpublication/mastes/mytests/FinishedTestFragment;-><init>()V

    return-object p1

    :cond_8
    const/4 v0, 0x1

    if-ne p1, v0, :cond_11

    .line 61
    new-instance p1, Lcom/yctpublication/mastes/mytests/PausedTestFragment;

    invoke-direct {p1}, Lcom/yctpublication/mastes/mytests/PausedTestFragment;-><init>()V

    return-object p1

    :cond_11
    const/4 p1, 0x0

    return-object p1
.end method

.method public getPageTitle(I)Ljava/lang/CharSequence;
    .registers 3
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x0
        }
        names = {
            "position"
        }
    .end annotation

    .line 76
    iget-object v0, p0, Lcom/yctpublication/mastes/mytests/MyTestsFragment$MyTestPagerAdapter;->this$0:Lcom/yctpublication/mastes/mytests/MyTestsFragment;

    iget-object v0, v0, Lcom/yctpublication/mastes/mytests/MyTestsFragment;->titleList:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/CharSequence;

    return-object p1
.end method