mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
initialize context at onReceive of list widget
This commit is contained in:
@@ -83,6 +83,8 @@ class MyWidgetListProvider : AppWidgetProvider() {
|
||||
}
|
||||
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
mContext = context
|
||||
|
||||
when (intent.action) {
|
||||
NEW_EVENT -> context.launchNewEventIntent(true, true)
|
||||
LAUNCH_TODAY -> launchDayActivity()
|
||||
|
Reference in New Issue
Block a user