[Android] Fix ClassCastException
Nicolas Pomepuy
git at videolan.org
Mon Dec 7 13:49:45 CET 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Dec 7 06:41:56 2020 +0100| [42f716e7b66ff0f59dcac5431c3ccd780c214981] | committer: Nicolas Pomepuy
Fix ClassCastException
Fixes #1569
> https://code.videolan.org/videolan/vlc-android/commit/42f716e7b66ff0f59dcac5431c3ccd780c214981
---
application/vlc-android/src/org/videolan/vlc/gui/BaseFragment.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/BaseFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/BaseFragment.kt
index 9e2ac9868..92a82caf7 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/BaseFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/BaseFragment.kt
@@ -77,7 +77,7 @@ abstract class BaseFragment : Fragment(), ActionMode.Callback {
}
fun updateAudioPlayerMargin() {
- val activity = activity as AudioPlayerContainerActivity? ?: return
+ val activity = activity as? AudioPlayerContainerActivity? ?: return
view?.let {
it.setPadding(0,0,0,activity.getAudioMargin())
}
More information about the Android
mailing list