fix bugs.1 72

This commit is contained in:
2025-12-10 15:30:34 +08:00
parent 2b137643f2
commit 611c4829ce
3 changed files with 16 additions and 9 deletions

View File

@@ -81,11 +81,7 @@ open class Application : CommonAppContext() {
override fun onNext(t: IndexRecommendRoom) {
if (!t.room_id.isNullOrEmpty()) {
inviteDialog = activity?.let { InviteDialog(it, t) }
if (inviteDialog?.isShowing == false) {
inviteDialog?.setData(t)
inviteDialog?.show()
}
showInviteDialog(activity, t)
}
}
})
@@ -98,6 +94,13 @@ open class Application : CommonAppContext() {
})
}
fun showInviteDialog(activity: Activity?,t: IndexRecommendRoom) {
if (inviteDialog == null) {
inviteDialog = activity?.let { InviteDialog(it, t) }
}
inviteDialog?.setData(t)
}
private fun initLogUtils() {
LogUtils.getConfig()
.setLogSwitch(true) // 全局开关