[Android] Rename stream in IO threadpool
Geoffrey Métais
git at videolan.org
Thu Jan 10 16:27:34 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 10 16:26:36 2019 +0100| [143f417681b905a2b4875dcd36e17b9238a3dd0e] | committer: Geoffrey Métais
Rename stream in IO threadpool
> https://code.videolan.org/videolan/vlc-android/commit/143f417681b905a2b4875dcd36e17b9238a3dd0e
---
vlc-android/src/org/videolan/vlc/viewmodels/StreamsModel.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/viewmodels/StreamsModel.kt b/vlc-android/src/org/videolan/vlc/viewmodels/StreamsModel.kt
index 553f0aab2..af0611219 100644
--- a/vlc-android/src/org/videolan/vlc/viewmodels/StreamsModel.kt
+++ b/vlc-android/src/org/videolan/vlc/viewmodels/StreamsModel.kt
@@ -40,7 +40,7 @@ class StreamsModel: ScopedModel() {
fun rename(position: Int, name: String) {
val media = observableHistory.value?.get(position) ?: return
- media.rename(name)
+ launch(Dispatchers.IO) { media.rename(name) }
updateHistory()
}
}
\ No newline at end of file
More information about the Android
mailing list