mirror of
https://github.com/FossifyOrg/Calendar.git
synced 2026-05-19 12:17:04 -04:00
add a null check at widget updating
This commit is contained in:
@@ -68,8 +68,10 @@ class MyWidgetMonthlyProvider : AppWidgetProvider(), MonthlyCalendar {
|
||||
}
|
||||
|
||||
private fun updateWidget() {
|
||||
val thisWidget = ComponentName(mContext, MyWidgetMonthlyProvider::class.java)
|
||||
AppWidgetManager.getInstance(mContext).updateAppWidget(thisWidget, mRemoteViews)
|
||||
if (mRemoteViews != null) {
|
||||
val thisWidget = ComponentName(mContext, MyWidgetMonthlyProvider::class.java)
|
||||
AppWidgetManager.getInstance(mContext).updateAppWidget(thisWidget, mRemoteViews)
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupIntent(action: String, id: Int) {
|
||||
|
||||
Reference in New Issue
Block a user