remove a null check at updating widget
This commit is contained in:
parent
73b36f8c24
commit
c0042ac0c9
|
@ -68,11 +68,9 @@ class MyWidgetMonthlyProvider : AppWidgetProvider(), MonthlyCalendar {
|
|||
}
|
||||
|
||||
private fun updateWidget() {
|
||||
if (mRemoteViews != null) {
|
||||
val thisWidget = ComponentName(mContext, MyWidgetMonthlyProvider::class.java)
|
||||
AppWidgetManager.getInstance(mContext).updateAppWidget(thisWidget, mRemoteViews)
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupIntent(action: String, id: Int) {
|
||||
mIntent.action = action
|
||||
|
|
Loading…
Reference in New Issue