룰렛 설정

- 옵션 추가시 확률이 빈칸으로 표시되어 NumberFormat Exception이 나오던 버그 예외처리
This commit is contained in:
klaus 2024-05-16 12:11:05 +09:00
parent 4b3474ff42
commit 62c269cac2
2 changed files with 9 additions and 5 deletions

View File

@ -40,8 +40,8 @@ android {
applicationId "kr.co.vividnext.sodalive"
minSdk 23
targetSdk 33
versionCode 71
versionName "1.11.1"
versionCode 72
versionName "1.11.2"
}
buildTypes {

View File

@ -205,11 +205,15 @@ class RouletteSettingsFragment : BaseFragment<FragmentRouletteSettingsBinding>(
etOption.setText(option.title)
tvOptionTitle.text = "옵션 ${index + 1}"
try {
if (option.percentage.toFloat() > 0f) {
etPercentage.setText(option.percentage)
} else {
etPercentage.setText("")
}
} catch (e: Exception) {
etPercentage.setText("")
}
if (index == 0 || index == 1) {
tvDelete.visibility = View.GONE