光环助手V3.4 RELEASE(20180821-1740)测试问题汇总

This commit is contained in:
kehaoyuan
2018-08-23 18:18:32 +08:00
parent 772549e543
commit 03d25eaeae
29 changed files with 218 additions and 153 deletions

View File

@ -110,11 +110,10 @@ public class CropImageActivity extends BaseActivity {
@Override
public void onProgress(long total, long progress) {
float percent = 100 * (progress / (float) total);
if (percent >= 100) percent = 99.9F;
String format = String.format(Locale.CHINA, "%.1f", percent);
int percent = (int) (100 * (progress / (float) total));
if (percent >= 100) percent = 99;
if (postDialog != null) {
postDialog.uploadWaitingHint("图片上传中" + format + "%");
postDialog.uploadWaitingHint("图片上传中" + percent + "%");
}
}
});