[Android] Fix PlaylistActivity UninitializedPropertyAccessException
Nicolas Pomepuy
git at videolan.org
Fri Nov 13 07:07:31 CET 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Nov 13 07:03:41 2020 +0100| [abb536d861851db0f71829f1629053f4bb009340] | committer: Nicolas Pomepuy
Fix PlaylistActivity UninitializedPropertyAccessException
> https://code.videolan.org/videolan/vlc-android/commit/abb536d861851db0f71829f1629053f4bb009340
---
application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
index d1e7c9b6e..e20570c95 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
@@ -116,7 +116,7 @@ open class PlaylistActivity : AudioPlayerContainerActivity(), IEventsHandler<Med
@Suppress("UNCHECKED_CAST")
(tracks as? PagedList<MediaLibraryItem>)?.let { audioBrowserAdapter.submitList(it) }
menu.let { UiTools.updateSortTitles(it, viewModel.tracksProvider) }
- itemTouchHelperCallback.swipeEnabled = true
+ if (::itemTouchHelperCallback.isInitialized) itemTouchHelperCallback.swipeEnabled = true
})
viewModel.tracksProvider.liveHeaders.observe(this, {
More information about the Android
mailing list