Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aea077a5 authored by Owen Lin's avatar Owen Lin
Browse files

Show control overlay when earphone is unplugged

Change-Id: I3e259e66d318010a3f9e9b47b561a09b2db2b6a5
fix: 5563251
parent b86c6aa0
Loading
Loading
Loading
Loading
+6 −10
Original line number Diff line number Diff line
@@ -16,11 +16,6 @@

package com.android.gallery3d.app;

import com.android.gallery3d.R;
import com.android.gallery3d.common.BlobCache;
import com.android.gallery3d.util.CacheManager;
import com.android.gallery3d.util.GalleryUtils;

import android.app.ActionBar;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
@@ -35,13 +30,16 @@ import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.MediaController;
import android.widget.VideoView;

import com.android.gallery3d.R;
import com.android.gallery3d.common.BlobCache;
import com.android.gallery3d.util.CacheManager;
import com.android.gallery3d.util.GalleryUtils;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
@@ -349,9 +347,7 @@ public class MoviePlayer implements

        @Override
        public void onReceive(Context context, Intent intent) {
            if (mVideoView.isPlaying()) {
                mVideoView.pause();
          }
            if (mVideoView.isPlaying()) pauseVideo();
        }
    }
}