mirror of
				https://github.com/SimpleMobileTools/Simple-Calendar.git
				synced 2025-06-05 21:59:17 +02:00 
			
		
		
		
	fix #1311, show the save/discard prompt at changing the event calendar
This commit is contained in:
		| @@ -298,6 +298,7 @@ class EventActivity : SimpleActivity() { | ||||
|             mRepeatInterval != mEvent.repeatInterval || | ||||
|             mRepeatRule != mEvent.repeatRule || | ||||
|             mEventTypeId != mEvent.eventType || | ||||
|             mEventCalendarId != mEvent.getCalDAVCalendarId() || | ||||
|             hasTimeChanged) { | ||||
|             return true | ||||
|         } | ||||
| @@ -970,6 +971,7 @@ class EventActivity : SimpleActivity() { | ||||
|                     DELETE_FUTURE_OCCURRENCES -> eventsHelper.addEventRepeatLimit(mEvent.id!!, mEventOccurrenceTS) | ||||
|                     DELETE_ALL_OCCURRENCES -> eventsHelper.deleteEvent(mEvent.id!!, true) | ||||
|                 } | ||||
|  | ||||
|                 runOnUiThread { | ||||
|                     finish() | ||||
|                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user