测试更改

This commit is contained in:
18401019693 2022-11-18 10:34:51 +08:00
parent 324917672c
commit 6654fe0434
2 changed files with 8 additions and 4 deletions

View File

@ -313,9 +313,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
if (mProcessResultUtil.checkPermissions(new String[]{Manifest.permission.RECORD_AUDIO})) { if (mProcessResultUtil.checkPermissions(new String[]{Manifest.permission.RECORD_AUDIO})) {
//按下 //按下
handler.postDelayed(mLongPressed, 500); handler.postDelayed(mLongPressed, 500);
if (voiceDialog == null) {
voiceDialog = new VoiceDialog();
}
} else { } else {
mProcessResultUtil.requestPermissions(new String[]{Manifest.permission.RECORD_AUDIO}, new Runnable() { mProcessResultUtil.requestPermissions(new String[]{Manifest.permission.RECORD_AUDIO}, new Runnable() {
@Override @Override
@ -372,7 +370,9 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE);
vibrator.vibrate(100);//震动时间(ms) vibrator.vibrate(100);//震动时间(ms)
if (voiceDialog == null) {
voiceDialog = new VoiceDialog();
}
voiceDialog.setListener(new VoiceDialog.VoiceListener() { voiceDialog.setListener(new VoiceDialog.VoiceListener() {
@Override @Override
public void timeout() { public void timeout() {

View File

@ -346,6 +346,10 @@ public class MainHomeCommunityViewHolder extends AbsMainHomeChildViewHolder impl
} else if (TextUtils.equals(event.getMethod(), "androidMethodLookToLive")) { } else if (TextUtils.equals(event.getMethod(), "androidMethodLookToLive")) {
//看直播 //看直播
gotoLive(event.getLiveId()); gotoLive(event.getLiveId());
}else if (TextUtils.equals(event.getMethod(), "isCloseNavigation")){
if(nowMainActivity!=null) {
nowMainActivity.isClose(event.getIsClose());
}
} }
} }
} }