mirror of
				https://github.com/SimpleMobileTools/Simple-Calendar.git
				synced 2025-06-05 21:59:17 +02:00 
			
		
		
		
	show the alarm reliability warning at saving the first event too
This commit is contained in:
		| @@ -994,7 +994,18 @@ class EventActivity : SimpleActivity() { | |||||||
|  |  | ||||||
|     private fun saveCurrentEvent() { |     private fun saveCurrentEvent() { | ||||||
|         ensureBackgroundThread { |         ensureBackgroundThread { | ||||||
|  |             trySaveEvent() | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private fun trySaveEvent() { | ||||||
|  |         if (config.wasAlarmWarningShown || (mReminder1Minutes == REMINDER_OFF && mReminder2Minutes == REMINDER_OFF && mReminder3Minutes == REMINDER_OFF)) { | ||||||
|             saveEvent() |             saveEvent() | ||||||
|  |         } else { | ||||||
|  |             ConfirmationDialog(this, messageId = R.string.reminder_warning, positive = R.string.ok, negative = 0) { | ||||||
|  |                 config.wasAlarmWarningShown = true | ||||||
|  |                 saveEvent() | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user