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