2020-11-12 02:11:44 +00:00
|
|
|
.class public abstract Landroidx/lifecycle/LiveData$ObserverWrapper;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "LiveData.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Landroidx/lifecycle/LiveData;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x401
|
|
|
|
name = "ObserverWrapper"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public mActive:Z
|
|
|
|
|
|
|
|
.field public mLastVersion:I
|
|
|
|
|
|
|
|
.field public final mObserver:Landroidx/lifecycle/Observer;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Landroidx/lifecycle/Observer<",
|
|
|
|
"-TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final synthetic this$0:Landroidx/lifecycle/LiveData;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroidx/lifecycle/Observer<",
|
|
|
|
"-TT;>;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->this$0:Landroidx/lifecycle/LiveData;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
const/4 p1, -0x1
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->mLastVersion:I
|
|
|
|
|
|
|
|
iput-object p2, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->mObserver:Landroidx/lifecycle/Observer;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public activeStateChanged(Z)V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->mActive:Z
|
|
|
|
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iput-boolean p1, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->mActive:Z
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
iget-object v0, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->this$0:Landroidx/lifecycle/LiveData;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
iget v1, v0, Landroidx/lifecycle/LiveData;->mActiveCount:I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const/4 v2, 0x1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
if-nez v1, :cond_1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const/4 v3, 0x1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2020-11-13 19:18:44 +00:00
|
|
|
const/4 v3, 0x0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-11-13 19:18:44 +00:00
|
|
|
if-eqz p1, :cond_2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2020-11-13 19:18:44 +00:00
|
|
|
const/4 v2, -0x1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:goto_1
|
2020-11-13 19:18:44 +00:00
|
|
|
add-int/2addr v1, v2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
iput v1, v0, Landroidx/lifecycle/LiveData;->mActiveCount:I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
if-eqz v3, :cond_3
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {v0}, Landroidx/lifecycle/LiveData;->onActive()V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
iget-object p1, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->this$0:Landroidx/lifecycle/LiveData;
|
|
|
|
|
|
|
|
iget v0, p1, Landroidx/lifecycle/LiveData;->mActiveCount:I
|
|
|
|
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->mActive:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroidx/lifecycle/LiveData;->onInactive()V
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
iget-boolean p1, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->mActive:Z
|
|
|
|
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->this$0:Landroidx/lifecycle/LiveData;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p0}, Landroidx/lifecycle/LiveData;->dispatchingValue(Landroidx/lifecycle/LiveData$ObserverWrapper;)V
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public detachObserver()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isAttachedTo(Landroidx/lifecycle/LifecycleOwner;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public abstract shouldBeActive()Z
|
|
|
|
.end method
|