修改插件化提示框显示位置为所有界面,修复卸载后不自动跳安装bug,修复下载量超100%bug,添加打包渠道106

This commit is contained in:
huangzhuanghua
2016-07-22 13:57:11 +08:00
parent 8eca878a8b
commit f74ae2a8cf
16 changed files with 86 additions and 87 deletions

View File

@ -7,6 +7,7 @@ import android.os.Message;
import com.gh.common.constant.Constants;
import com.gh.common.util.FileUtils;
import com.gh.common.util.Trace;
import com.gh.common.util.Utils;
import java.text.DecimalFormat;
import java.util.HashMap;
@ -75,8 +76,9 @@ public class DownloadTask implements DownloadListener {
}
@Override
public synchronized void onProgressChanged(int len) {
currSize += len;
// public synchronized void onProgressChanged(int len) {
public synchronized void onProgressChanged(long length, int len) {
currSize = length;
double percent = 0;
if (entry.getSize() != 0) {
percent = currSize * 100.0 / entry.getSize();