2020-11-12 02:11:44 +00:00
|
|
|
.class public final Landroidx/lifecycle/LifecycleController;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "LifecycleController.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation build Landroidx/annotation/MainThread;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-11-21 21:10:53 +00:00
|
|
|
.field public final dispatchQueue:Landroidx/lifecycle/DispatchQueue;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
.field public final lifecycle:Landroidx/lifecycle/Lifecycle;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
.field public final minState:Landroidx/lifecycle/Lifecycle$State;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
.field public final observer:Landroidx/lifecycle/LifecycleEventObserver;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;Landroidx/lifecycle/DispatchQueue;Lkotlinx/coroutines/Job;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "lifecycle"
|
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string v0, "minState"
|
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string v0, "dispatchQueue"
|
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-static {p3, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string v0, "parentJob"
|
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-static {p4, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/lifecycle/LifecycleController;->lifecycle:Landroidx/lifecycle/Lifecycle;
|
|
|
|
|
|
|
|
iput-object p2, p0, Landroidx/lifecycle/LifecycleController;->minState:Landroidx/lifecycle/Lifecycle$State;
|
|
|
|
|
|
|
|
iput-object p3, p0, Landroidx/lifecycle/LifecycleController;->dispatchQueue:Landroidx/lifecycle/DispatchQueue;
|
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
new-instance p1, Landroidx/lifecycle/LifecycleController$observer$1;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-direct {p1, p0, p4}, Landroidx/lifecycle/LifecycleController$observer$1;-><init>(Landroidx/lifecycle/LifecycleController;Lkotlinx/coroutines/Job;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
iput-object p1, p0, Landroidx/lifecycle/LifecycleController;->observer:Landroidx/lifecycle/LifecycleEventObserver;
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/lifecycle/LifecycleController;->lifecycle:Landroidx/lifecycle/Lifecycle;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State;
|
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
move-result-object p1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
sget-object p2, Landroidx/lifecycle/Lifecycle$State;->DESTROYED:Landroidx/lifecycle/Lifecycle$State;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
if-ne p1, p2, :cond_0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
const/4 p2, 0x0
|
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-static {p4, p2, p1, p2}, Lz/i/s;->m(Lkotlinx/coroutines/Job;Ljava/util/concurrent/CancellationException;ILjava/lang/Object;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/lifecycle/LifecycleController;->finish()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-21 21:10:53 +00:00
|
|
|
iget-object p1, p0, Landroidx/lifecycle/LifecycleController;->lifecycle:Landroidx/lifecycle/Lifecycle;
|
|
|
|
|
|
|
|
iget-object p2, p0, Landroidx/lifecycle/LifecycleController;->observer:Landroidx/lifecycle/LifecycleEventObserver;
|
|
|
|
|
2020-11-12 02:11:44 +00:00
|
|
|
invoke-virtual {p1, p2}, Landroidx/lifecycle/Lifecycle;->addObserver(Landroidx/lifecycle/LifecycleObserver;)V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getDispatchQueue$p(Landroidx/lifecycle/LifecycleController;)Landroidx/lifecycle/DispatchQueue;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Landroidx/lifecycle/LifecycleController;->dispatchQueue:Landroidx/lifecycle/DispatchQueue;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getMinState$p(Landroidx/lifecycle/LifecycleController;)Landroidx/lifecycle/Lifecycle$State;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Landroidx/lifecycle/LifecycleController;->minState:Landroidx/lifecycle/Lifecycle$State;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$handleDestroy(Landroidx/lifecycle/LifecycleController;Lkotlinx/coroutines/Job;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Landroidx/lifecycle/LifecycleController;->handleDestroy(Lkotlinx/coroutines/Job;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final handleDestroy(Lkotlinx/coroutines/Job;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-static {p1, v0, v1, v0}, Lz/i/s;->m(Lkotlinx/coroutines/Job;Ljava/util/concurrent/CancellationException;ILjava/lang/Object;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/lifecycle/LifecycleController;->finish()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final finish()V
|
|
|
|
.locals 2
|
|
|
|
.annotation build Landroidx/annotation/MainThread;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/lifecycle/LifecycleController;->lifecycle:Landroidx/lifecycle/Lifecycle;
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/lifecycle/LifecycleController;->observer:Landroidx/lifecycle/LifecycleEventObserver;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/lifecycle/Lifecycle;->removeObserver(Landroidx/lifecycle/LifecycleObserver;)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/lifecycle/LifecycleController;->dispatchQueue:Landroidx/lifecycle/DispatchQueue;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/lifecycle/DispatchQueue;->finish()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|