[Android] Revert "Do not handle msg if activity is finishing"
Thomas Guillem
git at videolan.org
Tue Mar 17 11:33:47 CET 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 17 09:53:59 2015 +0100| [b14065a88bf45fea5a9d1161d2f830a762186c40] | committer: Thomas Guillem
Revert "Do not handle msg if activity is finishing"
This reverts commit bcc71ef19234269f39085e5841eb006c96b22dd6.
It's better to remove event handler and clear events.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=b14065a88bf45fea5a9d1161d2f830a762186c40
---
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 146a712..2e8b695 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1292,7 +1292,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
@Override
public void handleMessage(Message msg) {
VideoPlayerActivity activity = getOwner();
- if(activity == null || activity.isFinishing()) return;
+ if(activity == null) return;
// Do not handle events if we are leaving the VideoPlayerActivity
if (activity.mSwitchingView) return;
More information about the Android
mailing list