Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
Project
Project
Details
Activity
Releases
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
android
android_vedio
Commits
f23ec9ee
Commit
f23ec9ee
authored
Jul 17, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
4776f27b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
12 deletions
+29
-12
TxVideoAdapter.kt
...om/duben/speedplayletu/video/tx/adapter/TxVideoAdapter.kt
+15
-6
NewTxVideoAdapter.kt
.../speedplayletu/video/tx/newrecommend/NewTxVideoAdapter.kt
+14
-6
No files found.
video/app/src/main/java/com/duben/speedplayletu/video/tx/adapter/TxVideoAdapter.kt
View file @
f23ec9ee
...
@@ -87,12 +87,21 @@ class TxVideoAdapter : BaseMultiItemQuickAdapter<VideoMultiItemEntity, BaseViewH
...
@@ -87,12 +87,21 @@ class TxVideoAdapter : BaseMultiItemQuickAdapter<VideoMultiItemEntity, BaseViewH
val
adBtn
=
holder
.
getView
<
View
>(
R
.
id
.
unlock
)
val
adBtn
=
holder
.
getView
<
View
>(
R
.
id
.
unlock
)
vedioBean
?.
let
{
vedioBean
?.
let
{
try
{
try
{
val
unlockText
=
String
.
format
(
val
unlockText
=
if
(
it
.
adGiveVedioNum
>
1
)
{
String
.
format
(
"解锁%s·第%d-%d集"
,
"解锁%s·第%d-%d集"
,
it
.
title
,
it
.
title
,
it
.
unlockIndex
+
1
,
it
.
unlockIndex
+
1
,
it
.
unlockIndex
+
it
.
adGiveVedioNum
it
.
unlockIndex
+
it
.
adGiveVedioNum
)
)
}
else
{
String
.
format
(
"解锁%s·第%d集"
,
it
.
title
,
it
.
unlockIndex
+
1
)
}
AppConfig
.
detailDialogUnlockText
=
unlockText
AppConfig
.
detailDialogUnlockText
=
unlockText
}
catch
(
e
:
Exception
)
{
}
catch
(
e
:
Exception
)
{
...
...
video/app/src/main/java/com/duben/speedplayletu/video/tx/newrecommend/NewTxVideoAdapter.kt
View file @
f23ec9ee
...
@@ -59,12 +59,20 @@ class NewTxVideoAdapter : BaseMultiItemQuickAdapter<VideoMultiItemEntity4, BaseV
...
@@ -59,12 +59,20 @@ class NewTxVideoAdapter : BaseMultiItemQuickAdapter<VideoMultiItemEntity4, BaseV
val
adBtn
=
holder
.
getView
<
View
>(
R
.
id
.
unlock
)
val
adBtn
=
holder
.
getView
<
View
>(
R
.
id
.
unlock
)
vedioBean
?.
let
{
vedioBean
?.
let
{
try
{
try
{
val
unlockText
=
String
.
format
(
val
unlockText
=
if
(
it
.
adGiveVedioNum
>
1
)
{
String
.
format
(
"解锁%s·第%d-%d集"
,
"解锁%s·第%d-%d集"
,
it
.
title
,
it
.
title
,
it
.
unlockIndex
+
1
,
it
.
unlockIndex
+
1
,
it
.
unlockIndex
+
it
.
adGiveVedioNum
it
.
unlockIndex
+
it
.
adGiveVedioNum
)
)
}
else
{
String
.
format
(
"解锁%s·第%d集"
,
it
.
title
,
it
.
unlockIndex
+
1
)
}
AppConfig
.
detailDialogUnlockText
=
unlockText
AppConfig
.
detailDialogUnlockText
=
unlockText
}
catch
(
e
:
Exception
)
{
}
catch
(
e
:
Exception
)
{
...
...
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