94 lines
2.3 KiB
Smali
94 lines
2.3 KiB
Smali
|
.class public final Landroidx/lifecycle/Transformations$3;
|
||
|
.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;
|
||
|
accessFlags = 0x9
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/lang/Object;",
|
||
|
"Landroidx/lifecycle/Observer<",
|
||
|
"TX;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public mFirstTime:Z
|
||
|
|
||
|
.field public final synthetic val$outputLiveData:Landroidx/lifecycle/MediatorLiveData;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Landroidx/lifecycle/MediatorLiveData;)V
|
||
|
.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
|
||
|
.method public onChanged(Ljava/lang/Object;)V
|
||
|
.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;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;
|
||
|
|
||
|
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;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V
|
||
|
|
||
|
:cond_2
|
||
|
return-void
|
||
|
.end method
|