use of com.odysee.app.tasks.wallet.SyncApplyTask in project odysee-android by OdyseeTeam.
the class SignInFragment method processNewWallet.
public void processNewWallet() {
SyncApplyTask fetchTask = new SyncApplyTask(true, null, new DefaultSyncTaskHandler() {
@Override
public void onSyncApplySuccess(String hash, String data) {
createNewRemoteSync(hash, data);
}
@Override
public void onSyncApplyError(Exception error) {
showError(error.getMessage());
Helper.setViewVisibility(walletSyncProgress, View.GONE);
Helper.setViewText(textWalletSyncLoading, R.string.wallet_sync_op_failed);
walletSyncStarted = false;
}
});
fetchTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
Aggregations