remove a null check at updating widget

This commit is contained in:
tibbi 2017-06-07 21:05:58 +02:00
parent 73b36f8c24
commit c0042ac0c9
1 changed files with 2 additions and 4 deletions

View File

@ -68,10 +68,8 @@ class MyWidgetMonthlyProvider : AppWidgetProvider(), MonthlyCalendar {
}
private fun updateWidget() {
if (mRemoteViews != null) {
val thisWidget = ComponentName(mContext, MyWidgetMonthlyProvider::class.java)
AppWidgetManager.getInstance(mContext).updateAppWidget(thisWidget, mRemoteViews)
}
val thisWidget = ComponentName(mContext, MyWidgetMonthlyProvider::class.java)
AppWidgetManager.getInstance(mContext).updateAppWidget(thisWidget, mRemoteViews)
}
private fun setupIntent(action: String, id: Int) {