apkfuckery/com.discord/smali/f/a/e/c.smali

147 lines
3.7 KiB
Smali
Raw Normal View History

2020-04-17 17:35:24 +00:00
.class public final Lf/a/e/c;
.super Ljava/lang/Object;
.source "AppMediaPlayer.kt"
# interfaces
.implements Lrx/functions/Action1;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/functions/Action1<",
"Lf/a/e/g$c;",
">;"
}
.end annotation
# instance fields
.field public final synthetic d:Lcom/discord/player/AppMediaPlayer;
# direct methods
.method public constructor <init>(Lcom/discord/player/AppMediaPlayer;)V
.locals 0
iput-object p1, p0, Lf/a/e/c;->d:Lcom/discord/player/AppMediaPlayer;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public call(Ljava/lang/Object;)V
.locals 7
check-cast p1, Lf/a/e/g$c;
iget p1, p1, Lf/a/e/g$c;->b:I
const/4 v0, 0x2
if-eq p1, v0, :cond_4
const/4 v0, 0x3
if-eq p1, v0, :cond_2
const/4 v0, 0x4
if-eq p1, v0, :cond_0
goto :goto_0
:cond_0
iget-object p1, p0, Lf/a/e/c;->d:Lcom/discord/player/AppMediaPlayer;
iget-object p1, p1, Lcom/discord/player/AppMediaPlayer;->a:Lrx/subjects/PublishSubject;
sget-object v0, Lcom/discord/player/AppMediaPlayer$Event$e;->a:Lcom/discord/player/AppMediaPlayer$Event$e;
invoke-virtual {p1, v0}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
iget-object p1, p0, Lf/a/e/c;->d:Lcom/discord/player/AppMediaPlayer;
iget-object p1, p1, Lcom/discord/player/AppMediaPlayer;->b:Lrx/Subscription;
if-eqz p1, :cond_1
invoke-interface {p1}, Lrx/Subscription;->unsubscribe()V
:cond_1
iget-object p1, p0, Lf/a/e/c;->d:Lcom/discord/player/AppMediaPlayer;
invoke-static {p1}, Lcom/discord/player/AppMediaPlayer;->a(Lcom/discord/player/AppMediaPlayer;)V
goto :goto_0
:cond_2
iget-object p1, p0, Lf/a/e/c;->d:Lcom/discord/player/AppMediaPlayer;
iget-object p1, p1, Lcom/discord/player/AppMediaPlayer;->a:Lrx/subjects/PublishSubject;
sget-object v0, Lcom/discord/player/AppMediaPlayer$Event$a;->a:Lcom/discord/player/AppMediaPlayer$Event$a;
invoke-virtual {p1, v0}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
iget-object p1, p0, Lf/a/e/c;->d:Lcom/discord/player/AppMediaPlayer;
iget-object v0, p1, Lcom/discord/player/AppMediaPlayer;->b:Lrx/Subscription;
if-eqz v0, :cond_3
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
:cond_3
const-wide/16 v3, 0x1f4
sget-object v5, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
iget-object v6, p1, Lcom/discord/player/AppMediaPlayer;->h:Lrx/Scheduler;
move-wide v1, v3
invoke-static/range {v1 .. v6}, Lrx/Observable;->a(JJLjava/util/concurrent/TimeUnit;Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
2020-04-17 19:35:49 +00:00
invoke-static {}, Lg0/j/b/a;->a()Lrx/Scheduler;
2020-04-17 17:35:24 +00:00
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->a(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
new-instance v1, Lf/a/e/d;
invoke-direct {v1, p1}, Lf/a/e/d;-><init>(Lcom/discord/player/AppMediaPlayer;)V
invoke-virtual {v0, v1}, Lrx/Observable;->c(Lrx/functions/Action1;)Lrx/Subscription;
move-result-object v0
iput-object v0, p1, Lcom/discord/player/AppMediaPlayer;->b:Lrx/Subscription;
goto :goto_0
:cond_4
iget-object p1, p0, Lf/a/e/c;->d:Lcom/discord/player/AppMediaPlayer;
iget-object p1, p1, Lcom/discord/player/AppMediaPlayer;->a:Lrx/subjects/PublishSubject;
sget-object v0, Lcom/discord/player/AppMediaPlayer$Event$b;->a:Lcom/discord/player/AppMediaPlayer$Event$b;
invoke-virtual {p1, v0}, Lrx/subjects/PublishSubject;->onNext(Ljava/lang/Object;)V
:goto_0
return-void
.end method