mirror of
https://codeberg.org/anoncontributorxmr/mysu.git
synced 2024-11-22 07:22:26 +00:00
Fix some progress bar issues
This commit is contained in:
parent
7109442ad0
commit
967345e1c3
2 changed files with 1 additions and 2 deletions
|
@ -124,7 +124,6 @@ public class HomeFragment extends Fragment implements TransactionInfoAdapter.TxI
|
|||
int x = 100 - Math.round(100f * n / (1f * daemonHeight - startHeight));
|
||||
progressBar.setIndeterminate(height <= 1 || daemonHeight <= 0);
|
||||
if (height > 1 && daemonHeight > 1) {
|
||||
if (x == 0) x = 101; // indeterminate
|
||||
progressBar.setProgress(x);
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -101,13 +101,13 @@ public class MoneroHandlerThread extends Thread implements WalletListener {
|
|||
} else {
|
||||
BlockchainService.getInstance().setDaemonHeight(wallet.getDaemonBlockChainHeight());
|
||||
wallet.setSynchronized();
|
||||
wallet.store();
|
||||
refresh();
|
||||
}
|
||||
}
|
||||
|
||||
private void refresh() {
|
||||
wallet.refreshHistory();
|
||||
wallet.store();
|
||||
listener.onRefresh();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue