From 86b5e930141521be87ecac606c76de4aae552897 Mon Sep 17 00:00:00 2001 From: James Brown Date: Tue, 20 Sep 2022 14:03:00 +1000 Subject: [PATCH] fix formatting --- .../alphawallet/app/widget/InputAmount.java | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/app/src/main/java/com/alphawallet/app/widget/InputAmount.java b/app/src/main/java/com/alphawallet/app/widget/InputAmount.java index 3f11386ad7..88b5bc8bee 100644 --- a/app/src/main/java/com/alphawallet/app/widget/InputAmount.java +++ b/app/src/main/java/com/alphawallet/app/widget/InputAmount.java @@ -1,5 +1,8 @@ package com.alphawallet.app.widget; +import static com.alphawallet.app.C.GAS_LIMIT_MIN; +import static com.alphawallet.app.repository.TokensRealmSource.databaseKey; + import android.content.Context; import android.content.res.TypedArray; import android.os.Handler; @@ -44,9 +47,6 @@ import io.realm.RealmQuery; import timber.log.Timber; -import static com.alphawallet.app.C.GAS_LIMIT_MIN; -import static com.alphawallet.app.repository.TokensRealmSource.databaseKey; - /** * Created by JB on 10/11/2020. */ @@ -387,8 +387,8 @@ private void setupAllFunds() if (token.isEthereum() && token.hasPositiveBalance()) { RealmGasSpread gasSpread = tokensService.getTickerRealmInstance().where(RealmGasSpread.class) - .equalTo("chainId", token.tokenInfo.chainId) - .findFirst(); + .equalTo("chainId", token.tokenInfo.chainId) + .findFirst(); if (gasSpread != null && gasSpread.getGasPrice().compareTo(BigInteger.ZERO) > 0) { @@ -399,19 +399,19 @@ private void setupAllFunds() { gasFetch.setVisibility(View.VISIBLE); Web3j web3j = TokenRepository.getWeb3jService(token.tokenInfo.chainId); - Completable.fromRunnable( () -> - { - try - { - onLatestGasPrice(web3j.ethGasPrice().sendAsync().get().getGasPrice()); - } - catch (Exception e) - { - e.printStackTrace(); - onGasFetchError(e); - } - } - ) + Completable.fromRunnable(() -> + { + try + { + onLatestGasPrice(web3j.ethGasPrice().sendAsync().get().getGasPrice()); + } + catch (Exception e) + { + e.printStackTrace(); + onGasFetchError(e); + } + } + ) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(() -> {}, this::onGasFetchError)