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