fix bugs.1 72
This commit is contained in:
@@ -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) // 全局开关
|
||||
|
||||
Reference in New Issue
Block a user