Commit bcc71ef1 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Do not handle msg if activity is finishing

parent de0745b9
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment