將跳轉加上coroutine
This commit is contained in:
parent
9fc8673715
commit
b4346f142b
@ -141,6 +141,7 @@ class SplitViewFragment : Fragment() {
|
||||
return@setOnClickListener
|
||||
}
|
||||
stopAll()
|
||||
MainScope().launch {
|
||||
val item = data[position]
|
||||
val bundle = Bundle().apply {
|
||||
//putInt(MonitoringActivity.BUNDLE_DEVICE_ID, item.id)
|
||||
@ -158,6 +159,7 @@ class SplitViewFragment : Fragment() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun setAllUrl() {
|
||||
for (index in data.indices) {
|
||||
@ -179,9 +181,9 @@ class SplitViewFragment : Fragment() {
|
||||
for (index in data.indices) {
|
||||
videoViews[index].stopRetryCount()
|
||||
videoViews[index].stop()
|
||||
delay(500)
|
||||
}
|
||||
delay(300)
|
||||
}
|
||||
}.start()
|
||||
|
||||
companion object {
|
||||
private val TAG = SplitViewFragment::class.java.simpleName
|
||||
|
||||
Loading…
Reference in New Issue
Block a user