临时群,声音
This commit is contained in:
parent
e9147b1527
commit
967700ff58
|
|
@ -289,6 +289,7 @@ class LoginActivity : AppCompatActivity() {
|
|||
val gtype = group.optString("gtype", "")
|
||||
if (gtype == "2") {
|
||||
val gname = group.optString("gname", "临时群组")
|
||||
val gid = group.optString("gid", "")
|
||||
Timber.tag("TempGroup").d("发现临时群组: $gname")
|
||||
// 打开临时呼叫页面
|
||||
val appCtx = com.stand.standapp.MyApplication.getAppInstance()
|
||||
|
|
@ -297,6 +298,7 @@ class LoginActivity : AppCompatActivity() {
|
|||
TempCallActivity::class.java
|
||||
)
|
||||
intent.putExtra("group_name", gname)
|
||||
intent.putExtra("gid", gid)
|
||||
intent.addFlags(
|
||||
android.content.Intent.FLAG_ACTIVITY_NEW_TASK or
|
||||
android.content.Intent.FLAG_ACTIVITY_MULTIPLE_TASK or
|
||||
|
|
|
|||
|
|
@ -102,8 +102,9 @@ class TempCallActivity : AppCompatActivity() {
|
|||
isMinimized = false
|
||||
|
||||
val groupName = intent.getStringExtra("group_name") ?: "临时会话"
|
||||
val gid = intent.getStringExtra("gid") ?: ""
|
||||
currentGroupName = groupName
|
||||
currentTempGroupId = com.example.kingway.ptt.SendAtUtil.str2HexStr(groupName)
|
||||
currentTempGroupId = com.example.kingway.ptt.SendAtUtil.str2HexStr(gid)
|
||||
MainActivity.executeJs("if(window.startPullGroupLock){ window.startPullGroupLock('$currentTempGroupId'); }")
|
||||
findViewById<TextView>(R.id.tv_group_name).text = groupName
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue