合并1
This commit is contained in:
@@ -578,11 +578,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
view
|
||||
)
|
||||
}
|
||||
mBinding!!.roomTop.muZc.setOnClickListener { view: View ->
|
||||
this.onClick(
|
||||
view
|
||||
)
|
||||
}
|
||||
|
||||
mBinding!!.inputMenu1.performClick()
|
||||
|
||||
V2TIMManager.getConversationManager()
|
||||
@@ -2748,22 +2744,6 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
aBoolean = true
|
||||
}
|
||||
}
|
||||
} else if (id == R.id.mu_zc) {
|
||||
val muZc: RoomKtvWheatView = mBinding!!.roomTop.muZc
|
||||
if (muZc.getUserId() != "") {
|
||||
RoomUserInfoFragment.show(
|
||||
roomId,
|
||||
muZc.getUserId(),
|
||||
muZc.pitNumber,
|
||||
getHostUser(),
|
||||
false,
|
||||
2,
|
||||
isNumberWhether(),
|
||||
supportFragmentManager
|
||||
)
|
||||
} else {
|
||||
MvpPre!!.applyPit(roomId, "9")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -516,7 +516,15 @@ public class RoomFragment extends BaseMvpFragment<RoomPresenter, FragmentRoomBin
|
||||
startActivity(new Intent(ActivityUtils.getTopActivity(), TransparentActivity.class));
|
||||
}
|
||||
|
||||
@SuppressLint("CheckResult")
|
||||
private void performFragmentReplacement(Fragment newFragment) {
|
||||
|
||||
if (newFragment instanceof RoomKtvFragment){
|
||||
((RoomActivity)ActivityUtils.getTopActivity()).getBinding().recyclerView.setVisibility(View.VISIBLE);
|
||||
}else {
|
||||
((RoomActivity)ActivityUtils.getTopActivity()).getBinding().recyclerView.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
if (getChildFragmentManager().isDestroyed()) {
|
||||
return; // 避免状态销毁后操作导致崩溃
|
||||
}
|
||||
@@ -557,6 +565,12 @@ public class RoomFragment extends BaseMvpFragment<RoomPresenter, FragmentRoomBin
|
||||
transaction.commitAllowingStateLoss();
|
||||
|
||||
currentFragment = newFragment;
|
||||
|
||||
Observable.timer(1000, TimeUnit.MILLISECONDS).observeOn(AndroidSchedulers.mainThread()).subscribe(
|
||||
aLong ->{
|
||||
startActivity(new Intent(ActivityUtils.getTopActivity(), TransparentActivity.class));
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user