拿掉無用的try catch
This commit is contained in:
parent
38b39c6d1d
commit
969c91e436
@ -162,19 +162,13 @@ class GridVideoFragment : Fragment(), GstCallback {
|
||||
|
||||
private fun playAll() {
|
||||
for (index in data.indices) {
|
||||
gstPlayers[index]?.apply {
|
||||
play()
|
||||
}
|
||||
gstPlayers[index]?.play()
|
||||
}
|
||||
}
|
||||
|
||||
private fun stopAll() {
|
||||
for (index in data.indices) {
|
||||
try {
|
||||
gstPlayers[index]?.stop()
|
||||
} catch (e: IllegalStateException) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
gstPlayers[index]?.stop()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user