apkfuckery/com.discord/smali/androidx/room/InvalidationLiveDataContainer.smali
2020-05-17 12:40:10 +00:00

99 lines
2.7 KiB
Smali

.class public Landroidx/room/InvalidationLiveDataContainer;
.super Ljava/lang/Object;
.source "InvalidationLiveDataContainer.java"
# instance fields
.field public final mDatabase:Landroidx/room/RoomDatabase;
.field public final mLiveDataSet:Ljava/util/Set;
.annotation build Landroidx/annotation/VisibleForTesting;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Landroidx/lifecycle/LiveData;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/room/RoomDatabase;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/IdentityHashMap;
invoke-direct {v0}, Ljava/util/IdentityHashMap;-><init>()V
invoke-static {v0}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Landroidx/room/InvalidationLiveDataContainer;->mLiveDataSet:Ljava/util/Set;
iput-object p1, p0, Landroidx/room/InvalidationLiveDataContainer;->mDatabase:Landroidx/room/RoomDatabase;
return-void
.end method
# virtual methods
.method public create([Ljava/lang/String;ZLjava/util/concurrent/Callable;)Landroidx/lifecycle/LiveData;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([",
"Ljava/lang/String;",
"Z",
"Ljava/util/concurrent/Callable<",
"TT;>;)",
"Landroidx/lifecycle/LiveData<",
"TT;>;"
}
.end annotation
new-instance v6, Landroidx/room/RoomTrackingLiveData;
iget-object v1, p0, Landroidx/room/InvalidationLiveDataContainer;->mDatabase:Landroidx/room/RoomDatabase;
move-object v0, v6
move-object v2, p0
move v3, p2
move-object v4, p3
move-object v5, p1
invoke-direct/range {v0 .. v5}, Landroidx/room/RoomTrackingLiveData;-><init>(Landroidx/room/RoomDatabase;Landroidx/room/InvalidationLiveDataContainer;ZLjava/util/concurrent/Callable;[Ljava/lang/String;)V
return-object v6
.end method
.method public onActive(Landroidx/lifecycle/LiveData;)V
.locals 1
iget-object v0, p0, Landroidx/room/InvalidationLiveDataContainer;->mLiveDataSet:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public onInactive(Landroidx/lifecycle/LiveData;)V
.locals 1
iget-object v0, p0, Landroidx/room/InvalidationLiveDataContainer;->mLiveDataSet:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
return-void
.end method