光环助手V3.4 RELEASE(20180821-1740)测试问题汇总
This commit is contained in:
@ -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 + "%");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user