[Android] Fix UninitializedPropertyAccessException
Geoffrey Métais
git at videolan.org
Mon Dec 2 09:37:59 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Dec 2 09:37:27 2019 +0100| [f42be8499a839e26b8a0904a5805a0aca789d1de] | committer: Geoffrey Métais
Fix UninitializedPropertyAccessException
> https://code.videolan.org/videolan/vlc-android/commit/f42be8499a839e26b8a0904a5805a0aca789d1de
---
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
index 7101b8764..8734dbfcf 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
@@ -48,7 +48,6 @@ import org.videolan.tools.isStarted
import org.videolan.vlc.R
import org.videolan.vlc.databinding.VideoGridBinding
import org.videolan.vlc.gui.ContentActivity
-import org.videolan.vlc.gui.MainActivity
import org.videolan.vlc.gui.MoviepediaActivity
import org.videolan.vlc.gui.SecondaryActivity
import org.videolan.vlc.gui.browser.MediaBrowserFragment
@@ -282,6 +281,7 @@ class VideoGridFragment : MediaBrowserFragment<VideosViewModel>(), SwipeRefreshL
}
private fun updateEmptyView() {
+ if (!::binding.isInitialized) return
val empty = viewModel.isEmpty() && videoListAdapter.currentList.isNullOrEmpty()
val working = mediaLibrary.isWorking
binding.emptyLoading.state = when {
More information about the Android
mailing list