completely overengineer progress indication in {modify,create}SecretKeyRing methods
This commit is contained in:
1 parent
7bbe869c88
commit
58c2ca6eb8
4 files changed
+99
-19
No files matched your search
@@ -46,13 +46,13 @@ public class ProgressScaler implements Progressable {
|
||||
|
||||
public void setProgress(int resourceId, int progress, int max) {
|
||||
if (mWrapped != null) {
|
||||
mWrapped.setProgress(resourceId, progress, mMax);
|
||||
mWrapped.setProgress(resourceId, mFrom + progress * (mTo - mFrom) / max, mMax);
|
||||
}
|
||||
}
|
||||
|
||||
public void setProgress(int progress, int max) {
|
||||
if (mWrapped != null) {
|
||||
mWrapped.setProgress(progress, max);
|
||||
mWrapped.setProgress(mFrom + progress * (mTo - mFrom) / max, mMax);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user