[Android] Breadcrumb is nullable
Geoffrey Métais
git at videolan.org
Tue Jul 17 10:17:27 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jul 17 10:16:49 2018 +0200| [f5087074b980c337bf5204624092f42635c31ccc] | committer: Geoffrey Métais
Breadcrumb is nullable
> https://code.videolan.org/videolan/vlc-android/commit/f5087074b980c337bf5204624092f42635c31ccc
---
vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
index cad43406f..2b7442d7c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
@@ -132,7 +132,7 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
}
override fun setBreadcrumb() {
- val ariane = requireActivity().findViewById<RecyclerView>(R.id.ariane)
+ val ariane = requireActivity().findViewById<RecyclerView>(R.id.ariane) ?: return
currentMedia?.let {
ariane.visibility = View.VISIBLE
ariane.layoutManager = LinearLayoutManager(requireContext(), LinearLayoutManager.HORIZONTAL, false)
More information about the Android
mailing list