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

Commit d7db7012 authored by Chih-Chung Chang's avatar Chih-Chung Chang
Browse files

Fix a bug that the condition for play/pause was reversed.

Change-Id: I462ca5b910de98a875d7f54b4a937176f88474d0
parent 83a7b963
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -534,14 +534,14 @@ public class VideoView extends SurfaceView implements MediaPlayerControl {
                }
                }
                return true;
                return true;
            } else if (keyCode == KeyEvent.KEYCODE_MEDIA_PLAY) {
            } else if (keyCode == KeyEvent.KEYCODE_MEDIA_PLAY) {
                if (mMediaPlayer.isPlaying()) {
                if (!mMediaPlayer.isPlaying()) {
                    start();
                    start();
                    mMediaController.hide();
                    mMediaController.hide();
                }
                }
                return true;
                return true;
            } else if (keyCode == KeyEvent.KEYCODE_MEDIA_STOP
            } else if (keyCode == KeyEvent.KEYCODE_MEDIA_STOP
                    || keyCode == KeyEvent.KEYCODE_MEDIA_PAUSE) {
                    || keyCode == KeyEvent.KEYCODE_MEDIA_PAUSE) {
                if (!mMediaPlayer.isPlaying()) {
                if (mMediaPlayer.isPlaying()) {
                    pause();
                    pause();
                    mMediaController.show();
                    mMediaController.show();
                }
                }