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
608b937b
Commit
608b937b
authored
Nov 21, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
7ff96ca2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
build.gradle
video/app/build.gradle
+3
-0
LocalVedioManager.kt
...n/java/com/duben/xixiplaylet/manager/LocalVedioManager.kt
+13
-13
No files found.
video/app/build.gradle
View file @
608b937b
...
...
@@ -136,6 +136,7 @@ android {
}
}
}
dependencies
{
...
...
@@ -226,3 +227,5 @@ dependencies {
androidTestImplementation
'androidx.test.ext:junit:1.1.3'
androidTestImplementation
'androidx.test.espresso:espresso-core:3.4.0'
}
video/app/src/main/java/com/duben/xixiplaylet/manager/LocalVedioManager.kt
View file @
608b937b
...
...
@@ -99,25 +99,25 @@ object LocalVedioManager {
isPlayNext
:
Boolean
=
false
,
isThirdId
:
Boolean
=
false
)
{
if
(
data
?.
createType
==
1
)
{
//
if (data?.createType == 1) {
//自有短剧
val
bundle
=
Bundle
()
bundle
.
putString
(
Constant
.
VEDIO_BEAN
,
JsonUtil
.
toJson
(
data
))
bundle
.
putBoolean
(
Constant
.
VEDIO_NEXT
,
isPlayNext
)
bundle
.
putBoolean
(
Constant
.
VEDIO_THIRD
,
isThirdId
)
readyGo
(
activity
,
TxVideoActivity
::
class
.
java
,
bundle
)
}
else
if
(
data
?.
createType
==
3
)
{
//推荐短剧
val
bundle
=
Bundle
()
bundle
.
putString
(
Constant
.
VEDIO_BEAN
,
JsonUtil
.
toJson
(
data
))
readyGo
(
activity
,
NewTxVideoActivity
::
class
.
java
,
bundle
)
}
else
{
requestDrama
(
activity
,
data
)
}
if
(!
UserManager
.
getInstance
().
vipFlag
)
{
ExpressManager
.
instance
.
preLoadAd
()
}
//
} else if (data?.createType == 3) {
//
//推荐短剧
//
val bundle = Bundle()
//
bundle.putString(Constant.VEDIO_BEAN, JsonUtil.toJson(data))
//
readyGo(activity, NewTxVideoActivity::class.java, bundle)
//
} else {
//
requestDrama(activity, data)
//
}
//
//
if (!UserManager.getInstance().vipFlag) {
//
ExpressManager.instance.preLoadAd()
//
}
}
// 请求穿山甲数据
...
...
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