From 611b93aa12a3b2c58b73e5b09192b2aa47a6480a Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 19 Sep 2016 23:09:00 +0200 Subject: [PATCH] update the widget after edits done from EventActivity --- .../simplemobiletools/calendar/activities/EventActivity.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt index 02563119e..a5be05038 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt @@ -14,6 +14,7 @@ import android.view.inputmethod.InputMethodManager import android.widget.AdapterView import android.widget.EditText import com.simplemobiletools.calendar.* +import com.simplemobiletools.calendar.extensions.updateWidget import com.simplemobiletools.calendar.fragments.DayFragment import com.simplemobiletools.calendar.models.Event import kotlinx.android.synthetic.main.activity_event.* @@ -317,17 +318,19 @@ class EventActivity : SimpleActivity(), DBHelper.DBOperationsListener { Utils.showToast(applicationContext, R.string.event_added) } Utils.scheduleNotification(applicationContext, event) + updateWidget() finish() } override fun eventUpdated(event: Event) { Utils.scheduleNotification(applicationContext, event) Utils.showToast(applicationContext, R.string.event_updated) + updateWidget() finish() } override fun eventsDeleted(cnt: Int) { - + updateWidget() } override fun gotEvents(events: MutableList) {