mirror of
https://codeberg.org/anoncontributorxmr/mysu.git
synced 2024-11-25 08:52:28 +00:00
Reinit wallet when switching node
This commit is contained in:
parent
c337950ebd
commit
909e4a4231
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
package com.m2049r.xmrwallet.fragment.settings;
|
||||
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Bundle;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
|
@ -198,7 +199,10 @@ public class SettingsFragment extends Fragment implements PasswordBottomSheetDia
|
|||
Node node = Node.fromString(PrefService.getInstance().getString(Constants.PREF_NODE, DefaultNodes.XMRTW.getAddress()));
|
||||
selectNodeButton.setText(getString(R.string.node_button_text, node.getAddress()));
|
||||
mViewModel.updateProxy();
|
||||
WalletManager.getInstance().getWallet().startRefresh();
|
||||
AsyncTask.execute(() -> {
|
||||
WalletManager.getInstance().getWallet().init(0);
|
||||
WalletManager.getInstance().getWallet().startRefresh();
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue