22 lines
720 B
Java
22 lines
720 B
Java
package com.liulishuo.filedownloader.connection;
|
|
|
|
import android.support.v4.media.session.PlaybackStateCompat;
|
|
import com.liulishuo.filedownloader.util.FileDownloadHelper;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class DefaultConnectionCountAdapter implements FileDownloadHelper.ConnectionCountAdapter {
|
|
@Override // com.liulishuo.filedownloader.util.FileDownloadHelper.ConnectionCountAdapter
|
|
public int a(int i, String str, String str2, long j) {
|
|
if (j < PlaybackStateCompat.ACTION_SET_CAPTIONING_ENABLED) {
|
|
return 1;
|
|
}
|
|
if (j < 5242880) {
|
|
return 2;
|
|
}
|
|
if (j < 52428800) {
|
|
return 3;
|
|
}
|
|
return j < 104857600 ? 4 : 5;
|
|
}
|
|
}
|