apkfuckery/com.discord/smali/androidx/room/InvalidationLiveDataContainer.smali

97 lines
2.6 KiB
Smali
Raw Normal View History

2019-10-07 23:23:22 +00:00
.class Landroidx/room/InvalidationLiveDataContainer;
.super Ljava/lang/Object;
.source "InvalidationLiveDataContainer.java"
# instance fields
.field private final mDatabase:Landroidx/room/RoomDatabase;
.field final mLiveDataSet:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Landroidx/lifecycle/LiveData;",
">;"
}
.end annotation
.end field
# direct methods
.method 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 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 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 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