daimajia / daimajia/NumberProgressBar

当进度走到80%,为什么会变成-%79, - %78 .......

Open
#73 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.1k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

`myBody = new MyBody(requestBody, new MyBody.ProgressListener() {
@Override
public void onProgress(long currentBytes, long contentLength) {
int current = new Long(currentBytes).intValue();
int total = new Long(contentLength).intValue();
if (seted) {
numberProgressBar.setMax(total); //只设置一次最大值
seted = false;
}
numberProgress.setProgress(current);
}
});
mShow = builder.show();`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the MyBody.ProgressListener callback and the NumberProgressBar setProgress call shown in the issue, then reproduce the reported change near 80%. Trace how the current and total byte values become the displayed percentage, and consider the issue done when progress no longer renders negative or malformed values.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.