From 50c012ead365de1a5475bdc125d4407e92915b69 Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Sat, 15 Dec 2012 22:18:43 +0000 Subject: [PATCH] Bug de HLS y al girar la actividad Directoris fixed --- AndroidManifest.xml | 2 +- src/com/upc/pbe/upcnews/Directoris.java | 5 +++++ src/com/upc/pbe/upcnews/HLS.java | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 6468994..daf2779 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -30,7 +30,7 @@ - + diff --git a/src/com/upc/pbe/upcnews/Directoris.java b/src/com/upc/pbe/upcnews/Directoris.java index 5cc7f2f..c8e06db 100644 --- a/src/com/upc/pbe/upcnews/Directoris.java +++ b/src/com/upc/pbe/upcnews/Directoris.java @@ -7,6 +7,7 @@ import java.util.concurrent.ExecutionException; import android.app.Activity; import android.content.Intent; +import android.content.res.Configuration; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; @@ -202,4 +203,8 @@ public class Directoris extends Activity implements OnItemClickListener return false; } } + @Override + public void onConfigurationChanged(Configuration newConfig) { + super.onConfigurationChanged(newConfig); + } } \ No newline at end of file diff --git a/src/com/upc/pbe/upcnews/HLS.java b/src/com/upc/pbe/upcnews/HLS.java index de9ba5d..0e0de9d 100644 --- a/src/com/upc/pbe/upcnews/HLS.java +++ b/src/com/upc/pbe/upcnews/HLS.java @@ -56,6 +56,8 @@ public class HLS { return null; } + currentQuality = 0; + currentSegment = 0; loadVideo(); } Segment seg = segments.get(currentSegment++); -- libgit2 0.22.2