diff --git a/bitcoin/build.gradle b/bitcoin/build.gradle index 8c86abb3..966ecc40 100644 --- a/bitcoin/build.gradle +++ b/bitcoin/build.gradle @@ -12,7 +12,7 @@ android { applicationId "com.brentpanther.bitcoinwidget" minSdk 23 targetSdk 31 - versionCode 296 + versionCode 297 versionName "8.2.2" javaCompileOptions { diff --git a/bitcoin/src/main/java/com/brentpanther/bitcoinwidget/exchange/ExchangeData.kt b/bitcoin/src/main/java/com/brentpanther/bitcoinwidget/exchange/ExchangeData.kt index d83fbd91..fd6ca8b5 100644 --- a/bitcoin/src/main/java/com/brentpanther/bitcoinwidget/exchange/ExchangeData.kt +++ b/bitcoin/src/main/java/com/brentpanther/bitcoinwidget/exchange/ExchangeData.kt @@ -36,6 +36,7 @@ open class ExchangeData(val coinEntry: CoinEntry, json: InputStream) { if (i2 >= 0) return@Comparator 1 o1.compareTo(o2) }) + currencyNames.remove(coinEntry.symbol) return currencyNames.toTypedArray() } diff --git a/bitcoin/src/test/java/com/brentpanther/bitcoinwidget/ExchangeTest.kt b/bitcoin/src/test/java/com/brentpanther/bitcoinwidget/ExchangeTest.kt index 8d195554..6a990203 100644 --- a/bitcoin/src/test/java/com/brentpanther/bitcoinwidget/ExchangeTest.kt +++ b/bitcoin/src/test/java/com/brentpanther/bitcoinwidget/ExchangeTest.kt @@ -29,6 +29,7 @@ class ExchangeTest { var currencyName = data.getExchangeCurrencyName(exchange, currency) if (coinName == null) coinName = coin.getSymbol() if (currencyName == null) currencyName = currency + if (coinName == currencyName) continue valueOf(exchange).getValue(coinName, currencyName)!!.toDouble() } catch (e: Exception) { System.err.println("Failure: $coin $exchange $currency: ${e.message}") diff --git a/fastlane/metadata/android/en-US/changelogs/296.txt b/fastlane/metadata/android/en-US/changelogs/297.txt similarity index 100% rename from fastlane/metadata/android/en-US/changelogs/296.txt rename to fastlane/metadata/android/en-US/changelogs/297.txt