|
@@ -5,6 +5,7 @@ import android.text.Editable
|
|
import android.text.TextWatcher
|
|
import android.text.TextWatcher
|
|
import android.view.Gravity
|
|
import android.view.Gravity
|
|
import android.view.View
|
|
import android.view.View
|
|
|
|
+import android.widget.Toast
|
|
import androidx.constraintlayout.widget.ConstraintLayout
|
|
import androidx.constraintlayout.widget.ConstraintLayout
|
|
import androidx.core.content.ContextCompat
|
|
import androidx.core.content.ContextCompat
|
|
import androidx.fragment.app.viewModels
|
|
import androidx.fragment.app.viewModels
|
|
@@ -22,7 +23,6 @@ import com.swago.room.util.IMSender
|
|
import com.swago.room.vm.RoomOtherVm
|
|
import com.swago.room.vm.RoomOtherVm
|
|
import com.tencent.imsdk.v2.V2TIMMessage
|
|
import com.tencent.imsdk.v2.V2TIMMessage
|
|
import com.tencent.imsdk.v2.V2TIMValueCallback
|
|
import com.tencent.imsdk.v2.V2TIMValueCallback
|
|
-import com.tencent.qcloud.tim.uikit.utils.ToastUtil
|
|
|
|
import kotlinx.coroutines.delay
|
|
import kotlinx.coroutines.delay
|
|
import kotlinx.coroutines.launch
|
|
import kotlinx.coroutines.launch
|
|
import org.json.JSONObject
|
|
import org.json.JSONObject
|
|
@@ -189,7 +189,11 @@ class SendMsgDialog : BaseXDFragment<DialogSendMsgBinding>() {
|
|
|
|
|
|
override fun onError(code: Int, desc: String?) {
|
|
override fun onError(code: Int, desc: String?) {
|
|
if (code == 10016){
|
|
if (code == 10016){
|
|
- ToastUtil.toastShortMessage(AppContext.getContext().getString(R.string.you_been_banned))
|
|
|
|
|
|
+ Toast.makeText(
|
|
|
|
+ AppContext.getContext(),
|
|
|
|
+ AppContext.getContext().resources.getString(R.string.you_been_banned),
|
|
|
|
+ Toast.LENGTH_SHORT
|
|
|
|
+ ).show()
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|