Commit fe7fc7d7 by 万齐军

Merge branch 'feat/qj/confide2_record_data' into 'd/v4.3.97'

feat: 倾诉新增埋点

See merge request app_android_lib/YDL-Component!158
parents 1280a706 0c5b0668
...@@ -50,7 +50,6 @@ import com.ydl.ydlcommon.base.BaseMvpActivity ...@@ -50,7 +50,6 @@ import com.ydl.ydlcommon.base.BaseMvpActivity
import com.ydl.ydlcommon.modular.ModularServiceManager 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.ScreenUtil
import com.ydl.ydlcommon.utils.StatusBarUtils import com.ydl.ydlcommon.utils.StatusBarUtils
import com.ydl.ydlcommon.utils.Utils import com.ydl.ydlcommon.utils.Utils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
...@@ -485,7 +484,7 @@ class AudioHomeActivity : ...@@ -485,7 +484,7 @@ class AudioHomeActivity :
//权限申请 //权限申请
requestPermission() requestPermission()
ActionCountUtils.record("call_phone_page", "call_phone_page_visit", "0", "1") ActionCountUtils.record("call_phone_page", "call_phone_page_visit", listenerUid ?: "0", "1")
} }
......
...@@ -99,7 +99,7 @@ class ExpertIntroActivity : AppCompatActivity() { ...@@ -99,7 +99,7 @@ class ExpertIntroActivity : AppCompatActivity() {
binding.viewPager.adapter = adapter binding.viewPager.adapter = adapter
binding.viewPager.registerOnPageChangeCallback(object : ViewPager2.OnPageChangeCallback() { binding.viewPager.registerOnPageChangeCallback(object : ViewPager2.OnPageChangeCallback() {
override fun onPageSelected(position: Int) { override fun onPageSelected(position: Int) {
adapter.onSelect(position) adapter.onSelect(position, lastSelectPos)
if (position == data.size - 1 && lastSelectPos < position) { if (position == data.size - 1 && lastSelectPos < position) {
loadMore() loadMore()
} }
......
...@@ -166,7 +166,7 @@ internal class IntroAdapter( ...@@ -166,7 +166,7 @@ internal class IntroAdapter(
ijkVideoView?.pause() ijkVideoView?.pause()
} }
fun onSelect(position: Int) { fun onSelect(position: Int, lastPos:Int) {
curPos = position curPos = position
onLoadDialStatus(position) onLoadDialStatus(position)
if (!ConfideNetworkUtil.isWifi(context) && !hasAgreePlayWithoutWiFi) { if (!ConfideNetworkUtil.isWifi(context) && !hasAgreePlayWithoutWiFi) {
...@@ -177,6 +177,15 @@ internal class IntroAdapter( ...@@ -177,6 +177,15 @@ internal class IntroAdapter(
// entry.value.seekTo(0) // entry.value.seekTo(0)
entry.value.start() entry.value.start()
} else { } else {
if (entry.key == lastPos) {
ActionCountUtils.record(
"listen_counselor_content_play_page",
"listen_counselor_content_playtime_click",
data[lastPos].confideId ?: "",
if (data[lastPos].isVideo) "1" else "2",
(entry.value.currentPosition / 1000F).toString()
)
}
entry.value.seekTo(0) entry.value.seekTo(0)
entry.value.pause() entry.value.pause()
} }
......
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