Commit 5a976f7a6c51815061e3aef2c13422466cf522a1

Authored by Imanol-Mikel Barba Sabariego
1 parent 8cd90f7d

--no commit message

src/com/upc/pbe/upcnews/HLS.java
... ... @@ -29,7 +29,6 @@ public class HLS
29 29 Log.d(TAG, "Esborrat " + files[i].toString());
30 30 deleteme.delete();
31 31 }
32   - currentQuality = 0;
33 32 currentVideo = currentQuality = currentSegment = 0;
34 33 this.videos = parsed;
35 34 endReached = false;
... ... @@ -64,10 +63,6 @@ public class HLS
64 63 return seg.getURL();
65 64 }
66 65  
67   - public long getCurrentSegmentDuration()
68   - {
69   - return (long) segments.get(currentSegment).getDuration();
70   - }
71 66  
72 67 public void updateQuality(long bps)
73 68 {
... ...
src/com/upc/pbe/upcnews/ResourceAdapter.java
... ... @@ -3,7 +3,6 @@ package com.upc.pbe.upcnews;
3 3 import android.app.Activity;
4 4 import android.content.Context;
5 5 import android.graphics.Color;
6   -import android.graphics.Typeface;
7 6 import android.view.LayoutInflater;
8 7 import android.view.View;
9 8 import android.view.ViewGroup;
... ... @@ -52,7 +51,6 @@ public class ResourceAdapter extends ArrayAdapter<String> {
52 51 }
53 52 //Si no, posem el text en blau i l'icono de directori
54 53 else{
55   - row.setTypeface(null,Typeface.NORMAL);
56 54 row.setTextColor(((Activity)context).getResources().getColor(R.color.BlueAndroid));
57 55 rowImage.setImageResource(R.drawable.folder);
58 56 }
... ...
src/com/upc/pbe/upcnews/VideoActivity.java
... ... @@ -143,8 +143,7 @@ public class VideoActivity extends Activity {
143 143 queue.remove(0);
144 144 if(ended && queue.isEmpty())
145 145 {
146   - VideoActivity.super.finish();
147   - return;
  146 + quitPlayer();
148 147 }
149 148 if(queue.isEmpty())
150 149 {
... ...