ソースを参照

feat: delete bind

tongmengxiao 5 ヶ月 前
コミット
f996edbdde

+ 0 - 7
home/src/main/java/com/swago/home/HomeActivity.kt

@@ -194,13 +194,6 @@ class HomeActivity : BaseXActivity<ActivityHomeBinding>(), IPayCallback {
             userVm.getUserInfo()
         }
 
-        homeVm.bindAnchorFun = {
-            val currentActivity = ActivityManagerUtil.get().currentActivity()
-            if (currentActivity is FragmentActivity){
-                InviteBindingDialog.newInstance().show(currentActivity.supportFragmentManager,"InviteBindingDialog")
-            }
-        }
-
         homeVm.closeAccountFun = {
             val currentActivity = ActivityManagerUtil.get().currentActivity()
             if (currentActivity is FragmentActivity){

+ 0 - 9
home/src/main/java/com/swago/home/innerhome/HomeVm.kt

@@ -27,7 +27,6 @@ import kotlinx.coroutines.async
 class HomeVm(application: Application) : BaseViewModel(application) {
 
     var changeNameChangeFun:((data: ChangeNameData) -> Unit)? = null
-    var bindAnchorFun:((data: BindAnchorData) -> Unit)? = null
     var closeAccountFun:((data: CloseAccountData) -> Unit)? = null
 
     val imGroupNewMsgListener = IMGroupNewMsgListener()
@@ -46,14 +45,6 @@ class HomeVm(application: Application) : BaseViewModel(application) {
             }
         }
 
-        imGroupNewMsgListener.handleMsgType<CusNewMsgBean<BindAnchorData>>(
-            bind_anchor
-        ){
-            it.data?.let {
-                bindAnchorFun?.invoke(it)
-            }
-        }
-
         imGroupNewMsgListener.handleMsgType<CusNewMsgBean<CloseAccountData>>(
             close_account
         ){