apkfuckery/com.discord/smali/androidx/lifecycle/MediatorLiveData$Source.smali

138 lines
3.6 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/lifecycle/MediatorLiveData$Source;
2019-07-24 11:27:29 +00:00
.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;
2019-12-06 03:29:40 +00:00
accessFlags = 0x9
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
.field public final mLiveData:Landroidx/lifecycle/LiveData;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/lifecycle/LiveData<",
"TV;>;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final mObserver:Landroidx/lifecycle/Observer;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/lifecycle/Observer<",
"-TV;>;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public mVersion:I
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/lifecycle/LiveData<",
"TV;>;",
"Landroidx/lifecycle/Observer<",
"-TV;>;)V"
}
.end annotation
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
2019-12-06 03:29:40 +00:00
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
.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;
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;
invoke-virtual {v0}, Landroidx/lifecycle/LiveData;->getVersion()I
move-result v0
iput v0, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mVersion:I
iget-object v0, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mObserver:Landroidx/lifecycle/Observer;
invoke-interface {v0, p1}, Landroidx/lifecycle/Observer;->onChanged(Ljava/lang/Object;)V
:cond_0
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public plug()V
2019-07-24 11:27:29 +00:00
.locals 1
iget-object v0, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mLiveData:Landroidx/lifecycle/LiveData;
invoke-virtual {v0, p0}, Landroidx/lifecycle/LiveData;->observeForever(Landroidx/lifecycle/Observer;)V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public unplug()V
2019-07-24 11:27:29 +00:00
.locals 1
iget-object v0, p0, Landroidx/lifecycle/MediatorLiveData$Source;->mLiveData:Landroidx/lifecycle/LiveData;
invoke-virtual {v0, p0}, Landroidx/lifecycle/LiveData;->removeObserver(Landroidx/lifecycle/Observer;)V
return-void
.end method