.class public Landroidx/lifecycle/y;
.super Landroid/app/Fragment;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Landroidx/lifecycle/y$b;,
        Landroidx/lifecycle/y$a;
    }
.end annotation


# static fields
.field public static final synthetic s:I


# instance fields
.field public r:Landroidx/lifecycle/y$a;


# direct methods
.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Landroid/app/Fragment;-><init>()V

    return-void
.end method

.method public static a(Landroid/app/Activity;Landroidx/lifecycle/i$b;)V
    .registers 4

    instance-of v0, p0, Landroidx/lifecycle/p;

    const-string v1, "handleLifecycleEvent"

    if-eqz v0, :cond_17

    check-cast p0, Landroidx/lifecycle/p;

    invoke-interface {p0}, Landroidx/lifecycle/p;->a()Landroidx/lifecycle/o;

    move-result-object p0

    .line 1
    invoke-virtual {p0, v1}, Landroidx/lifecycle/o;->d(Ljava/lang/String;)V

    invoke-virtual {p1}, Landroidx/lifecycle/i$b;->b()Landroidx/lifecycle/i$c;

    move-result-object p1

    invoke-virtual {p0, p1}, Landroidx/lifecycle/o;->g(Landroidx/lifecycle/i$c;)V

    return-void

    .line 2
    :cond_17
    instance-of v0, p0, Landroidx/lifecycle/n;

    if-eqz v0, :cond_31

    check-cast p0, Landroidx/lifecycle/n;

    invoke-interface {p0}, Landroidx/lifecycle/n;->a()Landroidx/lifecycle/i;

    move-result-object p0

    instance-of v0, p0, Landroidx/lifecycle/o;

    if-eqz v0, :cond_31

    check-cast p0, Landroidx/lifecycle/o;

    .line 3
    invoke-virtual {p0, v1}, Landroidx/lifecycle/o;->d(Ljava/lang/String;)V

    invoke-virtual {p1}, Landroidx/lifecycle/i$b;->b()Landroidx/lifecycle/i$c;

    move-result-object p1

    invoke-virtual {p0, p1}, Landroidx/lifecycle/o;->g(Landroidx/lifecycle/i$c;)V

    :cond_31
    return-void
.end method

.method public static c(Landroid/app/Activity;)V
    .registers 4

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x1d

    if-lt v0, v1, :cond_9

    invoke-static {p0}, Landroidx/lifecycle/y$b;->registerIn(Landroid/app/Activity;)V

    :cond_9
    invoke-virtual {p0}, Landroid/app/Activity;->getFragmentManager()Landroid/app/FragmentManager;

    move-result-object p0

    const-string v0, "androidx.lifecycle.LifecycleDispatcher.report_fragment_tag"

    invoke-virtual {p0, v0}, Landroid/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/app/Fragment;

    move-result-object v1

    if-nez v1, :cond_28

    invoke-virtual {p0}, Landroid/app/FragmentManager;->beginTransaction()Landroid/app/FragmentTransaction;

    move-result-object v1

    new-instance v2, Landroidx/lifecycle/y;

    invoke-direct {v2}, Landroidx/lifecycle/y;-><init>()V

    invoke-virtual {v1, v2, v0}, Landroid/app/FragmentTransaction;->add(Landroid/app/Fragment;Ljava/lang/String;)Landroid/app/FragmentTransaction;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/FragmentTransaction;->commit()I

    invoke-virtual {p0}, Landroid/app/FragmentManager;->executePendingTransactions()Z

    :cond_28
    return-void
.end method


# virtual methods
.method public final b(Landroidx/lifecycle/i$b;)V
    .registers 4

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x1d

    if-ge v0, v1, :cond_d

    invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;

    move-result-object v0

    invoke-static {v0, p1}, Landroidx/lifecycle/y;->a(Landroid/app/Activity;Landroidx/lifecycle/i$b;)V

    :cond_d
    return-void
.end method

.method public onActivityCreated(Landroid/os/Bundle;)V
    .registers 2

    invoke-super {p0, p1}, Landroid/app/Fragment;->onActivityCreated(Landroid/os/Bundle;)V

    sget-object p1, Landroidx/lifecycle/i$b;->ON_CREATE:Landroidx/lifecycle/i$b;

    invoke-virtual {p0, p1}, Landroidx/lifecycle/y;->b(Landroidx/lifecycle/i$b;)V

    return-void
.end method

.method public onDestroy()V
    .registers 2

    invoke-super {p0}, Landroid/app/Fragment;->onDestroy()V

    sget-object v0, Landroidx/lifecycle/i$b;->ON_DESTROY:Landroidx/lifecycle/i$b;

    invoke-virtual {p0, v0}, Landroidx/lifecycle/y;->b(Landroidx/lifecycle/i$b;)V

    const/4 v0, 0x0

    iput-object v0, p0, Landroidx/lifecycle/y;->r:Landroidx/lifecycle/y$a;

    return-void
.end method

.method public onPause()V
    .registers 2

    invoke-super {p0}, Landroid/app/Fragment;->onPause()V

    sget-object v0, Landroidx/lifecycle/i$b;->ON_PAUSE:Landroidx/lifecycle/i$b;

    invoke-virtual {p0, v0}, Landroidx/lifecycle/y;->b(Landroidx/lifecycle/i$b;)V

    return-void
.end method

.method public onResume()V
    .registers 2

    invoke-super {p0}, Landroid/app/Fragment;->onResume()V

    iget-object v0, p0, Landroidx/lifecycle/y;->r:Landroidx/lifecycle/y$a;

    if-eqz v0, :cond_e

    .line 1
    check-cast v0, Landroidx/lifecycle/w$b;

    .line 2
    iget-object v0, v0, Landroidx/lifecycle/w$b;->a:Landroidx/lifecycle/w;

    invoke-virtual {v0}, Landroidx/lifecycle/w;->b()V

    .line 3
    :cond_e
    sget-object v0, Landroidx/lifecycle/i$b;->ON_RESUME:Landroidx/lifecycle/i$b;

    invoke-virtual {p0, v0}, Landroidx/lifecycle/y;->b(Landroidx/lifecycle/i$b;)V

    return-void
.end method

.method public onStart()V
    .registers 2

    invoke-super {p0}, Landroid/app/Fragment;->onStart()V

    iget-object v0, p0, Landroidx/lifecycle/y;->r:Landroidx/lifecycle/y$a;

    if-eqz v0, :cond_e

    .line 1
    check-cast v0, Landroidx/lifecycle/w$b;

    .line 2
    iget-object v0, v0, Landroidx/lifecycle/w$b;->a:Landroidx/lifecycle/w;

    invoke-virtual {v0}, Landroidx/lifecycle/w;->e()V

    .line 3
    :cond_e
    sget-object v0, Landroidx/lifecycle/i$b;->ON_START:Landroidx/lifecycle/i$b;

    invoke-virtual {p0, v0}, Landroidx/lifecycle/y;->b(Landroidx/lifecycle/i$b;)V

    return-void
.end method

.method public onStop()V
    .registers 2

    invoke-super {p0}, Landroid/app/Fragment;->onStop()V

    sget-object v0, Landroidx/lifecycle/i$b;->ON_STOP:Landroidx/lifecycle/i$b;

    invoke-virtual {p0, v0}, Landroidx/lifecycle/y;->b(Landroidx/lifecycle/i$b;)V

    return-void
.end method
