[Android] MediaInfo: don' t crash if view is not there anymore when preview is finished
Sébastien Toque
git at videolan.org
Wed Mar 5 19:10:09 CET 2014
vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Wed Mar 5 19:09:34 2014 +0100| [538037e791214b710b96523d5d961fd3abf56c5f] | committer: Sébastien Toque
MediaInfo: don't crash if view is not there anymore when preview is finished
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=538037e791214b710b96523d5d961fd3abf56c5f
---
vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java
index 0b9436f..ceac14d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java
@@ -137,6 +137,8 @@ public class MediaInfoFragment extends SherlockListFragment {
};
private void updateImage() {
+ if (getView() == null)
+ return;
ImageView imageView = (ImageView) getView().findViewById(R.id.image);
imageView.setImageBitmap(mImage);
mPlayButton.setVisibility(View.VISIBLE);
More information about the Android
mailing list