NervPlayViewModel$1.smali

.class final Lcom/imo/android/imoim/player/NervPlayViewModel$1;
.super Lsg/bigo/nerv/GlobalEventListener;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/imo/android/imoim/player/NervPlayViewModel;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/player/NervPlayViewModel;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/player/NervPlayViewModel;)V
    .registers 2

    .line 61
    iput-object p1, p0, Lcom/imo/android/imoim/player/NervPlayViewModel$1;->a:Lcom/imo/android/imoim/player/NervPlayViewModel;

    invoke-direct {p0}, Lsg/bigo/nerv/GlobalEventListener;-><init>()V

    return-void
.end method


# virtual methods
.method public final OnEvent(Lsg/bigo/nerv/GlobalEvent;Ljava/lang/String;)V
    .registers 6

    .line 64
    iget-object v0, p0, Lcom/imo/android/imoim/player/NervPlayViewModel$1;->a:Lcom/imo/android/imoim/player/NervPlayViewModel;

    invoke-static {v0}, Lcom/imo/android/imoim/player/NervPlayViewModel;->a(Lcom/imo/android/imoim/player/NervPlayViewModel;)Landroidx/lifecycle/MutableLiveData;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    .line 65
    sget-object v0, Lsg/bigo/nerv/GlobalEvent;->HTTP_START:Lsg/bigo/nerv/GlobalEvent;

    if-eq p1, v0, :cond_11

    sget-object v0, Lsg/bigo/nerv/GlobalEvent;->HTTP_END:Lsg/bigo/nerv/GlobalEvent;

    if-ne p1, v0, :cond_1f

    :cond_11
    const/4 v0, 0x1

    .line 66
    invoke-static {v0}, Lcom/imo/android/imoim/player/d;->a(B)Lcom/imo/android/imoim/player/d;

    move-result-object v1

    sget-object v2, Lsg/bigo/nerv/GlobalEvent;->HTTP_START:Lsg/bigo/nerv/GlobalEvent;

    if-ne p1, v2, :cond_1b

    goto :goto_1c

    :cond_1b
    const/4 v0, 0x0

    :goto_1c
    invoke-virtual {v1, v0, p2}, Lcom/imo/android/imoim/player/d;->a(ZLjava/lang/String;)V

    :cond_1f
    return-void
.end method