[Android] HardwareAccelerationError dialog: finish() on cancel

Thomas Guillem git at videolan.org
Tue Oct 21 17:44:12 CEST 2014


vlc-ports/android | branch: master | Thomas Guillem <tom at gllm.fr> | Tue Oct 21 17:11:18 2014 +0200| [8a372ab776b5e5e878f611b6f7f5e52b18aee6e1] | committer: Jean-Baptiste Kempf

HardwareAccelerationError dialog: finish() on cancel

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=8a372ab776b5e5e878f611b6f7f5e52b18aee6e1
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java      |    6 ++++++
 1 file changed, 6 insertions(+)

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 a653a3e..dc53c59 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1127,6 +1127,12 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
                 finish();
             }
         })
+        .setOnCancelListener(new DialogInterface.OnCancelListener() {
+            @Override
+            public void onCancel(DialogInterface dialog) {
+                finish();
+            }
+        })
         .setTitle(R.string.hardware_acceleration_error_title)
         .setMessage(R.string.hardware_acceleration_error_message)
         .create();



More information about the Android mailing list