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

100 lines
2.7 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/room/InvalidationLiveDataContainer;
2019-10-07 23:23:22 +00:00
.super Ljava/lang/Object;
.source "InvalidationLiveDataContainer.java"
# instance fields
2019-12-06 03:29:40 +00:00
.field public final mDatabase:Landroidx/room/RoomDatabase;
.field public final mLiveDataSet:Ljava/util/Set;
.annotation build Landroidx/annotation/VisibleForTesting;
.end annotation
2019-10-07 23:23:22 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Landroidx/lifecycle/LiveData;",
">;"
}
.end annotation
.end field
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroidx/room/RoomDatabase;)V
2019-10-07 23:23:22 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public create([Ljava/lang/String;ZLjava/util/concurrent/Callable;)Landroidx/lifecycle/LiveData;
2019-10-07 23:23:22 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public onActive(Landroidx/lifecycle/LiveData;)V
2019-10-07 23:23:22 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public onInactive(Landroidx/lifecycle/LiveData;)V
2019-10-07 23:23:22 +00:00
.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