mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
fix some constants
This commit is contained in:
@@ -56,7 +56,6 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
|||||||
updateEndDate()
|
updateEndDate()
|
||||||
updateEndTime()
|
updateEndTime()
|
||||||
setupRepetition()
|
setupRepetition()
|
||||||
setupEndCheckbox()
|
|
||||||
|
|
||||||
mWasEndDateSet = event != null
|
mWasEndDateSet = event != null
|
||||||
mWasEndTimeSet = event != null
|
mWasEndTimeSet = event != null
|
||||||
@@ -153,10 +152,6 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupEndCheckbox() {
|
|
||||||
event_end_checkbox.setTextColor(event_start_date.currentTextColor)
|
|
||||||
}
|
|
||||||
|
|
||||||
fun endCheckboxChecked(isChecked: Boolean) {
|
fun endCheckboxChecked(isChecked: Boolean) {
|
||||||
hideKeyboard()
|
hideKeyboard()
|
||||||
event_end_date.beVisibleIf(isChecked)
|
event_end_date.beVisibleIf(isChecked)
|
||||||
@@ -259,8 +254,8 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
|||||||
|
|
||||||
private fun getReminderMinutes(): Int {
|
private fun getReminderMinutes(): Int {
|
||||||
return when (event_reminder.selectedItemPosition) {
|
return when (event_reminder.selectedItemPosition) {
|
||||||
0 -> -1
|
0 -> REMINDER_OFF
|
||||||
1 -> 0
|
1 -> REMINDER_AT_START
|
||||||
else -> {
|
else -> {
|
||||||
val value = custom_reminder_value.value
|
val value = custom_reminder_value.value
|
||||||
val multiplier = when (custom_reminder_other_period.selectedItemPosition) {
|
val multiplier = when (custom_reminder_other_period.selectedItemPosition) {
|
||||||
|
@@ -14,9 +14,9 @@ val MONTHLY_VIEW = 1
|
|||||||
val YEARLY_VIEW = 2
|
val YEARLY_VIEW = 2
|
||||||
val EVENTS_LIST_VIEW = 3
|
val EVENTS_LIST_VIEW = 3
|
||||||
|
|
||||||
val REMINDER_OFF = 0
|
val REMINDER_OFF = -1
|
||||||
val REMINDER_AT_START = 1
|
val REMINDER_AT_START = 0
|
||||||
val REMINDER_CUSTOM = 2
|
val REMINDER_CUSTOM = 1
|
||||||
|
|
||||||
val DAY = 86400
|
val DAY = 86400
|
||||||
val WEEK = 604800
|
val WEEK = 604800
|
||||||
|
Reference in New Issue
Block a user