@Override public void onClick(View v) { try { mMikeView.setEnabled(false); ECVoIPSetupManager setupManager = ECDevice.getECVoIPSetupManager(); if (setupManager != null) { setupManager.setMute(!isMikeEnable); isMikeEnable = setupManager.getMuteStatus(); } if (isMikeEnable) { initBottomStatus(0); } else { synchronized (mLock) { // new Thread(mikeAnimRunnable).start(); mLock.notify(); } } if (mCallback != null) { mCallback.onMeetingMicEnable(isMikeEnable); } mMikeView.setEnabled(true); } catch (Exception e) { e.printStackTrace(); } }
@Override public void run() { while (mStart) { LogUtil.d( TAG, "1mikeAnimRunnable isJion : " + mStart + " , isMikeEnable :" + isMikeEnable); if (isMikeEnable) { synchronized (mLock) { try { mLock.wait(); } catch (InterruptedException e) { e.printStackTrace(); } } } ECHandlerHelper.postRunnOnUI(VoiceMeetingMicAnim.this); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } LogUtil.d( TAG, "1mikeAnimRunnable isJion : " + mStart + " , isMikeEnable :" + isMikeEnable); }