crash fix (#5182)
This commit is contained in:
committed by
GitHub Enterprise
parent
e0172ee878
commit
565b4ec843
@@ -16,6 +16,7 @@ import androidx.lifecycle.coroutineScope
|
||||
import com.navi.base.model.GenericAnalyticsData
|
||||
import com.navi.base.model.ImageDetail
|
||||
import com.navi.base.model.NaviWidgetClickWithActionData
|
||||
import com.navi.base.utils.isNotNull
|
||||
import com.navi.base.utils.isNotNullAndNotEmpty
|
||||
import com.navi.design.utils.*
|
||||
import com.navi.design.utils.Constants.AMOUNT
|
||||
@@ -156,16 +157,22 @@ class GoldConversionWidgetLayout @JvmOverloads constructor(
|
||||
charSequenceToString =
|
||||
charSequenceToString.replace(COMMA, EMPTY, true)
|
||||
}
|
||||
if (charSequenceToString.toDouble() != info.actualAmount() &&
|
||||
isAmountEditInProgress
|
||||
) {
|
||||
updatePrice(charSequenceToString.toDouble())
|
||||
if (charSequenceToString.toDoubleOrNull().isNotNull()) {
|
||||
if (charSequenceToString.toDouble() != info.actualAmount() &&
|
||||
isAmountEditInProgress
|
||||
) {
|
||||
updatePrice(charSequenceToString.toDouble())
|
||||
}
|
||||
} else {
|
||||
updatePrice(0.0)
|
||||
}
|
||||
} else {
|
||||
updatePrice(0.0)
|
||||
}
|
||||
if (charSequenceToString
|
||||
.isNotNullAndNotEmpty() && charSequenceToString
|
||||
.isNotNullAndNotEmpty() && charSequenceToString.toDoubleOrNull()
|
||||
.isNotNull()
|
||||
&& charSequenceToString
|
||||
.toDouble() != info.totalAmount()
|
||||
) {
|
||||
cbSellAmount.isChecked = false
|
||||
|
||||
Reference in New Issue
Block a user