够快关闭免费外链了...
This commit is contained in:
1 parent
62d6609b15
commit
da90150233
11 files changed
+140
-729
No files matched your search
@@ -44,6 +44,7 @@ import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.os.Message;
|
||||
import android.os.Process;
|
||||
|
||||
import com.hippo.ehviewer.AppHandler;
|
||||
import com.hippo.ehviewer.R;
|
||||
@@ -893,6 +894,19 @@ public class HttpHelper {
|
||||
controlor, listener));
|
||||
}
|
||||
|
||||
public void downloadInThread(final String url, final File dir,
|
||||
final String file, final boolean isProxy,
|
||||
final DownloadControlor controlor, final OnDownloadListener listener) {
|
||||
Thread thread = new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
download(url, dir, file, isProxy, controlor, listener);
|
||||
}
|
||||
};
|
||||
thread.setPriority(Process.THREAD_PRIORITY_BACKGROUND);
|
||||
thread.start();
|
||||
}
|
||||
|
||||
/** Exceptions **/
|
||||
|
||||
public class SadPandaException extends Exception {
|
||||
|
||||
Reference in new issue
Block a user