raw edit fix

This commit is contained in:
honfika@gmail.com
2015-02-03 18:59:05 +01:00
parent 74a101e1ea
commit 1fb58e6dd8
7 changed files with 52 additions and 40 deletions

View File

@@ -49,18 +49,18 @@ public class LoadingDialog extends AppDialog implements ImageObserver {
View.execInEventDispatch(new Runnable() {
@Override
public void run() {
progressBar.setIndeterminate(false);
progressBar.setValue(percent);
progressBar.setStringPainted(true);
if (percent == -1) {
progressBar.setIndeterminate(true);
progressBar.setStringPainted(false);
} else {
progressBar.setIndeterminate(false);
progressBar.setValue(percent);
progressBar.setStringPainted(true);
}
}
});
}
public void hidePercent() {
progressBar.setIndeterminate(true);
progressBar.setStringPainted(false);
}
/**
* Constructor
*