mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-08-01 12:31:23 +00:00
Rename DownloadListener to DownloadProgressTracker
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package wallettemplate;
|
||||
|
||||
import org.bitcoinj.core.Coin;
|
||||
import org.bitcoinj.core.DownloadListener;
|
||||
import org.bitcoinj.core.DownloadProgressTracker;
|
||||
import org.bitcoinj.utils.MonetaryFormat;
|
||||
import com.subgraph.orchid.TorClient;
|
||||
import com.subgraph.orchid.TorInitializationListener;
|
||||
@@ -121,7 +121,7 @@ public class MainController {
|
||||
group.play();
|
||||
}
|
||||
|
||||
public DownloadListener progressBarUpdater() {
|
||||
return model.getDownloadListener();
|
||||
public DownloadProgressTracker progressBarUpdater() {
|
||||
return model.getDownloadProgressTracker();
|
||||
}
|
||||
}
|
||||
|
@@ -41,7 +41,7 @@ public class BitcoinUIModel {
|
||||
address.set(wallet.currentReceiveAddress());
|
||||
}
|
||||
|
||||
private class ProgressBarUpdater extends DownloadListener {
|
||||
private class ProgressBarUpdater extends DownloadProgressTracker {
|
||||
@Override
|
||||
protected void progress(double pct, int blocksLeft, Date date) {
|
||||
super.progress(pct, blocksLeft, date);
|
||||
@@ -55,7 +55,7 @@ public class BitcoinUIModel {
|
||||
}
|
||||
}
|
||||
|
||||
public DownloadListener getDownloadListener() { return syncProgressUpdater; }
|
||||
public DownloadProgressTracker getDownloadProgressTracker() { return syncProgressUpdater; }
|
||||
|
||||
public ReadOnlyDoubleProperty syncProgressProperty() { return syncProgress; }
|
||||
|
||||
|
Reference in New Issue
Block a user