[Android] Fix RenderersDialog crash

Nicolas Pomepuy git at videolan.org
Thu Feb 24 10:58:19 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Feb 10 14:14:15 2022 +0100| [38c687975d3cc776110c912ce6bfa3ac79bfb408] | committer: Nicolas Pomepuy

Fix RenderersDialog crash

Fixes #2382

> https://code.videolan.org/videolan/vlc-android/commit/38c687975d3cc776110c912ce6bfa3ac79bfb408
---

 .../vlc-android/src/org/videolan/vlc/gui/dialogs/RenderersDialog.kt  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/RenderersDialog.kt b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/RenderersDialog.kt
index 7ebf3aeba..358576331 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/RenderersDialog.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/RenderersDialog.kt
@@ -40,7 +40,7 @@ import org.videolan.vlc.gui.DiffUtilAdapter
 import org.videolan.vlc.gui.helpers.SelectorViewHolder
 import org.videolan.vlc.gui.helpers.UiTools
 
-const private val TAG = "VLC/RenderersDialog"
+private const val TAG = "VLC/RenderersDialog"
 
 @ObsoleteCoroutinesApi
 @ExperimentalCoroutinesApi
@@ -70,13 +70,12 @@ class RenderersDialog : DialogFragment() {
     }
 
     override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
-        setStyle(DialogFragment.STYLE_NO_FRAME, 0)
         mBinding = DialogRenderersBinding.inflate(inflater, container, false)
         return mBinding.root
     }
 
     override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
-        mBinding.holder = mClickHandler;
+        mBinding.holder = mClickHandler
         mBinding.renderersList.layoutManager = LinearLayoutManager(view.context)
         mBinding.renderersList.adapter = mAdapter
         mBinding.renderersDisconnect.isEnabled = PlaybackService.hasRenderer()



More information about the Android mailing list