Commit 191699b7 by YKai

feat:im组件升级,解决消息点击更多按钮无反应问题

parent 903b4414
...@@ -10,7 +10,7 @@ ext { ...@@ -10,7 +10,7 @@ ext {
"m-fm" : "0.0.30.03", "m-fm" : "0.0.30.03",
"m-user" : "0.0.61.30", "m-user" : "0.0.61.30",
"m-home" : "0.0.22.60", "m-home" : "0.0.22.60",
"m-im" : "0.0.18.51", "m-im" : "0.0.18.52",
"m-dynamic" : "0.0.7.21", "m-dynamic" : "0.0.7.21",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
...@@ -93,7 +93,7 @@ ext { ...@@ -93,7 +93,7 @@ ext {
"m-fm" : "0.0.30.01", "m-fm" : "0.0.30.01",
"m-user" : "0.0.61.18", "m-user" : "0.0.61.18",
"m-home" : "0.0.22.54", "m-home" : "0.0.22.54",
"m-im" : "0.0.18.51", "m-im" : "0.0.18.52",
"m-dynamic" : "0.0.7.19", "m-dynamic" : "0.0.7.19",
"m-article" : "0.0.0.6", "m-article" : "0.0.0.6",
......
...@@ -2,6 +2,7 @@ package com.yidianling.im.ui.page ...@@ -2,6 +2,7 @@ package com.yidianling.im.ui.page
import android.animation.ObjectAnimator import android.animation.ObjectAnimator
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.Context
import android.os.Bundle import android.os.Bundle
import androidx.fragment.app.Fragment import androidx.fragment.app.Fragment
import androidx.viewpager.widget.ViewPager import androidx.viewpager.widget.ViewPager
...@@ -50,7 +51,7 @@ import java.util.concurrent.TimeUnit ...@@ -50,7 +51,7 @@ import java.util.concurrent.TimeUnit
@Route(path = "/im/im") @Route(path = "/im/im")
class NewMultiMessageFragment : BaseFragment() { class NewMultiMessageFragment : BaseFragment() {
private val mContext = context private lateinit var mContext:Context
private var defaultTranslateX: Float? = null private var defaultTranslateX: Float? = null
private var mFragmentsList: ArrayList<Fragment> = ArrayList(3) private var mFragmentsList: ArrayList<Fragment> = ArrayList(3)
private var chatSettingPopupWindow: ChatSettingPopupWindow? = null //右上角弹框 private var chatSettingPopupWindow: ChatSettingPopupWindow? = null //右上角弹框
...@@ -73,6 +74,7 @@ class NewMultiMessageFragment : BaseFragment() { ...@@ -73,6 +74,7 @@ class NewMultiMessageFragment : BaseFragment() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
mContext = requireContext()
EventBus.getDefault().register(this) EventBus.getDefault().register(this)
} }
...@@ -236,7 +238,7 @@ class NewMultiMessageFragment : BaseFragment() { ...@@ -236,7 +238,7 @@ class NewMultiMessageFragment : BaseFragment() {
if (!ImIn.isLogin()) { if (!ImIn.isLogin()) {
ToastUtil.toastShort("请登录后再试") ToastUtil.toastShort("请登录后再试")
} else { } else {
chatSettingPopupWindow = ChatSettingPopupWindow(mContext!!, object : ChatSettingPopupWindow.OnChatSettingClickListener { chatSettingPopupWindow = ChatSettingPopupWindow(mContext, object : ChatSettingPopupWindow.OnChatSettingClickListener {
override fun onAllReadClick() { override fun onAllReadClick() {
messageChatSettingtDialog = MessageChatSettingDialog(mContext, object : MessageChatSettingDialog.OnMessageChatSettingDialog { messageChatSettingtDialog = MessageChatSettingDialog(mContext, object : MessageChatSettingDialog.OnMessageChatSettingDialog {
override fun onSure() { override fun onSure() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment