룰렛 설정
- 옵션 추가시 확률이 빈칸으로 표시되어 NumberFormat Exception이 나오던 버그 예외처리
This commit is contained in:
parent
4b3474ff42
commit
62c269cac2
|
@ -40,8 +40,8 @@ android {
|
||||||
applicationId "kr.co.vividnext.sodalive"
|
applicationId "kr.co.vividnext.sodalive"
|
||||||
minSdk 23
|
minSdk 23
|
||||||
targetSdk 33
|
targetSdk 33
|
||||||
versionCode 71
|
versionCode 72
|
||||||
versionName "1.11.1"
|
versionName "1.11.2"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|
|
@ -205,9 +205,13 @@ class RouletteSettingsFragment : BaseFragment<FragmentRouletteSettingsBinding>(
|
||||||
etOption.setText(option.title)
|
etOption.setText(option.title)
|
||||||
tvOptionTitle.text = "옵션 ${index + 1}"
|
tvOptionTitle.text = "옵션 ${index + 1}"
|
||||||
|
|
||||||
if (option.percentage.toFloat() > 0f) {
|
try {
|
||||||
etPercentage.setText(option.percentage)
|
if (option.percentage.toFloat() > 0f) {
|
||||||
} else {
|
etPercentage.setText(option.percentage)
|
||||||
|
} else {
|
||||||
|
etPercentage.setText("")
|
||||||
|
}
|
||||||
|
} catch (e: Exception) {
|
||||||
etPercentage.setText("")
|
etPercentage.setText("")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue