2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/stores/StoreVideoSupport;
|
|
|
|
.super Lcom/discord/stores/Store;
|
|
|
|
.source "StoreVideoSupport.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final isVideoSupportedCache:Lcom/discord/utilities/persister/Persister;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lcom/discord/utilities/persister/Persister<",
|
|
|
|
"Ljava/lang/Boolean;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/stores/Store;-><init>()V
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/utilities/persister/Persister;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object v1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v2, "VIDEO_IS_SUPPORTED"
|
|
|
|
|
|
|
|
invoke-direct {v0, v2, v1}, Lcom/discord/utilities/persister/Persister;-><init>(Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/stores/StoreVideoSupport;->isVideoSupportedCache:Lcom/discord/utilities/persister/Persister;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$isVideoSupportedCache$p(Lcom/discord/stores/StoreVideoSupport;)Lcom/discord/utilities/persister/Persister;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/stores/StoreVideoSupport;->isVideoSupportedCache:Lcom/discord/utilities/persister/Persister;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getAccountSupportsVideo()Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/lang/Boolean;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-29 21:44:44 +00:00
|
|
|
new-instance v1, Lk0/l/e/j;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-29 21:44:44 +00:00
|
|
|
invoke-direct {v1, v0}, Lk0/l/e/j;-><init>(Ljava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v0, "Observable.just(true)"
|
|
|
|
|
2020-09-29 21:44:44 +00:00
|
|
|
invoke-static {v1, v0}, Lb0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getDeviceSupportsVideo()Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/lang/Boolean;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-29 21:44:44 +00:00
|
|
|
new-instance v1, Lk0/l/e/j;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-29 21:44:44 +00:00
|
|
|
invoke-direct {v1, v0}, Lk0/l/e/j;-><init>(Ljava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v0, "Observable.just(true)"
|
|
|
|
|
2020-09-29 21:44:44 +00:00
|
|
|
invoke-static {v1, v0}, Lb0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final get()Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Ljava/lang/Boolean;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreVideoSupport;->isVideoSupportedCache:Lcom/discord/utilities/persister/Persister;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/persister/Persister;->getObservable()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v0}, Lrx/Observable;->q()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "isVideoSupportedCache\n \u2026 .distinctUntilChanged()"
|
|
|
|
|
2020-09-29 21:44:44 +00:00
|
|
|
invoke-static {v0, v1}, Lb0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public init(Landroid/content/Context;)V
|
|
|
|
.locals 11
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "context"
|
|
|
|
|
2020-09-29 21:44:44 +00:00
|
|
|
invoke-static {p1, v0}, Lb0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/stores/Store;->init(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/stores/StoreVideoSupport;->getDeviceSupportsVideo()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/stores/StoreVideoSupport;->getAccountSupportsVideo()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreVideoSupport$init$1;->INSTANCE:Lcom/discord/stores/StoreVideoSupport$init$1;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {p1, v0, v1}, Lrx/Observable;->j(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string p1, "Observable\n .comb\u2026portsVideo\n })"
|
|
|
|
|
2020-09-29 21:44:44 +00:00
|
|
|
invoke-static {v2, p1}, Lb0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-class v3, Lcom/discord/stores/StoreVideoSupport;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v8, Lcom/discord/stores/StoreVideoSupport$init$2;
|
|
|
|
|
|
|
|
invoke-direct {v8, p0}, Lcom/discord/stores/StoreVideoSupport$init$2;-><init>(Lcom/discord/stores/StoreVideoSupport;)V
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/16 v9, 0x1e
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v2 .. v10}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|