Commit 4eb74f2b authored by jyx's avatar jyx

代码优化

parent 3081258c
...@@ -297,14 +297,19 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView, ...@@ -297,14 +297,19 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
val data = mutableListOf<VideoMultiItemEntity>() val data = mutableListOf<VideoMultiItemEntity>()
if (videos.size > 0) { if (videos.size > 0) {
for (video in videos) { for (video in videos) {
val item = VideoMultiItemEntity(MULTI_ITEM_1, video, VideoModel(video.vedioUrl)) if (video.isLock) {
data.add(item) val item = VideoMultiItemEntity(MULTI_ITEM_2, video, VideoModel(video.vedioUrl))
} data.add(item)
if (mVedioBean!!.unlockIndex < mVedioBean!!.vedioTotal) { } else {
val item = val item = VideoMultiItemEntity(MULTI_ITEM_1, video, VideoModel(video.vedioUrl))
VideoMultiItemEntity(MULTI_ITEM_2, videos[0], VideoModel(videos[0].vedioUrl)) data.add(item)
data.add(item) }
} }
// if (mVedioBean!!.unlockIndex < mVedioBean!!.vedioTotal) {
// val item =
// VideoMultiItemEntity(MULTI_ITEM_2, videos[0], VideoModel(videos[0].vedioUrl))
// data.add(item)
// }
} }
return data return data
} }
......
...@@ -29,6 +29,9 @@ allprojects { ...@@ -29,6 +29,9 @@ allprojects {
google() google()
jcenter() jcenter()
mavenCentral() // Maven Central repository mavenCentral() // Maven Central repository
maven {
url "https://maven.google.com"
}
maven { url "https://jitpack.io" } maven { url "https://jitpack.io" }
maven { url "https://s01.oss.sonatype.org/content/groups/public" } maven { url "https://s01.oss.sonatype.org/content/groups/public" }
// 穿山甲 // 穿山甲
......
...@@ -37,7 +37,7 @@ dependencies { ...@@ -37,7 +37,7 @@ dependencies {
// implementation 'androidx.appcompat:appcompat:1.2.0' // implementation 'androidx.appcompat:appcompat:1.2.0'
// implementation 'com.google.android.material:material:1.3.0' // implementation 'com.google.android.material:material:1.3.0'
api 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+' api 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:5.4.0'
compileOnly project(":rxpay") compileOnly project(":rxpay")
} }
\ No newline at end of file
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