From 270a7cc1d90bcffb5a387e44663eb39a9e5d3881 Mon Sep 17 00:00:00 2001 From: qzs Date: Wed, 30 Aug 2017 15:33:11 +0800 Subject: [PATCH] update --- .../java/com/android/qzs/voiceannouncements/MainActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/android/qzs/voiceannouncements/MainActivity.java b/app/src/main/java/com/android/qzs/voiceannouncements/MainActivity.java index b4a7707..da36596 100644 --- a/app/src/main/java/com/android/qzs/voiceannouncements/MainActivity.java +++ b/app/src/main/java/com/android/qzs/voiceannouncements/MainActivity.java @@ -37,7 +37,7 @@ public void onClick(View v) { } private synchronized void Play(final String str) { - System.out.println("aDASDASDASDAD "+VoiceUtils.with(this).GetIsPlay()); + if (VoiceUtils.with(this).GetIsPlay()){ System.out.println("正在播放语音 "); new Thread() { @@ -45,7 +45,7 @@ private synchronized void Play(final String str) { public void run() { super.run(); try { - Thread.sleep(100);//休眠3秒 + Thread.sleep(100);//休眠0.1秒 Play(str); } catch (InterruptedException e) { e.printStackTrace();