diff --git a/app/src/main/kotlin/com/github/premnirmal/ticker/network/data/YahooQuoteResponse.kt b/app/src/main/kotlin/com/github/premnirmal/ticker/network/data/YahooQuoteResponse.kt index d76e0546..ffeee3d1 100644 --- a/app/src/main/kotlin/com/github/premnirmal/ticker/network/data/YahooQuoteResponse.kt +++ b/app/src/main/kotlin/com/github/premnirmal/ticker/network/data/YahooQuoteResponse.kt @@ -101,9 +101,9 @@ data class QuoteSummaryResult( data class QuoteSummary( @SerializedName("assetProfile") - val assetProfile: AssetProfile, + val assetProfile: AssetProfile?, @SerializedName("financialData") - val financialData: FinancialData + val financialData: FinancialData? ) data class AssetProfile( diff --git a/app/src/main/kotlin/com/github/premnirmal/ticker/news/QuoteDetailActivity.kt b/app/src/main/kotlin/com/github/premnirmal/ticker/news/QuoteDetailActivity.kt index 164c9da0..565e590d 100644 --- a/app/src/main/kotlin/com/github/premnirmal/ticker/news/QuoteDetailActivity.kt +++ b/app/src/main/kotlin/com/github/premnirmal/ticker/news/QuoteDetailActivity.kt @@ -208,8 +208,8 @@ class QuoteDetailActivity : BaseGraphActivity(), Tre } quoteSummary?.let { binding.description.isVisible = true - binding.description.text = it.assetProfile.longBusinessSummary ?: "" - it.assetProfile.website?.let { website -> + binding.description.text = it.assetProfile?.longBusinessSummary ?: "" + it.assetProfile?.website?.let { website -> binding.website.isVisible = true binding.website.text = website binding.website.paintFlags = binding.website.paintFlags or Paint.UNDERLINE_TEXT_FLAG diff --git a/app/version.properties b/app/version.properties index cfea8807..7d5d65b4 100644 --- a/app/version.properties +++ b/app/version.properties @@ -1,3 +1,3 @@ # this file is purely for f-droid because it cannot infer the version name/code from the git tag -versionName=3.9.814 -versionCode=300900814 +versionName=3.9.815 +versionCode=300900815