.class Landroidx/core/view/MenuHostHelper$LifecycleContainer; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/core/view/MenuHostHelper; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "LifecycleContainer" .end annotation # instance fields .field final mLifecycle:Landroidx/lifecycle/Lifecycle; .field private mObserver:Landroidx/lifecycle/LifecycleEventObserver; # direct methods .method public constructor (Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/LifecycleEventObserver;)V .locals 0 .param p1 # Landroidx/lifecycle/Lifecycle; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroidx/lifecycle/LifecycleEventObserver; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .line 211 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Landroidx/core/view/MenuHostHelper$LifecycleContainer;->mLifecycle:Landroidx/lifecycle/Lifecycle; iput-object p2, p0, Landroidx/core/view/MenuHostHelper$LifecycleContainer;->mObserver:Landroidx/lifecycle/LifecycleEventObserver; .line 214 invoke-virtual {p1, p2}, Landroidx/lifecycle/Lifecycle;->addObserver(Landroidx/lifecycle/LifecycleObserver;)V return-void .end method # virtual methods .method public clearObservers()V .locals 2 iget-object v0, p0, Landroidx/core/view/MenuHostHelper$LifecycleContainer;->mLifecycle:Landroidx/lifecycle/Lifecycle; iget-object v1, p0, Landroidx/core/view/MenuHostHelper$LifecycleContainer;->mObserver:Landroidx/lifecycle/LifecycleEventObserver; .line 218 invoke-virtual {v0, v1}, Landroidx/lifecycle/Lifecycle;->removeObserver(Landroidx/lifecycle/LifecycleObserver;)V const/4 v0, 0x0 iput-object v0, p0, Landroidx/core/view/MenuHostHelper$LifecycleContainer;->mObserver:Landroidx/lifecycle/LifecycleEventObserver; return-void .end method