mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-18 12:50:34 +01:00
fix some crashes at setting reminder to empty value
This commit is contained in:
parent
da2ea22017
commit
36486710a5
@ -270,7 +270,7 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
||||
2 -> DAY_MINS
|
||||
else -> 1
|
||||
}
|
||||
Integer.valueOf(value) * multiplier
|
||||
Integer.valueOf(if (value.isEmpty()) "0" else value) * multiplier
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ class SettingsActivity : SimpleActivity() {
|
||||
else -> 1
|
||||
}
|
||||
|
||||
mConfig.defaultReminderMinutes = Integer.valueOf(value) * multiplier
|
||||
mConfig.defaultReminderMinutes = Integer.valueOf(if (value.isEmpty()) "0" else value) * multiplier
|
||||
mConfig.defaultReminderType = REMINDER_CUSTOM
|
||||
toast(R.string.reminder_saved)
|
||||
hideKeyboard()
|
||||
|
Loading…
x
Reference in New Issue
Block a user