apkfuckery/com.discord/smali/androidx/lifecycle/LifecycleController$observer$1.smali

127 lines
4.3 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.class public final Landroidx/lifecycle/LifecycleController$observer$1;
.super Ljava/lang/Object;
.source "LifecycleController.kt"
# interfaces
.implements Landroidx/lifecycle/LifecycleEventObserver;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/lifecycle/LifecycleController;-><init>(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;Landroidx/lifecycle/DispatchQueue;Lkotlinx/coroutines/Job;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic $parentJob:Lkotlinx/coroutines/Job;
.field public final synthetic this$0:Landroidx/lifecycle/LifecycleController;
# direct methods
.method public constructor <init>(Landroidx/lifecycle/LifecycleController;Lkotlinx/coroutines/Job;)V
.locals 0
iput-object p1, p0, Landroidx/lifecycle/LifecycleController$observer$1;->this$0:Landroidx/lifecycle/LifecycleController;
iput-object p2, p0, Landroidx/lifecycle/LifecycleController$observer$1;->$parentJob:Lkotlinx/coroutines/Job;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onStateChanged(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Lifecycle$Event;)V
2020-09-16 23:45:23 +00:00
.locals 2
2020-07-08 16:44:49 +00:00
2020-09-16 23:45:23 +00:00
const-string v0, "source"
2020-07-08 16:44:49 +00:00
2020-09-17 00:45:48 +00:00
invoke-static {p1, v0}, Lc0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-16 23:45:23 +00:00
const-string v0, "<anonymous parameter 1>"
2020-09-17 00:45:48 +00:00
invoke-static {p2, v0}, Lc0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
invoke-interface {p1}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
move-result-object p2
2020-09-16 23:45:23 +00:00
const-string v0, "source.lifecycle"
2020-07-08 16:44:49 +00:00
2020-09-17 00:45:48 +00:00
invoke-static {p2, v0}, Lc0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
invoke-virtual {p2}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State;
move-result-object p2
2020-09-16 23:45:23 +00:00
sget-object v1, Landroidx/lifecycle/Lifecycle$State;->DESTROYED:Landroidx/lifecycle/Lifecycle$State;
2020-07-08 16:44:49 +00:00
2020-09-16 23:45:23 +00:00
if-ne p2, v1, :cond_0
2020-07-08 16:44:49 +00:00
iget-object p1, p0, Landroidx/lifecycle/LifecycleController$observer$1;->this$0:Landroidx/lifecycle/LifecycleController;
iget-object p2, p0, Landroidx/lifecycle/LifecycleController$observer$1;->$parentJob:Lkotlinx/coroutines/Job;
2020-09-16 23:45:23 +00:00
const/4 v0, 0x1
const/4 v1, 0x0
2020-07-08 16:44:49 +00:00
2020-09-17 00:45:48 +00:00
invoke-static {p2, v1, v0, v1}, Lc0/j/a;->m(Lkotlinx/coroutines/Job;Ljava/util/concurrent/CancellationException;ILjava/lang/Object;)V
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Landroidx/lifecycle/LifecycleController;->finish()V
goto :goto_0
:cond_0
invoke-interface {p1}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
move-result-object p1
2020-09-17 00:45:48 +00:00
invoke-static {p1, v0}, Lc0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State;
move-result-object p1
iget-object p2, p0, Landroidx/lifecycle/LifecycleController$observer$1;->this$0:Landroidx/lifecycle/LifecycleController;
invoke-static {p2}, Landroidx/lifecycle/LifecycleController;->access$getMinState$p(Landroidx/lifecycle/LifecycleController;)Landroidx/lifecycle/Lifecycle$State;
move-result-object p2
invoke-virtual {p1, p2}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I
move-result p1
if-gez p1, :cond_1
iget-object p1, p0, Landroidx/lifecycle/LifecycleController$observer$1;->this$0:Landroidx/lifecycle/LifecycleController;
invoke-static {p1}, Landroidx/lifecycle/LifecycleController;->access$getDispatchQueue$p(Landroidx/lifecycle/LifecycleController;)Landroidx/lifecycle/DispatchQueue;
move-result-object p1
invoke-virtual {p1}, Landroidx/lifecycle/DispatchQueue;->pause()V
goto :goto_0
:cond_1
iget-object p1, p0, Landroidx/lifecycle/LifecycleController$observer$1;->this$0:Landroidx/lifecycle/LifecycleController;
invoke-static {p1}, Landroidx/lifecycle/LifecycleController;->access$getDispatchQueue$p(Landroidx/lifecycle/LifecycleController;)Landroidx/lifecycle/DispatchQueue;
move-result-object p1
invoke-virtual {p1}, Landroidx/lifecycle/DispatchQueue;->resume()V
:goto_0
return-void
.end method