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
4262a877
Commit
4262a877
authored
Jul 21, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
6e0b7e23
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
Constant.kt
.../app/src/main/java/com/xinfu/helivideo/common/Constant.kt
+5
-0
DramaApiDetailActivity.kt
.../java/com/xinfu/helivideo/video/DramaApiDetailActivity.kt
+3
-3
TxVideoActivity.kt
...rc/main/java/com/xinfu/helivideo/video/TxVideoActivity.kt
+3
-2
No files found.
video/app/src/main/java/com/xinfu/helivideo/common/Constant.kt
View file @
4262a877
...
...
@@ -22,6 +22,10 @@ object Constant {
const
val
MINTS_PKG_NAME
=
"com.xinfu.helivideo"
const
val
ACTION_EXIT_APP
=
"package.exit"
const
val
CARRIERTYPE_CSJ_VEDIO
=
"CSJ_VEDIO"
const
val
CARRIERTYPE_TX_VEDIO
=
"TX_VEDIO"
/**
* app应用首页 0-主页 1-中间 2-我
*/
...
...
@@ -29,6 +33,7 @@ object Constant {
const
val
FRAGMENT_CLICK_TWO
=
1
const
val
FRAGMENT_CLICK_THREE
=
2
// 协议地址
var
REGISTER_URL
=
"http://mints-web.mints-id.com/agreements/helivideo/yhxy.html"
//注册协议
var
PRIVACY_URL
=
"http://mints-web.mints-id.com/agreements/helivideo/syzc.html"
//隐私协议
...
...
video/app/src/main/java/com/xinfu/helivideo/video/DramaApiDetailActivity.kt
View file @
4262a877
...
...
@@ -370,8 +370,8 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
dpWidget
?.
let
{
widget
->
unlockBtn
?.
setOnClickListener
{
AdManager
.
instance
.
showAd
(
this
@DramaApiDetailActivity
,
""
,
val
carrierType
=
Constant
.
CARRIERTYPE_CSJ_VEDIO
AdManager
.
instance
.
showAd
(
this
@DramaApiDetailActivity
,
carrierType
,
object
:
AdStatusListener
{
var
canFail
=
false
override
fun
adSuccess
()
{
...
...
@@ -383,7 +383,7 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
NoPreAdManager
.
loadVideoAd
(
this
@DramaApiDetailActivity
,
""
,
object
:
AdStatusListener
{
carrierType
,
object
:
AdStatusListener
{
override
fun
adFail
()
{
showToast
(
"广告太火爆了,请稍候再试"
)
}
...
...
video/app/src/main/java/com/xinfu/helivideo/video/TxVideoActivity.kt
View file @
4262a877
...
...
@@ -233,7 +233,8 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
}
R
.
id
.
unlock
->
{
// 看广告解锁
AdManager
.
instance
.
showAd
(
this
,
""
,
val
carrierType
=
Constant
.
CARRIERTYPE_TX_VEDIO
AdManager
.
instance
.
showAd
(
this
,
carrierType
,
object
:
AdStatusListener
{
var
canFail
=
false
override
fun
adSuccess
()
{
...
...
@@ -245,7 +246,7 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
NoPreAdManager
.
loadVideoAd
(
this
@TxVideoActivity
,
""
,
object
:
AdStatusListener
{
carrierType
,
object
:
AdStatusListener
{
override
fun
adFail
()
{
showToast
(
"广告太火爆了,请稍候再试"
)
}
...
...
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