[Android] Fix PlaylistActivity UninitializedPropertyAccessException
Nicolas Pomepuy
git at videolan.org
Fri Nov 13 07:35:15 CET 2020
vlc-android | branch: 3.3.x | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Nov 13 06:03:41 2020 +0000| [a767f3d8248615a4a15719fe01a69406ffd8a996] | committer: Nicolas Pomepuy
Fix PlaylistActivity UninitializedPropertyAccessException
(cherry picked from commit abb536d861851db0f71829f1629053f4bb009340)
> https://code.videolan.org/videolan/vlc-android/commit/a767f3d8248615a4a15719fe01a69406ffd8a996
---
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