apkfuckery/com.discord/smali/androidx/lifecycle/Transformations$3.smali

94 lines
2.3 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Landroidx/lifecycle/Transformations$3;
2019-10-07 23:23:22 +00:00
.super Ljava/lang/Object;
.source "Transformations.java"
# interfaces
.implements Landroidx/lifecycle/Observer;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/lifecycle/Transformations;->distinctUntilChanged(Landroidx/lifecycle/LiveData;)Landroidx/lifecycle/LiveData;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x9
2019-10-07 23:23:22 +00:00
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroidx/lifecycle/Observer<",
"TX;>;"
}
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public mFirstTime:Z
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic val$outputLiveData:Landroidx/lifecycle/MediatorLiveData;
2019-10-07 23:23:22 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroidx/lifecycle/MediatorLiveData;)V
2019-10-07 23:23:22 +00:00
.locals 0
iput-object p1, p0, Landroidx/lifecycle/Transformations$3;->val$outputLiveData:Landroidx/lifecycle/MediatorLiveData;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 p1, 0x1
iput-boolean p1, p0, Landroidx/lifecycle/Transformations$3;->mFirstTime:Z
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public onChanged(Ljava/lang/Object;)V
2019-10-07 23:23:22 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TX;)V"
}
.end annotation
iget-object v0, p0, Landroidx/lifecycle/Transformations$3;->val$outputLiveData:Landroidx/lifecycle/MediatorLiveData;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;
2019-10-07 23:23:22 +00:00
move-result-object v0
iget-boolean v1, p0, Landroidx/lifecycle/Transformations$3;->mFirstTime:Z
if-nez v1, :cond_1
if-nez v0, :cond_0
if-nez p1, :cond_1
:cond_0
if-eqz v0, :cond_2
invoke-virtual {v0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_2
:cond_1
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/lifecycle/Transformations$3;->mFirstTime:Z
iget-object v0, p0, Landroidx/lifecycle/Transformations$3;->val$outputLiveData:Landroidx/lifecycle/MediatorLiveData;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, p1}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V
2019-10-07 23:23:22 +00:00
:cond_2
return-void
.end method