Commit 9d2a6958fd7d6b487896d0a975014bf6f6b010d7
1 parent
75ce80b8
Exit videoactivity if segment 404's
Showing
1 changed file
with
2 additions
and
0 deletions
src/com/upc/pbe/upcnews/VideoActivity.java
@@ -59,6 +59,8 @@ public class VideoActivity extends Activity | @@ -59,6 +59,8 @@ public class VideoActivity extends Activity | ||
59 | catch(IOException e) | 59 | catch(IOException e) |
60 | { | 60 | { |
61 | Toast.makeText(this, "Can't find segment", Toast.LENGTH_LONG).show(); | 61 | Toast.makeText(this, "Can't find segment", Toast.LENGTH_LONG).show(); |
62 | + super.finish(); | ||
63 | + return; | ||
62 | } | 64 | } |
63 | } | 65 | } |
64 | 66 |