From 9d2a6958fd7d6b487896d0a975014bf6f6b010d7 Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Mon, 10 Dec 2012 01:51:15 +0000 Subject: [PATCH] Exit videoactivity if segment 404's --- src/com/upc/pbe/upcnews/VideoActivity.java | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/src/com/upc/pbe/upcnews/VideoActivity.java b/src/com/upc/pbe/upcnews/VideoActivity.java index f93b996..2c5a49b 100644 --- a/src/com/upc/pbe/upcnews/VideoActivity.java +++ b/src/com/upc/pbe/upcnews/VideoActivity.java @@ -59,6 +59,8 @@ public class VideoActivity extends Activity catch(IOException e) { Toast.makeText(this, "Can't find segment", Toast.LENGTH_LONG).show(); + super.finish(); + return; } } -- libgit2 0.22.2