Commit dda503f5 by yjiucheng

声网

parent 4f1038e5
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ydl.audioim" > package="com.ydl.audioim">
<uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="android.permission.VIBRATE"/>
<application> <application>
<activity <activity
android:name=".AudioHomeActivity" android:name=".AudioHomeActivity"
android:screenOrientation="portrait" /> android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"
android:screenOrientation="portrait"/>
</application> </application>
</manifest> </manifest>
...@@ -53,6 +53,7 @@ import com.ydl.ydlcommon.modular.ModularServiceManager ...@@ -53,6 +53,7 @@ import com.ydl.ydlcommon.modular.ModularServiceManager
import com.ydl.ydlcommon.router.YdlCommonRouterManager import com.ydl.ydlcommon.router.YdlCommonRouterManager
import com.ydl.ydlcommon.utils.LogUtil import com.ydl.ydlcommon.utils.LogUtil
import com.ydl.ydlcommon.utils.StatusBarUtils import com.ydl.ydlcommon.utils.StatusBarUtils
import com.ydl.ydlcommon.utils.Utils
import com.ydl.ydlcommon.utils.log.LogHelper import com.ydl.ydlcommon.utils.log.LogHelper
import com.ydl.ydlcommon.utils.remind.ToastHelper import com.ydl.ydlcommon.utils.remind.ToastHelper
import com.yidianling.user.api.service.IUserService import com.yidianling.user.api.service.IUserService
...@@ -445,9 +446,15 @@ class AudioHomeActivity : ...@@ -445,9 +446,15 @@ class AudioHomeActivity :
tv_change_route.setOnClickListener { showChooseDialog(1) } tv_change_route.setOnClickListener { showChooseDialog(1) }
//挂断 //挂断
iv_hang_up.setOnClickListener { iv_hang_up.setOnClickListener {
if (Utils.isFastClick()) {
//防止连击
return@setOnClickListener
}
if (isConnectSuccess) { if (isConnectSuccess) {
updateExpertStatus(false, 1) updateExpertStatus(false, 1)
userCloseCalling() // userCloseCalling()
leaveChannel()
uploadLog()
} else { } else {
userCloseCalling() userCloseCalling()
} }
......
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