mirror of
https://github.com/zhigang1992/AndroidVideoCache.git
synced 2026-02-10 08:43:06 +08:00
fix 🐛 available cache percents callback
This commit is contained in:
@@ -43,9 +43,6 @@ class HttpProxyCache extends ProxyCache {
|
||||
}
|
||||
out.write(buffer, 0, readBytes);
|
||||
offset += readBytes;
|
||||
if (cache.isCompleted()) {
|
||||
onCacheAvailable(100);
|
||||
}
|
||||
}
|
||||
out.flush();
|
||||
}
|
||||
@@ -68,7 +65,7 @@ class HttpProxyCache extends ProxyCache {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCacheAvailable(int percents) {
|
||||
protected void onCachePercentsAvailableChanged(int percents) {
|
||||
if (listener != null) {
|
||||
listener.onCacheAvailable(cache.file, source.url, percents);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user