simplify percentage and errors delivering · fonghuiyue/AndroidVideoCache@7f22a66 · GitHub
Skip to content

Commit 7f22a66

Browse files
committed
simplify percentage and errors delivering
1 parent 983ae8d commit 7f22a66

4 files changed

Lines changed: 52 additions & 55 deletions

File tree

library/src/main/java/com/danikula/videocache/ProxyCache.java

Lines changed: 47 additions & 23 deletions

sample/src/main/java/com/danikula/videocache/sample/MultipleVideosActivity.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.danikula.videocache.sample;
22

33
import android.os.Bundle;
4-
import android.support.v4.app.Fragment;
54
import android.support.v4.app.FragmentActivity;
65

76
import org.androidannotations.annotations.EActivity;
@@ -22,10 +21,9 @@ protected void onCreate(Bundle state) {
2221
}
2322

2423
private void addVideoFragment(Video video, int containerViewId) {
25-
Fragment fragment = VideoFragment.build(video.url, video.getCacheFile(this).getAbsolutePath());
2624
getSupportFragmentManager()
2725
.beginTransaction()
28-
.add(containerViewId, fragment)
26+
.add(containerViewId, VideoFragment.build(this, video))
2927
.commit();
3028
}
3129
}
Lines changed: 4 additions & 4 deletions

sample/src/main/res/layout/activity_shared_cache.xml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)