Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
0c5b0668
Commit
0c5b0668
authored
Jun 14, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 倾诉新增埋点
parent
26ebd735
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+1
-2
ExpertIntroActivity.kt
m-confide/src/main/java/com/ydl/confide/intro/ExpertIntroActivity.kt
+1
-1
IntroAdapter.kt
m-confide/src/main/java/com/ydl/confide/intro/IntroAdapter.kt
+10
-1
No files found.
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
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"
)
}
}
...
...
m-confide/src/main/java/com/ydl/confide/intro/ExpertIntroActivity.kt
View file @
0c5b0668
...
@@ -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
()
}
}
...
...
m-confide/src/main/java/com/ydl/confide/intro/IntroAdapter.kt
View file @
0c5b0668
...
@@ -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
()
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment