apkfuckery/com.discord/smali/androidx/lifecycle/LifecycleRegistry$ObserverWithState.smali

65 lines
2.4 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/lifecycle/LifecycleRegistry$ObserverWithState;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "LifecycleRegistry.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/lifecycle/LifecycleRegistry;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x9
2019-07-24 11:27:29 +00:00
name = "ObserverWithState"
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public mLifecycleObserver:Landroidx/lifecycle/LifecycleEventObserver;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mState:Landroidx/lifecycle/Lifecycle$State;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroidx/lifecycle/LifecycleObserver;Landroidx/lifecycle/Lifecycle$State;)V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-10-07 23:23:22 +00:00
invoke-static {p1}, Landroidx/lifecycle/Lifecycling;->lifecycleEventObserver(Ljava/lang/Object;)Landroidx/lifecycle/LifecycleEventObserver;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-10-07 23:23:22 +00:00
iput-object p1, p0, Landroidx/lifecycle/LifecycleRegistry$ObserverWithState;->mLifecycleObserver:Landroidx/lifecycle/LifecycleEventObserver;
2019-07-24 11:27:29 +00:00
iput-object p2, p0, Landroidx/lifecycle/LifecycleRegistry$ObserverWithState;->mState:Landroidx/lifecycle/Lifecycle$State;
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public dispatchEvent(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Lifecycle$Event;)V
2019-07-24 11:27:29 +00:00
.locals 2
invoke-static {p2}, Landroidx/lifecycle/LifecycleRegistry;->getStateAfter(Landroidx/lifecycle/Lifecycle$Event;)Landroidx/lifecycle/Lifecycle$State;
move-result-object v0
iget-object v1, p0, Landroidx/lifecycle/LifecycleRegistry$ObserverWithState;->mState:Landroidx/lifecycle/Lifecycle$State;
invoke-static {v1, v0}, Landroidx/lifecycle/LifecycleRegistry;->min(Landroidx/lifecycle/Lifecycle$State;Landroidx/lifecycle/Lifecycle$State;)Landroidx/lifecycle/Lifecycle$State;
move-result-object v1
iput-object v1, p0, Landroidx/lifecycle/LifecycleRegistry$ObserverWithState;->mState:Landroidx/lifecycle/Lifecycle$State;
2019-10-07 23:23:22 +00:00
iget-object v1, p0, Landroidx/lifecycle/LifecycleRegistry$ObserverWithState;->mLifecycleObserver:Landroidx/lifecycle/LifecycleEventObserver;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-interface {v1, p1, p2}, Landroidx/lifecycle/LifecycleEventObserver;->onStateChanged(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Lifecycle$Event;)V
2019-07-24 11:27:29 +00:00
iput-object v0, p0, Landroidx/lifecycle/LifecycleRegistry$ObserverWithState;->mState:Landroidx/lifecycle/Lifecycle$State;
return-void
.end method