mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 09:32:27 -06:00
140 lines
3.5 KiB
Smali
140 lines
3.5 KiB
Smali
|
.class Landroidx/lifecycle/MediatorLiveData$Source;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "MediatorLiveData.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Landroidx/lifecycle/Observer;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Landroidx/lifecycle/MediatorLiveData;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0xa
|
||
|
name = "Source"
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<V:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">",
|
||
|
"Ljava/lang/Object;",
|
||
|
"Landroidx/lifecycle/Observer<",
|
||
|
"TV;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final mLiveData:Landroidx/lifecycle/LiveData;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Landroidx/lifecycle/LiveData<",
|
||
|
"TV;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field final mObserver:Landroidx/lifecycle/Observer;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Landroidx/lifecycle/Observer<",
|
||
|
"-TV;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field mVersion:I
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroidx/lifecycle/LiveData<",
|
||
|
"TV;>;",
|
||
|
"Landroidx/lifecycle/Observer<",
|
||
|
"-TV;>;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 154
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
const/4 v0, -0x1
|
||
|
|
||
|
iput v0, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mVersion:I
|
||
|
|
||
|
iput-object p1, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mLiveData:Landroidx/lifecycle/LiveData;
|
||
|
|
||
|
iput-object p2, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mObserver:Landroidx/lifecycle/Observer;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public onChanged(Ljava/lang/Object;)V
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(TV;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget v0, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mVersion:I
|
||
|
|
||
|
iget-object v1, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mLiveData:Landroidx/lifecycle/LiveData;
|
||
|
|
||
|
.line 169
|
||
|
invoke-virtual {v1}, Landroidx/lifecycle/LiveData;->getVersion()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eq v0, v1, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mLiveData:Landroidx/lifecycle/LiveData;
|
||
|
|
||
|
.line 170
|
||
|
invoke-virtual {v0}, Landroidx/lifecycle/LiveData;->getVersion()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mVersion:I
|
||
|
|
||
|
iget-object p0, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mObserver:Landroidx/lifecycle/Observer;
|
||
|
|
||
|
.line 171
|
||
|
invoke-interface {p0, p1}, Landroidx/lifecycle/Observer;->onChanged(Ljava/lang/Object;)V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method plug()V
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mLiveData:Landroidx/lifecycle/LiveData;
|
||
|
|
||
|
.line 160
|
||
|
invoke-virtual {v0, p0}, Landroidx/lifecycle/LiveData;->observeForever(Landroidx/lifecycle/Observer;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method unplug()V
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mLiveData:Landroidx/lifecycle/LiveData;
|
||
|
|
||
|
.line 164
|
||
|
invoke-virtual {v0, p0}, Landroidx/lifecycle/LiveData;->removeObserver(Landroidx/lifecycle/Observer;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|