[Android] Device dialog: allow state loss on dismiss

Geoffrey Métais git at videolan.org
Tue May 7 14:32:15 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May  7 14:31:10 2019 +0200| [078ffc9c4240b0075a3b688106de9d91a2f43cb8] | committer: Geoffrey Métais

Device dialog: allow state loss on dismiss

> https://code.videolan.org/videolan/vlc-android/commit/078ffc9c4240b0075a3b688106de9d91a2f43cb8
---

 vlc-android/src/org/videolan/vlc/gui/dialogs/DeviceDialog.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/DeviceDialog.kt b/vlc-android/src/org/videolan/vlc/gui/dialogs/DeviceDialog.kt
index cb6ffab17..8ed15f694 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/DeviceDialog.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/DeviceDialog.kt
@@ -38,7 +38,7 @@ class DeviceDialog : DialogFragment(), CoroutineScope by MainScope() {
         super.onViewCreated(view, savedInstanceState)
         launch {
             delay(30_000L)
-            dismiss()
+            dismissAllowingStateLoss()
         }
     }
 



More information about the Android mailing list