[Android] [PATCH 2/3] HardwareAccelerationError dialog: finish() on cancel
Thomas Guillem
tom at gllm.fr
Tue Oct 21 17:11:18 CEST 2014
---
vlc-android/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 61c1493..b6eff14 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1122,6 +1122,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();
--
2.1.0
More information about the Android
mailing list