[Android] Do not handle msg if activity is finishing
Geoffrey Métais
git at videolan.org
Mon Mar 16 16:18:15 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 16 16:17:49 2015 +0100| [bcc71ef19234269f39085e5841eb006c96b22dd6] | committer: Geoffrey Métais
Do not handle msg if activity is finishing
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=bcc71ef19234269f39085e5841eb006c96b22dd6
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 1f265ae..324c79e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1265,7 +1265,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
@Override
public void handleMessage(Message msg) {
VideoPlayerActivity activity = getOwner();
- if(activity == null) return;
+ if(activity == null || activity.isFinishing()) return;
// Do not handle events if we are leaving the VideoPlayerActivity
if (activity.mSwitchingView) return;
More information about the Android
mailing list