.class final Lcom/moji/mjweather/voice/PlayerUtil$4; .super Ljava/lang/Object; .source "PlayerUtil.java" # interfaces .implements Lcom/moji/mjweather/voice/VoiceContentMgr$OnPrepareFileListener; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/moji/mjweather/voice/PlayerUtil;->a(Landroid/content/Context;Lcom/moji/mjweather/voice/VoicePlayer$OnVoiceFinishedListener;)V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x8 name = null .end annotation # instance fields .field final synthetic a:Landroid/content/Context; # direct methods .method constructor (Landroid/content/Context;)V .locals 0 .line 184 iput-object p1, p0, Lcom/moji/mjweather/voice/PlayerUtil$4;->a:Landroid/content/Context; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public a()V .locals 3 .line 210 invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus; move-result-object v0 new-instance v1, Lcom/moji/mjweather/voice/VoiceAnimationEvent; const/4 v2, 0x0 invoke-direct {v1, v2}, Lcom/moji/mjweather/voice/VoiceAnimationEvent;->(Z)V invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V return-void .end method .method public a(ZLcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;)V .locals 4 const-string v0, "tl" .line 188 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V const-string v2, "onPrepareFinish: " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V const v0, 0x7f0e0a24 const/4 v1, 0x0 if-eqz p1, :cond_2 .line 190 invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus; move-result-object p1 new-instance v2, Lcom/moji/mjweather/voice/VoiceAnimationEvent; const/4 v3, 0x1 invoke-direct {v2, v3}, Lcom/moji/mjweather/voice/VoiceAnimationEvent;->(Z)V invoke-virtual {p1, v2}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V .line 191 invoke-static {}, Lcom/moji/mjweather/voice/PlayerUtil;->c()Lcom/moji/mjweather/voice/VoicePlayer; move-result-object p1 if-eqz p1, :cond_0 invoke-static {}, Lcom/moji/mjweather/voice/PlayerUtil;->c()Lcom/moji/mjweather/voice/VoicePlayer; move-result-object p1 invoke-virtual {p1}, Lcom/moji/mjweather/voice/VoicePlayer;->a()Z move-result p1 if-eqz p1, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 if-eqz p2, :cond_1 if-eqz p3, :cond_1 .line 193 iget p2, p2, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I if-nez p2, :cond_1 iget p2, p3, Lcom/moji/mjweather/voice/VoiceContentMgr$CombineResult;->a:I if-nez p2, :cond_1 if-eqz p1, :cond_1 .line 195 invoke-static {}, Lcom/moji/mjweather/voice/PlayerUtil;->c()Lcom/moji/mjweather/voice/VoicePlayer; move-result-object p1 invoke-virtual {p1}, Lcom/moji/mjweather/voice/VoicePlayer;->b()V .line 196 invoke-static {v3}, Lcom/moji/mjweather/voice/PlayerUtil;->a(Z)V goto :goto_1 .line 198 :cond_1 invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus; move-result-object p1 new-instance p2, Lcom/moji/mjweather/voice/VoiceAnimationEvent; invoke-direct {p2, v1}, Lcom/moji/mjweather/voice/VoiceAnimationEvent;->(Z)V invoke-virtual {p1, p2}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V const-string p1, "PlayerUtil" const-string p2, "voice_play_error 2" .line 199 invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V .line 200 iget-object p1, p0, Lcom/moji/mjweather/voice/PlayerUtil$4;->a:Landroid/content/Context; iget-object p2, p0, Lcom/moji/mjweather/voice/PlayerUtil$4;->a:Landroid/content/Context; invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object p2 invoke-virtual {p2, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String; move-result-object p2 invoke-static {p1, p2, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast; move-result-object p1 invoke-virtual {p1}, Landroid/widget/Toast;->show()V goto :goto_1 .line 203 :cond_2 invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus; move-result-object p1 new-instance p2, Lcom/moji/mjweather/voice/VoiceAnimationEvent; invoke-direct {p2, v1}, Lcom/moji/mjweather/voice/VoiceAnimationEvent;->(Z)V invoke-virtual {p1, p2}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V .line 204 iget-object p1, p0, Lcom/moji/mjweather/voice/PlayerUtil$4;->a:Landroid/content/Context; iget-object p2, p0, Lcom/moji/mjweather/voice/PlayerUtil$4;->a:Landroid/content/Context; invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object p2 invoke-virtual {p2, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String; move-result-object p2 invoke-static {p1, p2, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast; move-result-object p1 invoke-virtual {p1}, Landroid/widget/Toast;->show()V :goto_1 return-void .end method